bwl21 / wortsammler

an environment to manage comprehensive audience specific documentation and requirements tracing (based on pandoc)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

support embedded plantuml diagrams

bwl21 opened this issue · comments

There should be a way to embed plantuml source code in the markdown file and convert it on the fly to uml diagrams.

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 ...

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,}