LaurentRDC / pandoc-plot

Render and include figures in Pandoc documents using your plotting toolkit of choice
https://laurentrdc.github.io/pandoc-plot/
GNU General Public License v2.0
216 stars 8 forks source link

How can I parse a flowchart using pandoc plot? #35

Closed fanrongqitiancai closed 2 years ago

fanrongqitiancai commented 2 years ago

My markdown file is as follows:

```plantuml
@startuml
participant John as "John Doe"
participant Jane as "Jane Doe"

John --> Jane: Hello world
@enduml
` ``

```flow
st=>start: Start
e=>end
op=>operation: My Operation
cond=>condition: Yes or No?

st->op->cond
cond(yes)->e
cond(no)->op


I downloaded plantuml Jar file and pandoc plot Exe in the same folder.
I run command
pandoc --filter pandoc-plot --filter pandoc-katex --css https://cdn.jsdelivr.net/npm/katex@0.13.9/dist/katex.min.css --css style.css --highlight-style pygments  markdown.txt -s   -o output.html

I found that the flowchart was not parsed as a picture.
LaurentRDC commented 2 years ago

Hi there. pandoc-plot supports the code block classes listed here. Specifically, I don't know what flow refers to.

Is this a type of plantuml chart? Usually plantuml documents start with @startuml and @enduml.

fanrongqitiancai commented 2 years ago

My document is written like this

@startuml participant John as "John Doe" participant Jane as "Jane Doe"

John --> Jane: Hello world @enduml But pandoc-plotd doesn't work. The output HTML doesn't display the image,

LaurentRDC commented 2 years ago

Can you turn on debug logging just like in this comment?

fanrongqitiancai commented 2 years ago

thank you. I solved my problem

LaurentRDC commented 2 years ago

Great, don't hesitate to open another issue if you need help