graph TD
A[Christmas] -->|Get money| B(Go shopping)
B --> C{Let me think}
C -->|One| D[Laptop]
C -->|Two| E[iPhone]
C -->|Three| F[Car]
Last active
February 28, 2021 01:15
-
-
Save vedmalex/88830bdf64a45b745e142eef9e5c805d to your computer and use it in GitHub Desktop.
fix: mermaid for vuePress without reject
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <template> | |
| </template> | |
| <script> | |
| export default { | |
| mounted() { | |
| import("mermaid/dist/mermaid").then(m => { | |
| m.initialize({ | |
| startOnLoad: true, | |
| }); | |
| m.init(); | |
| }); | |
| } | |
| }; | |
| </script> |
This is awesome, works for me 😄
vuepress/1.5.0
mermaid 8.5.1
Thankyou 🙇
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@vedmalex Is this still working? Because I couldn't get it to run with your example.
This is how I got it working on
mermaidv7.1.2andvuepressv0.14.0And my
README.mdlooks like: after the blank line indentation(<Space><Space>< >)Update Add
package.jsonreference