raghur / mermaid-filter

Pandoc filter for creating diagrams in mermaid syntax blocks in markdown docs
423 stars 75 forks source link

Does the filter work when converting to PowerPoint pptx format? #90

Open przemyslslaw opened 2 years ago

przemyslslaw commented 2 years ago

I've tried to covert an md file with the following mermaid code to pptx,

graph TD;
    U1((U1))-->X1((X1))
    U2((U2))-->X2((X2))
    X1((X1))-->Y((Y))
    X2((X2))-->Y((Y))
    Z((Z))-->Y

but instead of a diagram, I got a weird picture,

image

instead of:

graph TD;
    U1((U1))-->X1((X1))
    U2((U2))-->X2((X2))
    X1((X1))-->Y((Y))
    X2((X2))-->Y((Y))
    Z((Z))-->Y

It does work fine when converting to html.

raghur commented 2 years ago

I haven't tested -- But, since all this does is a tree conversion (replacing a node with the corresponding img node) in the intermediate pandoc representation, this might be a pandoc issue.

Easy way to check would be to just convert a markdown image to pptx - and compare the pandoc JSONs in both cases.

I don't run windows anymore (other than a VM) though