hackmd-io-issues
hackmd-io-issues copied to clipboard
Mermaid gitGraph preview will not render correctly
Is this a hackmd.io issue?
- [x] Yes, the bug happens on https://hackmd.io
- [ ] No. If it's a self-hosted CodiMD instance, please fire up the issue in the repo of CodiMD: https://github.com/hackmdio/codimd
Read our Official tutorial
- [x] done
What's the problem
The mermaid preview to gitGraph diagram will not render at the first time in edit + preview split mode. If i type a space and delete it, it can render the graph on preview side.
However, in preview mode, there are no chance to make this kind of change. So, it won't be rendered.
Current behaviour
Provide steps to reproduce:
- Go to https://hackmd.io/sL497ZI0QfqtAhnancnCtQ?both
- There are no rendered result in preview side.
- Type a space in mermaid code block
- Delete the space you typed
- See the correct rendering result
If possible, create a note with reproducible content and share the link with us.
- https://hackmd.io/sL497ZI0QfqtAhnancnCtQ?both
- https://hackmd.io/@flandrekawaii/HackMD-Mermaid-Diagram-Preview-Repro
Expected behaviour
- I can see correct rendering result in preview side before I type anything while accessing https://hackmd.io/sL497ZI0QfqtAhnancnCtQ?both
- I can see correct rendering result in https://hackmd.io/@flandrekawaii/HackMD-Mermaid-Diagram-Preview-Repro
Environment
I use HackMD on:
Desktop
- OS: macOS
- Browser:
- Firefox 108.0.2 (64bit)
- Microsoft Edge 109.0.1518.52 (x86_64)