MarkdownSection
Namespace: TagBites.Text.Markdown
Assembly: TagBites.Text.Markdown.dll
Product: TagBites.Text.Markdown v. 2.2.0
A header together with the content that belongs under it.
public class MarkdownSection : TagBites.Text.Markdown.MarkdownContentElement, TagBites.Text.Markdown.IMarkdownLinkTargetInheritance: object → MarkdownElement → MarkdownContentElement → MarkdownSection
Remarks
Section titled “Remarks”The level of the header follows the nesting, so moving a section moves its whole subtree. Set MarkdownHeader.Level for a level that does not follow the nesting.
Constructors
Section titled “Constructors”MarkdownSection(MarkdownText)
Section titled “MarkdownSection(MarkdownText)”A header together with the content that belongs under it.
public MarkdownSection(MarkdownText text)Parameters
Section titled “Parameters”textMarkdownText
Remarks
Section titled “Remarks”The level of the header follows the nesting, so moving a section moves its whole subtree. Set MarkdownHeader.Level for a level that does not follow the nesting.
Properties
Section titled “Properties”Header
Section titled “Header”Gets the header of the section.
public MarkdownHeader Header { get; }Property Value
Section titled “Property Value”Methods
Section titled “Methods”Resolve(MarkdownRenderer)
Section titled “Resolve(MarkdownRenderer)”protected internal virtual void Resolve(MarkdownRenderer renderer)Parameters
Section titled “Parameters”rendererMarkdownRenderer
SetCustomId(string)
Section titled “SetCustomId(string)”Gets or sets the explicit anchor of the header.
public MarkdownSection SetCustomId(string customId)Parameters
Section titled “Parameters”customIdstring
Returns
Section titled “Returns”Remarks
Section titled “Remarks”MarkdownFormat.HeaderAnchorStyle decides how the anchor is written. The property drops a leading #.