Skip to content

Commit

Permalink
Add {uml} token to allow compatibility with Sphinx/MyST (#444)
Browse files Browse the repository at this point in the history
Co-authored-by: cvial <[email protected]>
  • Loading branch information
Geocali and GeocaliAlstom authored Oct 12, 2021
1 parent 32d740c commit 2056222
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/markdown-it-plantuml/rule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export function plantumlWorker(state: any) {
// debugInfo(state.tokens);
let blockTokens: markdowIt.Token[] = state.tokens;
for (let blockToken of blockTokens) {
if (blockToken.type == "fence" &&( blockToken.info.startsWith("plantuml")|| blockToken.info.startsWith("puml"))) {
if (blockToken.type == "fence" &&( blockToken.info.startsWith("plantuml")|| blockToken.info.startsWith("puml")|| blockToken.info.startsWith("{uml}"))) {
blockToken.type = "plantuml";
// always render as <img> for maximum compatibility:
// https://github.com/qjebbs/vscode-markdown-extended/issues/67#issuecomment-554996262
Expand Down

0 comments on commit 2056222

Please sign in to comment.