Skip to content
Auto
Products

MarkdownCode

Namespace: TagBites.Text.Markdown
Assembly: TagBites.Text.Markdown.dll
Product: TagBites.Text.Markdown v. 2.2.0

A fenced block of code, with an optional language.

public class MarkdownCode : TagBites.Text.Markdown.MarkdownElement

Inheritance: objectMarkdownElement → MarkdownCode

The block writes its content unchanged, because escaping would alter the code. The fence outlasts the longest run of backticks inside, so code that holds a fence cannot end the block.

A fenced block of code, with an optional language.

public MarkdownCode(string language, string code)

The block writes its content unchanged, because escaping would alter the code. The fence outlasts the longest run of backticks inside, so code that holds a fence cannot end the block.

Gets or sets the content of the block.

public string Code { get; set; }

string

Gets or sets the language written after the opening fence, or null when the block has none.

public string Language { get; set; }

string

Writes the element into renderer.

protected internal virtual void Resolve(MarkdownRenderer renderer)