joethei / obsidian-plantuml

Generate PlantUML Diagrams inside Obsidian.md
MIT License
368 stars 18 forks source link

Option to always use SVG processor #36

Closed huyz closed 1 year ago

huyz commented 1 year ago

Is your feature request related to a problem? Please describe.

I want to always have high-res SVG diagrams. But I don't want to use ```plantuml-svg as that's not compatible with other Markdown processors (e.g., VS Code); I'd like to use ```plantuml as usual.

Describe the solution you'd like

Offer a setting that makes plantuml act as plantuml-svg. Maybe you could then offer plantuml-png for symmetry and completeness.

Describe alternatives you've considered

Additional context

I actually don't see a reason to use lower-res PNG. Is there an advantage that I'm missing? Perhaps there's a good reason this is the default?

joethei commented 1 year ago

PNG is the default as it works for all diagram types, some types just don't work with SVG.

Will add it as an option.

huyz commented 1 year ago

Oh good to know. Is it possible to detect the diagram type and fall back to PNG when SVG isn't supported for a diagram type?

joethei commented 1 year ago

Not efficently I think

joethei commented 1 year ago

Looks like I forgot to close this issue, this feature has already been implemented a long time ago.