RickStrahl / MarkdownMonster

An extensible Markdown Editor, Viewer and Weblog Publisher for Windows
https://markdownmonster.west-wind.com
Other
1.58k stars 236 forks source link

PlantUml #916

Closed dinandv closed 1 month ago

dinandv commented 2 years ago

Hi,

I really love MarkdownMonster!

There is, however, something I really miss (or can't find yet): rendering plantuml

I frequently include uml diagrams in my markdown files using plantuml. In vscode that works perfect, but as a markdown editor I prefer MarkdownMonster above vscode

Do you have any plans to include support for this?

Image 408 s

RickStrahl commented 2 years ago

No, but it's possible to create an addin with a render extension...

Create a Markdown Monster RenderExtensions in an Addin

Look at the Mermaid example, which is pretty much what needs to happen for the plantuml code too I think.

I just glanced at the documentation, but it looks like the JavaScript code required is pretty small that could actually be embedded into the addin's code directly (so you don't have to worry about shipping a library).

dinandv commented 2 years ago

Thanks for your answer, I'll look into it!

StevenTCramer commented 3 months ago

Did someone make an addin?

RickStrahl commented 3 months ago

I'm going to take a look.

It looks like it's relatively easy to use the PlantUml server to generate images and embed them.

My concern originally was with requirements for libraries loading, but if there's an easy way to get this to render without dependencies it's easy enough to implement as a RenderExtension.

RickStrahl commented 3 months ago

Implemented in 3.3.5.