Skip to content

Commit

Permalink
Add plantuml directive as alias to uml directive
Browse files Browse the repository at this point in the history
This allows to render PlantUML when using a Markdown parser such as MyST.

Closes #88.
  • Loading branch information
stephanlachnit authored and yuja committed Feb 21, 2024
1 parent c35d57d commit 4b5d2aa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sphinxcontrib/plantuml.py
Original file line number Diff line number Diff line change
Expand Up @@ -802,6 +802,7 @@ def _on_doctree_resolved(app, doctree, docname):
def setup(app):
app.add_node(plantuml, **_NODE_VISITORS)
app.add_directive('uml', UmlDirective)
app.add_directive('plantuml', UmlDirective)
try:
app.add_config_value('plantuml', 'plantuml', 'html', types=(str, tuple, list))
except TypeError:
Expand Down

0 comments on commit 4b5d2aa

Please sign in to comment.