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.MarkdownElementInheritance: object → MarkdownElement → MarkdownCode
Remarks
Section titled “Remarks”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.
Constructors
Section titled “Constructors”MarkdownCode(string, string)
Section titled “MarkdownCode(string, string)”A fenced block of code, with an optional language.
public MarkdownCode(string language, string code)Parameters
Section titled “Parameters”Remarks
Section titled “Remarks”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.
Properties
Section titled “Properties”Gets or sets the content of the block.
public string Code { get; set; }Property Value
Section titled “Property Value”Language
Section titled “Language”Gets or sets the language written after the opening fence, or null when the block has none.
public string Language { get; set; }Property Value
Section titled “Property Value”Methods
Section titled “Methods”Resolve(MarkdownRenderer)
Section titled “Resolve(MarkdownRenderer)”Writes the element into renderer.
protected internal virtual void Resolve(MarkdownRenderer renderer)Parameters
Section titled “Parameters”rendererMarkdownRenderer