-
Notifications
You must be signed in to change notification settings - Fork 10.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gatsby-remark-graph plugin mention #2921
Conversation
Deploy preview failed. Built with commit 9f1f6f7 https://app.netlify.com/sites/using-glamor/deploys/5a0bb6b2df99532513c8bd1d |
Deploy preview ready! Built with commit 9f1f6f7 |
Deploy preview ready! Built with commit 9f1f6f7 |
Nice! BTW, you could make this a bit more plug-n-play by adding a gatsby-browser.js file where you import the mermaid package (or if that doesn't work, gatsby-ssr.js can add the script tag to the HTML). |
I like the idea. mermaid uses client-side DOM api to make the SVG, so I'm not sure how to import it into the client-side code. Do you have any suggestions? |
Will this work If I just do this in my index.js? Awesome. Much better solution. |
Add a gatsby-browser.js file. It has a number of APIs you can implement include the There's a bunch of plugins you can look at for examples https://github.com/gatsbyjs/gatsby/search?utf8=%E2%9C%93&q=gatsby-browser.js&type= |
Added in |
I made a nice plugin for making graphs with mermaid