sphinx-contrib / plantuml

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

Feature Request: configurable newline of diagram #67

Open PhilipPartsch opened 2 years ago

PhilipPartsch commented 2 years ago

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?

yuja commented 2 years ago

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