kovetskiy / mark

Sync your markdown files with Confluence pages.
https://samizdat.dev
Apache License 2.0
993 stars 148 forks source link

how I select whether I want to render mermaid locally or in confluence? #309

Closed joyfulrabbit closed 1 year ago

joyfulrabbit commented 1 year ago

Title says it all.

Render Mermaid Diagram
Confluence doesn't provide [mermaid.js](https://github.com/mermaid-js/mermaid) support natively. Mark provides a convenient way to enable the feature like [Github does](https://github.blog/2022-02-14-include-diagrams-markdown-files-mermaid/). As long as you have a code block and are marked as "mermaid", the mark will automatically render it as a PNG image and insert into before the code block.

```mermaid title diagrams_example
graph TD;
A-->B;

In order to properly render mermaid, you can choose between the following mermaid providers:

"mermaid-go" via mermaid.go "cloudscript" via cloudscript-io-mermaid-addon



I'm sorry, how do I choose?
joyfulrabbit commented 1 year ago

I read the documentation, it didn't work as written! Because... I was using an older version of mark accidentally.

Closing in shame.