Properties
4 minute read
ClosingMultiLineHtmlComment
- Type
- System.String
A regular expression string for finding the closing of a comment block and the text on either side of the closure. It has three capture groups:
InCommentsfor the text that is still inside the HTML comment before it closesCloseCommentfor the syntax that closes the HTML commentAfterCommentfor the text that follows the closing HTML comment syntax
HtmlCommentBlock
- Type
- System.String
A regular expression string for finding the opening of a comment block on a line and whether it closes on that line. It has three capture groups:
OpenCommentfor the syntax that closes the HTML commentInCommentsfor the text that is inside the HTML commentCloseCommentfor the syntax that closes the HTML comment
LineLead
- Type
- System.String
A regular expression string for finding the leading characters of a line of Markdown before the actual content. It has several capture groups:
Leadfor all of the characters before the first non-leading characterLeadingWhiteSpacefor all of the leading whitespace before any block notation or non-leading characterBlockNotationfor the list and block quote syntax and associated whitespace after leading whitespace and before the first non-leading characterBlockQuoteBeforefor the characters of zero or more block quote syntaxes after the leading whitespace and before any list notation or non-leading characterListNotationfor any list notation before the first non-leading characterOrderedListfor the list notation if it’s an ordered listUnorderedListfor the list notation if it’s an unordered listBlockQuoteAfterfor the characters of zero or more block quote syntaxes after all other leading syntaxes and before the first non-leading character
Link
- Type
- System.String
A regular expression for finding a Markdown link in a given line of text. It has several capture groups:
IsImage- for the!if the link is an image linkText- for the text in square brackets that makes up the link text for text-kind links and the alt text for image-kind linksDestination- for the URL that is the href for a text-kind link or source for an image-kind link if the syntax is an inline linkTitle- for the optional title text inside quotes if the syntax is an inline linkReferenceID- for the ID of the reference link definition if the syntax is using a reference link
LinkDefinition
- Type
- System.String
A regular expression for parsing the destination and title of a Markdown link or link reference definition. It has two capture groups:
Destinationfor the URL that is the href for a text-kind link or source for an image-kind linkTitle- for the optional title text inside quotes
LinkReferenceDefinition
- Type
- System.String
A regular expression for parsing a line of Markdown for a link reference definition. It has several capture groups:
Leadfor all of the characters before the first non-leading characterLeadingWhiteSpacefor all of the leading whitespace before any block notation or non-leading characterBlockNotationfor the list and block quote syntax and associated whitespace after leading whitespace and before the first non-leading characterBlockQuoteBeforefor the characters of zero or more block quote syntaxes after the leading whitespace and before any list notation or non-leading characterListNotationfor any list notation before the first non-leading characterOrderedListfor the list notation if it’s an ordered listUnorderedListfor the list notation if it’s an unordered listBlockQuoteAfterfor the characters of zero or more block quote syntaxes after all other leading syntaxes and before the first non-leading characterReferenceIDfor the ID of the definition in square brackets that is used by referencing linksDestinationfor the URL that is the href for a text-kind link or source for an image-kind linkTitle- for the optional title text inside quotes
MultitickInlineCode
- Type
- System.String
A regular expression for finding text inside of two or more wrapping backticks and a space. The
Text capture group contains all of the content inside the wrapping backticks.
OpenCodeFence
- Type
- System.String
A regular expression for finding the opening of a code fence in a line of Markdown. It has several capture groups:
Leadfor all of the characters before the first non-leading characterLeadingWhiteSpacefor all of the leading whitespace before any block notation or non-leading characterBlockNotationfor the list and block quote syntax and associated whitespace after leading whitespace and before the first non-leading characterBlockQuoteBeforefor the characters of zero or more block quote syntaxes after the leading whitespace and before any list notation or non-leading characterListNotationfor any list notation before the first non-leading characterOrderedListfor the list notation if it’s an ordered listUnorderedListfor the list notation if it’s an unordered listBlockQuoteAfterfor the characters of zero or more block quote syntaxes after all other leading syntaxes and before the first non-leading characterFencefor the characters that make up the fence opening syntax, which is three or more backticks (```) or tildes (~~~).