Reputation: 184
Our orginization uses markdown files with embedded PlantUml. We're trying to export the full markdown file to a single .svg file so we can view it on a third-party application. The plantuml
VSCode plugin can export each embedded uml diagram to its own file, but doesn't appear to have an option to export the entire markdown to a new format.
Example
I would like this markdown diagram
## Read
```plantuml
@startuml
ClassA -> ClassB: Read done (location)
@enduml
```
## Write
```plantuml
@startuml
ClassC -> ClassD: Write done (location)
@enduml
```
## Etc...
to be exported to a .svg file that looks something like this:
(This is a screenshot from Visual Studio, so ignore colors/fonts that may be different than a rendered .svg.)
I want the headers to be included as a part of the .svg, not just the class diagrams.
Upvotes: 1
Views: 5925
Reputation: 366
It looks to be related (https://github.com/yzhang-gh/vscode-markdown/issues/684), which embeds PlantUML diagrams in the HTML.
Starting from Markdown All in One v3.0.0, you can export Markdown file to HTML which looks exactly the same as inside VSCode. In your case, just install both extensions (PlantUML and MAIO).
Upvotes: 0