pandoc-ext / diagram

Generate diagrams from embedded code; supports Mermaid, Dot/GraphViz, PlantUML, Asymptote, and TikZ.
MIT License
53 stars 9 forks source link

mermaid diagram is missing when export html #25

Closed ngocptblaplafla closed 1 month ago

ngocptblaplafla commented 1 month ago

when I export from md to html, mermaid created svg but filter didn't copy it to my directory

tarleb commented 1 month ago

You can set the cache to your current directory, see configuration.

ngocptblaplafla commented 1 month ago

when i set this in metadata,

diagram:
  cache: true
  cache-dir: ./

It wrote image to my working dir but filename was different with html's content

tarleb commented 1 month ago

Ah, I think I understand now: what you want is probably to use pandoc's --extract-media option.