Skip to content
Auto
Products

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.IMarkdownLinkTarget

Inheritance: objectMarkdownElementMarkdownContentElement → MarkdownSection

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.

A header together with the content that belongs under it.

public MarkdownSection(MarkdownText text)

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.

Gets the header of the section.

public MarkdownHeader Header { get; }

MarkdownHeader

protected internal virtual void Resolve(MarkdownRenderer renderer)

Gets or sets the explicit anchor of the header.

public MarkdownSection SetCustomId(string customId)

MarkdownSection

MarkdownFormat.HeaderAnchorStyle decides how the anchor is written. The property drops a leading #.