use PlantUML diagram code in PHP/Phabricator

Viewed 353
1 Answers

The syntax you have used is for syntax highlighting of source code. I think it would be better to define a new remarkup tag for this purpose (by extending PhabricatorRemarkupCustomBlockRule in a custom extension) rather than trying to overload syntax highlighting.

Unfortunately I can't find any examples of extending PhabricatorRemarkupCustomBlockRule, but there are examples of extending PhabricatorRemarkupCustomInlineRule which should be similar, such as here: https://discourse.phabricator-community.org/t/hyperlink-to-external-bug-tracking-system/1415

Related