gmunguia / markdown-it-plantuml

:herb: :book: plantuml diagrams in your markdown

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

enable setting server option from VS Code when used as extension by Markdown PDF extension

imuni4fun opened this issue · comments

The example shows how to set options from javascript, but this is an awesome extension for VS Code using Markdown PDF extension. It would be great to be able to set a setting for this extension so it could direct to a private PlantUML server. I have to export to HTML, replace all URLs, and then print to PDF at the moment as a work around. In addition, the ability to strip the "/plantuml" from the url would be great. This would allow easy use with plantuml docker images as shown in the following examples:

docker: docker run -d -p 8080:8080 plantuml/plantuml-server:tomcat
currently generated: "http://www.plantuml.com/plantuml/svg/---sensitive---"
desired generated: "http://localhost:8080/svg/---sensitive---"

I think this issue should be reported to the vscode-markdown-pdf project, because this is the plugin which uses markdown-it-plantuml and needs to support the configuration of the server option which is provided here.

Therefore I opened a corresponding issue there see #139.

Closed as per the above.