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
Use code fence token mermaid
instead of mermaidjs
#46
Comments
Hi, please see this comment in #21:
That means, Prism will try to render the content in a fenced code block with token I know this breaking change will cause inconvenience, but it's the only workaround that come to my mind. |
Thanks, I understand. What are your thoughts on making the token settable in |
Sounds reasonable, I'll have a try. |
Supported in v2.0.0-alpha.19. Now you can customize the token by: module.exports = {
plugins: [
[
"@renovamen/vuepress-plugin-mermaid", {
token: "mermaid"
}
]
]
} Thanks! |
Perfect! Thank you very much! |
I've noticed that existing mermaid plugins for VuePress 1.x use the fenced code block token
mermaid
instead ofmermaidjs
. I'm just curious, is there a reason for this divergence that would cause code migrated from a VuePress 1.x environment to have these changed?I recommend adding support to check for
mermaid
in addition tomermaidjs
in markdown-it-mermaid.ts. Does this make sense? Let me know what you think!The text was updated successfully, but these errors were encountered: