plantuml icon indicating copy to clipboard operation
plantuml copied to clipboard

Feature Request: configurable newline of diagram

Open PhilipPartsch opened this issue 2 years ago • 1 comments

Currently in def html_visit_plantuml(self, node): every image is embedded in a <p>. This leads to a newline for each picture. If we would have a configuration parameter to supress the new line (set it to <span> instead of <p>), would be nice and support my use case. Any feedback?

PhilipPartsch avatar Jul 22 '22 23:07 PhilipPartsch

Maybe you can control the appearance with css, .plantuml { display: inline } for example.

Adding option to use <span> (or remove <p> at all) is fine, but I don't know how that will be useful. Might be even better to add an option to customize the class attribute per node. blockdiag has one: https://github.com/blockdiag/blockdiag/blob/9f0ccb20b534eddef89aade497cefc250b10d722/src/blockdiag/utils/rst/directives.py#L71

yuja avatar Jul 23 '22 15:07 yuja