joethei / obsidian-plantuml

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

Compatibility with pandoc lua filters #42

Closed UFOMelkor closed 1 year ago

UFOMelkor commented 1 year ago

The pandoc lua filters allow passing additional attributes to the code block.

An example from their Readme (space at the end added by me for rendering in Github):

```{.plantuml caption="This is an image, created by **PlantUML**." width=50%}
@startuml
Alice -> Bob: Authentication Request Bob --> Alice: Authentication Response
Alice -> Bob: Another authentication Request Alice <-- Bob: another Response
@enduml
`` `

As they use another identifier for the code block, the plugin currently ignores it.

It would be nice, if the plugin could at least render such code blocks as plantuml diagrams.

joethei commented 1 year ago

This is more of a feature request for core Obsidian. Supporting this type of codeblock inside of this plugin would be quite a bit of additional work.