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="pipeline">The pipeline used for the parsing.</param>
/// <param name="context">A parser context used for the parsing.</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, MarkdownPipeline? pipeline, MarkdownParserContext? context = null)
        {
            if (markdown is null) ThrowHelper.ArgumentNullException_markdown();
            pipeline = GetPipeline(pipeline, markdown);
            return MarkdownParser.Parse(markdown, pipeline, context);
        }
public static MarkdownDocument Parse ( string markdown , MarkdownPipeline ? pipeline , MarkdownParserContext ? context = null ) { if ( markdown is null ) ThrowHelper . ArgumentNullException_markdown ( ) ; pipeline = GetPipeline ( pipeline , markdown ) ; return MarkdownParser . Parse ( markdown , pipeline , context ) ; }
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 .
pipeline
MarkdownPipeline?
The pipeline used for the parsing.
The pipeline used for the parsing .
context
MarkdownParserContext?
A parser context used for the parsing.
A parser context used for the parsing .