Skip to content
Auto
Products

MarkdownListItem

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

A single item of a list, which also holds block elements of its own.

public class MarkdownListItem : TagBites.Text.Markdown.MarkdownContentElement

Inheritance: objectMarkdownElementMarkdownContentElement → MarkdownListItem

A single item of a list, which also holds block elements of its own.

public MarkdownListItem(MarkdownText text)

Gets or sets the state of the check box, or null when the item carries none.

public bool? IsChecked { get; set; }

bool?

The check box comes from the GitHub Flavored Markdown task list extension, which puts it on the item rather than on the list, so one list holds items with and without it. Plain text output writes or , because the state is part of the meaning.

Gets or sets the text of the item, written on the line that carries the marker.

public MarkdownText Text { get; set; }

MarkdownText

Adds a nested item with a check box and returns it.

public MarkdownListItem AddCheckChildItem(bool isChecked, MarkdownText text)

MarkdownListItem

Adds a nested item and returns it.

public MarkdownListItem AddChildItem(MarkdownText text)

MarkdownListItem

Adds a nested item that is already built and returns it.

public T AddChildItem(T item)
  • item T

T

protected internal virtual void Resolve(MarkdownRenderer renderer)