Closed apetitbois closed 5 years ago
The plugin should use the latest mermaid from npm registry. Which version of mermaid are you using in the browser?
<script type="text/javascript" src="file:///C:\Users\[...]\.vscode\extensions\shd101wyy.markdown-preview-enhanced-0.4.1\node_modules\@shd101wyy\mume\dependencies\mermaid\mermaid.min.js" charset="UTF-8"></script>
I've tried your example and this is what I get:
There are some problems with the rendering after the first draw of the diagram but it is not the problem that you report. Your snippet points to shd101wyy.markdown-preview-enhanced
, which is another plugin.
I've done further investigation on this type of diagram and the results are not encouraging.
gitGraph
is still experimental in mermaid and the resulting SVG lacks elements that would facilitate handling it properly in this plugin:
width
of the diagram. mermaid output just says 100%
.Considering this I propose to close this issue and come back when the mermaid support matures.
Expected behaviour
This does not render. But if I generate the PDF/HTML from a browser, this actually renders fine.
This is what is seen in the preview:
This is what is seen when rendered as HTML