src/Markdig/Markdown.cs
/// <summary>
/// Parses the specified markdown into an AST <see cref="MarkdownDocument"/>
/// </summary>
/// <param name="markdown">The markdown text.</param>
/// <param name="trackTrivia">Whether to parse trivia such as whitespace, extra heading characters and unescaped string values.</param>
/// <returns>An AST Markdown document</returns>
/// <exception cref="ArgumentNullException">if markdown variable is null</exception>
Parses the specified markdown into an AST
Parses the specified markdown into an AST
public static MarkdownDocument Parse(string markdown, bool trackTrivia = false)
        {
            if (markdown is null) ThrowHelper.ArgumentNullException_markdown();
            MarkdownPipeline? pipeline = trackTrivia ? _defaultTrackTriviaPipeline : null;
            return Parse(markdown, pipeline);
        }
public static MarkdownDocument Parse ( string markdown , bool trackTrivia = false ) { if ( markdown is null ) ThrowHelper . ArgumentNullException_markdown ( ) ; MarkdownPipeline ? pipeline = trackTrivia ? _defaultTrackTriviaPipeline : null ; return Parse ( markdown , pipeline ) ; }
Parses the specified markdown into an AST
Parses the specified markdown into an AST
An AST Markdown document
An AST Markdown document
if markdown variable is null
if markdown variable is null
markdown
string
The markdown text.
The markdown text .
trackTrivia
bool
Whether to parse trivia such as whitespace, extra heading characters and unescaped string values.
Whether to parse trivia such as whitespace extra heading characters and unescaped string values .