Skip to content
Auto
Products

MarkdownElementExtensions

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

Appends an element to the element the method is called on.

public static class MarkdownElementExtensions

Inheritance: object → MarkdownElementExtensions

Every method returns the element it was called on, with the type it was called with, so a chain keeps its type. A method exists only where a single call produces a complete element. WithElement(T, MarkdownElement) appends a list, a table or an empty quote, which need configuring first.

WithCheckChildItem<T>(T, bool, MarkdownText)

Section titled “WithCheckChildItem<T>(T, bool, MarkdownText)”

Adds an item with a check box nested under item, which produces siblings.

public static T WithCheckChildItem(this T item, this bool isChecked, this MarkdownText text)

T

Adds an item with a check box to list.

public static T WithCheckItem(this T list, this bool isChecked, this MarkdownText text)

T

Adds an item nested under item, which produces siblings.

public static T WithChildItem(this T item, this MarkdownText text)

T

Adds an item that is already built, nested under item.

public static T WithChildItem(this T item, this MarkdownListItem child)

T

Adds a code block without a language.

public static T WithCode(this T content, this string code)

T

Adds a code block written in language.

public static T WithCode(this T content, this string language, this string code)

T

Adds an element that is already built.

public static T WithElement(this T content, this MarkdownElement element)

T

Adds a header with an explicit level.

public static T WithHeader(this T content, this int level, this MarkdownText text)

T

Adds a block of raw HTML and returns it.

public static T WithHtml(this T content, this string html)

T

The markup reaches the output unchanged, so it must not be built from untrusted text.

Adds an item to list.

public static T WithItem(this T list, this MarkdownText text)

T

Adds an item that is already built.

public static T WithItem(this T list, this MarkdownListItem item)

T

Adds a paragraph.

public static T WithParagraph(this T content, this MarkdownText text)

T

Adds a quote that starts with quote.

public static T WithQuote(this T content, this MarkdownText quote)

T

Adds a section one level below content.

public static T WithSection(this T content, this MarkdownText text)

T

Adds a section whose header carries an explicit level.

public static T WithSection(this T content, this int level, this MarkdownText text)

T

Adds a thematic break.

public static T WithThematicBreak(this T content)
  • content T

T