benjypng / logseq-mermaid-plugin

Create mermaid diagrams in image format on-the-fly.
MIT License
94 stars 8 forks source link

hide mermaid code? #10

Closed notuntoward closed 2 years ago

notuntoward commented 2 years ago

This is nice, but is there a way to hide the mermaid code, showing only the rendered graph? It would be nice to keep the code within logseq so that I can change it later, and then re-render it.

benjypng commented 2 years ago

You can just collapse the block, and it will hide the mermaid code.

notuntoward commented 2 years ago

Oh you're right. I tried clicking the bullet symbol immediately above the code, which didn't do anything. Not sure what that bullet is, but clicking the bullet immediately above the rendered image almost does what I want -- the only thing is that the "render" button is still visible. Seems like that should be hidden too.