sphinx-contrib/plantuml

Feature Request: configurable newline of diagram

PhilipPartsch opened this issue · 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?

yuja commented

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