sphinx-contrib / plantuml

BSD 2-Clause "Simplified" License
115 stars 42 forks source link

support various confluence output formats #61

Closed jdknight closed 3 years ago

jdknight commented 3 years ago

A Confluence instance supports (at least) the png and svg format types. The original logic would use the HTML's format listing to sanity check the output formats (as they are the same); however, the implementation would only ever use the first format (i.e. png).

Instead of relying on the HTML format/tag dictionary, define a custom Confluence format list and use it to sanity check against the user's plantuml_output_format value. And if the sanity check passes, actually use the request format option.

yuja commented 3 years ago

Queued and tagged 0.22, thanks.