MarkdownDocumentExtensions
Namespace: Markdown
Markdown document extensions.
public static class MarkdownDocumentExtensions
Inheritance Object → MarkdownDocumentExtensions
Methods
AppendHeader(IMarkdownDocument, String, Int32)
Creates an header with the specified arguments and appends this to the document.
public static IMarkdownDocument AppendHeader(IMarkdownDocument document, string header, int level)
Parameters
document IMarkdownDocument
The current document.
header String
The header text.
level Int32
The header level.
Returns
IMarkdownDocument
A reference to this instance after the append operation has completed.
AppendHeader(IMarkdownDocument, MarkdownInlineElement, Int32)
Creates an header with the specified arguments and appends this to the document.
public static IMarkdownDocument AppendHeader(IMarkdownDocument document, MarkdownInlineElement header, int level)
Parameters
document IMarkdownDocument
The current document.
header MarkdownInlineElement
The header text.
level Int32
The header level.
Returns
IMarkdownDocument
A reference to this instance after the append operation has completed.
AppendParagraph(IMarkdownDocument, String)
Creates a paragraph with the specified arguments and appends this to the document.
public static IMarkdownDocument AppendParagraph(IMarkdownDocument document, string text)
Parameters
document IMarkdownDocument
The current document.
text String
The paragraph text.
Returns
IMarkdownDocument
A reference to this instance after the append operation has completed.
AppendParagraph(IMarkdownDocument, MarkdownInlineElement)
Creates a paragraph with the specified arguments and appends this to the document.
public static IMarkdownDocument AppendParagraph(IMarkdownDocument document, MarkdownInlineElement text)
Parameters
document IMarkdownDocument
The current document.
text MarkdownInlineElement
The paragraph text.
Returns
IMarkdownDocument
A reference to this instance after the append operation has completed.
AppendHorizontalRule(IMarkdownDocument)
Creates an horizontal rule and appends this to the document.
public static IMarkdownDocument AppendHorizontalRule(IMarkdownDocument document)
Parameters
document IMarkdownDocument
The current document.
Returns
IMarkdownDocument
A reference to this instance after the append operation has completed.
AppendHorizontalRule(IMarkdownDocument, Char)
Creates an horizontal rule with the specified arguments and appends this to the document.
public static IMarkdownDocument AppendHorizontalRule(IMarkdownDocument document, char char)
Parameters
document IMarkdownDocument
The current document.
char Char
The horizontal rule character.
Returns
IMarkdownDocument
A reference to this instance after the append operation has completed.
AppendList(IMarkdownDocument, String[])
Creates a list with the specified arguments and appends this to the document.
public static IMarkdownDocument AppendList(IMarkdownDocument document, String[] items)
Parameters
document IMarkdownDocument
The current document.
items String[]
The list items.
Returns
IMarkdownDocument
A reference to this instance after the append operation has completed.
AppendList(IMarkdownDocument, IMarkdownListItem[])
Creates a list with the specified arguments and appends this to the document.
public static IMarkdownDocument AppendList(IMarkdownDocument document, IMarkdownListItem[] items)
Parameters
document IMarkdownDocument
The current document.
items IMarkdownListItem[]
The list items.
Returns
IMarkdownDocument
A reference to this instance after the append operation has completed.
AppendList(IMarkdownDocument, IEnumerable<IMarkdownListItem>)
Creates a list with the specified arguments and appends this to the document.
public static IMarkdownDocument AppendList(IMarkdownDocument document, IEnumerable<IMarkdownListItem> items)
Parameters
document IMarkdownDocument
The current document.
items IEnumerable<IMarkdownListItem>
The list items.
Returns
IMarkdownDocument
A reference to this instance after the append operation has completed.
AppendList(IMarkdownDocument, Char, String[])
Creates a list with the specified arguments and appends this to the document.
public static IMarkdownDocument AppendList(IMarkdownDocument document, char char, String[] items)
Parameters
document IMarkdownDocument
The current document.
char Char
The bullet point character.
items String[]
The list items.
Returns
IMarkdownDocument
A reference to this instance after the append operation has completed.
AppendList(IMarkdownDocument, Char, IMarkdownListItem[])
Creates a list with the specified arguments and appends this to the document.
public static IMarkdownDocument AppendList(IMarkdownDocument document, char char, IMarkdownListItem[] items)
Parameters
document IMarkdownDocument
The current document.
char Char
The bullet point character.
items IMarkdownListItem[]
The list items.
Returns
IMarkdownDocument
A reference to this instance after the append operation has completed.
AppendList(IMarkdownDocument, Char, IEnumerable<IMarkdownListItem>)
Creates a list with the specified arguments and appends this to the document.
public static IMarkdownDocument AppendList(IMarkdownDocument document, char char, IEnumerable<IMarkdownListItem> items)
Parameters
document IMarkdownDocument
The current document.
char Char
The bullet point character.
items IEnumerable<IMarkdownListItem>
The list items.
Returns
IMarkdownDocument
A reference to this instance after the append operation has completed.
AppendOrderedList(IMarkdownDocument, String[])
Creates an ordered list with the specified arguments and appends this to the document.
public static IMarkdownDocument AppendOrderedList(IMarkdownDocument document, String[] items)
Parameters
document IMarkdownDocument
The current document.
items String[]
The list items.
Returns
IMarkdownDocument
A reference to this instance after the append operation has completed.
AppendOrderedList(IMarkdownDocument, MarkdownTextListItem[])
Creates an ordered list with the specified arguments and appends this to the document.
public static IMarkdownDocument AppendOrderedList(IMarkdownDocument document, MarkdownTextListItem[] items)
Parameters
document IMarkdownDocument
The current document.
items MarkdownTextListItem[]
The list items.
Returns
IMarkdownDocument
A reference to this instance after the append operation has completed.
AppendOrderedList(IMarkdownDocument, IEnumerable<MarkdownTextListItem>)
Creates an ordered list with the specified arguments and appends this to the document.
public static IMarkdownDocument AppendOrderedList(IMarkdownDocument document, IEnumerable<MarkdownTextListItem> items)
Parameters
document IMarkdownDocument
The current document.
items IEnumerable<MarkdownTextListItem>
The list items.
Returns
IMarkdownDocument
A reference to this instance after the append operation has completed.
AppendCode(IMarkdownDocument, String, String)
Creates a code block with the specified arguments and appends this to the document.
public static IMarkdownDocument AppendCode(IMarkdownDocument document, string language, string code)
Parameters
document IMarkdownDocument
The current document.
language String
The code language.
code String
The code.
Returns
IMarkdownDocument
A reference to this instance after the append operation has completed.
AppendCode(IMarkdownDocument, String, MarkdownInlineElement)
Creates a code block with the specified arguments and appends this to the document.
public static IMarkdownDocument AppendCode(IMarkdownDocument document, string language, MarkdownInlineElement code)
Parameters
document IMarkdownDocument
The current document.
language String
The code language.
code MarkdownInlineElement
The code.
Returns
IMarkdownDocument
A reference to this instance after the append operation has completed.
AppendBlockquote(IMarkdownDocument, String)
Creates a blockquote with the specified arguments and appends this to the document.
public static IMarkdownDocument AppendBlockquote(IMarkdownDocument document, string text)
Parameters
document IMarkdownDocument
The current document.
text String
The blockquote text.
Returns
IMarkdownDocument
A reference to this instance after the append operation has completed.
AppendBlockquote(IMarkdownDocument, MarkdownInlineElement)
Creates a blockquote with the specified arguments and appends this to the document.
public static IMarkdownDocument AppendBlockquote(IMarkdownDocument document, MarkdownInlineElement text)
Parameters
document IMarkdownDocument
The current document.
text MarkdownInlineElement
The blockquote text.
Returns
IMarkdownDocument
A reference to this instance after the append operation has completed.
AppendTable(IMarkdownDocument, MarkdownTableHeader, IEnumerable<MarkdownTableRow>)
Creates a table with the specified arguments and appends this to the document.
public static IMarkdownDocument AppendTable(IMarkdownDocument document, MarkdownTableHeader header, IEnumerable<MarkdownTableRow> rows)
Parameters
document IMarkdownDocument
The current document.
header MarkdownTableHeader
The header.
rows IEnumerable<MarkdownTableRow>
The rows.
Returns
IMarkdownDocument
A reference to this instance after the append operation has completed.