MarkdownHtmlNodeRenderer Class

Writes the HTML of some nodes instead of MarkdownHtmlRenderer, such as the code blocks of a language or the custom containers of a name. Add it to MarkdownHtmlRendererOptions.NodeRenderers.

public abstract class MarkdownHtmlNodeRenderer

Remarks

The renderer offers each block and each inline to the node renderers, in order, before writing it: the first one that returns true writes the node. The parts of a block that are written with it, such as the items of a list, the rows and the cells of a table, and the terms and the definitions of a definition list, are not offered.

One instance writes every document, possibly on several threads at once: keep no state between calls.

Constructors

NameDescription
MarkdownHtmlNodeRenderer()

MarkdownHtmlNodeRenderer()

protected MarkdownHtmlNodeRenderer()

No documentation is available.

Methods

NameDescription
TryWrite(MarkdownSyntaxNode, MarkdownHtmlWriter)Writes a node, or lets the next node renderer or the built-in rendering write it.

TryWrite(MarkdownSyntaxNode, MarkdownHtmlWriter)

Writes a node, or lets the next node renderer or the built-in rendering write it.

public abstract bool TryWrite(MarkdownSyntaxNode node, MarkdownHtmlWriter writer)

Parameters

node MarkdownSyntaxNode
The block or the inline to write.
writer MarkdownHtmlWriter
Where to write the node, only during this call.

Returns

bool true when the node is written; false to let the next node renderer, or the built-in rendering, write it.