jrblevin / markdown-mode

Emacs Markdown Mode
http://jblevins.org/projects/markdown-mode/
GNU General Public License v3.0
892 stars 162 forks source link

Feature Request: Extension for PlantUML #432

Open Digicrat opened 4 years ago

Digicrat commented 4 years ago

I've begun using Plantuml within my Doxygen Markdown files, but I'm missing the ability to quickly preview in place that I can get in org-mode. In some cases, content within the plantuml diagram is currently being parsed as Markdown syntax in annoying ways.

Would it be possible to add support for the Plantuml "@startuml ... @enduml" tags to markdown-mode?

Support for PlantUML within Markdown is currently supported by both Doxygen (as a Doxygen tag) and Gitlab.

Specifically, my thought (to save re-running Doxygen each time I want to preview one diagram) is to have behavior similar to org-babel-mode (but without the extra "#+BEGIN_SRC" blocks such that:

Digicrat commented 4 years ago

After posting this, I discovered "plantuml-preview-current-block" command. I bound this to a key in markdown-mode to achieve my desired preview functionality rather easily. It would still be nice to see syntax highlighting and automatic parsing during export in markdown mode though.