pandoc / lua-filters

A collection of lua filters for pandoc
MIT License
612 stars 166 forks source link

Feature request: add mermaid to lua-filters/diagram-generator #93

Closed David-Else closed 1 year ago

David-Else commented 4 years ago

https://mermaid-js.github.io/mermaid/#/

There is a cli app https://github.com/mermaid-js/mermaid-cli available. You just need to npm install @mermaid-js/mermaid-cli and run it using npx. As an example, to process all the files once extracted:

for i in *.mmd; do npx mmdc -i "$i" -o "${i%.*}.png" -b transparent -t forest; done

Would be great to get that included!

tarleb commented 1 year ago

The diagram generator is now maintained at https://github.com/pandoc-ext/diagram. Mermaid support has been added there.