Skip to content

Commit

Permalink
Update DiagramExtension.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
xoofx authored Oct 25, 2024
1 parent 41bdb0f commit 415aa9d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/Markdig/Extensions/Diagrams/DiagramExtension.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,7 @@ public void Setup(MarkdownPipeline pipeline, IMarkdownRenderer renderer)
if (renderer is HtmlRenderer htmlRenderer)
{
var codeRenderer = htmlRenderer.ObjectRenderers.FindExact<CodeBlockRenderer>()!;
// TODO: Add other well known diagram languages
codeRenderer.BlocksAsDiv.Add("mermaid");
codeRenderer.BlocksAsDiv.Add("nomnoml");
}
}
}
}

0 comments on commit 415aa9d

Please sign in to comment.