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
Support for Mermaid #465
Comments
This came up on Discord server some time ago (https://discord.com/channels/794537085641818124/1111980136691146773) but looks like it's not possible to run Mermaid on server side due mermaid-js/mermaid#3650. There are a couple of alternative options that you can use:
|
I found this article: https://css-tricks.com/making-mermaid-diagrams-in-markdown/ Mermaid has cdn. And It can be used in browser. I tested in this page: Although I can not find a way to generate SVG and link/embed the svg, but this currently works. |
Yes, the only way to run mermaid is in the browser. |
Any thoughts regarding this: |
Seems that it uses puppeteer for rendering. |
deno has puppeteer. So we may avoid npm and use puppeteer in deno. I will test it. |
Here is a quick code for running puppeteer in deno and getting all svg and save the svgs in a dir: |
Okay, thanks!
|
Read this: DOC I am not sure, but you may need to run this command: |
@alaminkouser ok, the problem was the execution permissions for the downloaded binary. I've been experimenting with puppeteer (Deno already supports the Node version which is more updated). There are some issues yet but it's a good start. |
Interesting. I will also try this. |
Enter your suggestions in details:
Mermaid
The text was updated successfully, but these errors were encountered: