johanneswuerbach / backstage-plugin-techdocs-addon-mermaid

Backstage TechDocs Mermaid Addon
MIT License
43 stars 18 forks source link

Add mermaid directive support #20

Closed jakecrews74 closed 1 year ago

jakecrews74 commented 1 year ago

Currently the plugin does not handle mermaid directives. This is because the isMermaidCode check just checks the keyword the mermaid diagram starts with, which will always return false since Mermaid directives have to be first. I added handling to run the check against with the directive removed if included.

johanneswuerbach commented 1 year ago

Released as v0.6.0, thank you 🤩