MarkdownHtmlRenderer Class
Renders a Markdown syntax tree as HTML, as the CommonMark reference implementation does.
public static class MarkdownHtmlRendererMethods
| Name | Description |
|---|---|
| ToHtml(MarkdownSyntaxTree) | Renders the document as HTML. |
| ToHtml(MarkdownSyntaxTree, MarkdownHtmlRendererOptions?) | Renders the document as HTML. |
ToHtml overloads
ToHtml(MarkdownSyntaxTree)
MarkdownHtmlRenderer.csRenders the document as HTML.
public static string ToHtml(MarkdownSyntaxTree tree)ToHtml(MarkdownSyntaxTree, MarkdownHtmlRendererOptions?)
MarkdownHtmlRenderer.csRenders the document as HTML.
public static string ToHtml(MarkdownSyntaxTree tree, MarkdownHtmlRendererOptions? options)Parameters
treeMarkdownSyntaxTree- The document.
optionsMarkdownHtmlRendererOptions?- How to write the HTML, or
nullforMarkdownHtmlRendererOptions.Default.
Returns
Exceptions
ArgumentNullExceptiontreeisnull.