Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
fanrongqitiancai opened this issue Feb 7, 2022 · 5 comments
Closed

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

fanrongqitiancai opened this issue Feb 7, 2022 · 5 comments

Comments

@fanrongqitiancai
Copy link

fanrongqitiancai commented Feb 7, 2022

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
Copy link
Owner

LaurentRDC commented Feb 7, 2022

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
Copy link
Author

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
Copy link
Owner

@fanrongqitiancai
Copy link
Author

thank you. I solved my problem

@LaurentRDC
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants