NormalizeRenderer Class

Default HTML renderer for a Markdown MarkdownDocument object.

public class NormalizeRenderer : TextRendererBase<NormalizeRenderer>
Inheritance
TextRendererBase<NormalizeRenderer> NormalizeRenderer

Constructors

NameDescription
NormalizeRenderer(TextWriter, NormalizeOptions?)Initializes a new instance of the NormalizeRenderer class.

NormalizeRenderer(TextWriter, NormalizeOptions?)

NormalizeRenderer.cs

Initializes a new instance of the NormalizeRenderer class.

public NormalizeRenderer(TextWriter writer, NormalizeOptions? options = null)

Parameters

writer TextWriter
The writer.
options NormalizeOptions?
The normalize options

Properties

NameDescription
CompactParagraphGets or sets the compact paragraph.
OptionsGets the options.

CompactParagraph

NormalizeRenderer.cs

Gets or sets the compact paragraph.

public bool CompactParagraph { get; set; }

Property value

bool

Gets the options.

public NormalizeOptions Options { get; }

Property value

NormalizeOptions

Methods

NameDescription
FinishBlock(bool)Performs the finish block operation.
WriteLeafRawLines(LeafBlock, bool, bool)Writes the lines of a LeafBlock

FinishBlock(bool)

NormalizeRenderer.cs

Performs the finish block operation.

public void FinishBlock(bool emptyLine)

Parameters

emptyLine bool

WriteLeafRawLines(LeafBlock, bool, bool)

NormalizeRenderer.cs

Writes the lines of a LeafBlock

public NormalizeRenderer WriteLeafRawLines(LeafBlock leafBlock, bool writeEndOfLines, bool indent = false)

Parameters

leafBlock LeafBlock
The leaf block.
writeEndOfLines bool
if set to true write end of lines.
indent bool
Whether to write indents.

Returns

NormalizeRenderer This instance