huterguier / obsidian-mehrmaid

MIT License
13 stars 1 forks source link

Markdown rendering? #4

Open notuntoward opened 2 months ago

notuntoward commented 2 months ago

The mermaid website renders markdown bold int subgraph titles, but merhmaid in Obsidian doesn't. I also notice that in mehrmaid, the text in the 2nd to leftmost block is cropped. Is this expected to work?
tmp_mehrmaid_test.md

Mermaidchart.com image

Mehrmaid in obsisidian image

huterguier commented 2 months ago

Hey, sorry for the late response. The reason the text is not rendered in bold but just shows the Markdown syntax, is because you put additional ` next to the quotation marks. Removing them should fix the issue. I don't really have an explanation for the cropping at the moment. The blocks do not even contain any markdown that is rendered using Obsidian and simply uses the mermaid renderer. But the rendering error seems to be persistent, since its also occurring on my machine in the exact same places. So i guess i will take a close look at it. Seems like it's only occurring in Nodes with more than 3 lines.

Just out of curiosity, why are you even using the plugin if you're not rendering any markdown? You could just use the built in mermaid renderer instead.