orchidhq / Orchid

Build and deploy beautiful documentation sites that grow with you
https://orchid.run
GNU General Public License v3.0
513 stars 53 forks source link

Add support for Mermaid.JS to OrchidDiagrams plugin #330

Closed cjbrooks12 closed 4 years ago

cjbrooks12 commented 4 years ago

Just as OrchidSyntaxHighlighter (and soon OrchidBible) supports options for both prerendered and browser-rendered processing, OrchidDiagrams should too. PlantUML may be used for prerendered diagrams, while a Mermaid Component could add the scripts needed to render diagrams on the client. It should select diagrams from standard Markdown code blocks with a language of mermaid by default, but that selector should be configurable.