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.
A Confluence instance supports (at least) the
png
andsvg
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.