support embedded plantuml diagrams
bwl21 opened this issue · comments
Bernhard Weichel commented
There should be a way to embed plantuml source code in the markdown file and convert it on the fly to uml diagrams.
Bernhard Weichel commented
simple solution can be found on
https://groups.google.com/forum/#!msg/pandoc-discuss/3OTUaUtoDpc/Tvyghw7Jz-oJ
So I guess, I will not do anything ...
Bernhard Weichel commented
I Reopen this since class diagrams also use "--> which is the end of an html comment.
~~~~{.plantuml}
@startuml mydiagram.png
title this is my diagram
....
@enduml
~~~~~
Will be converted to the intermediate
![this is my diagram](mydiagram.png)
Regular expression will be
[~]{4,}\s+{\.plantuml}\s+@startuml\s([^\n]+)(\s+title\s+([^\n]+))[^~]+[~]{4,}