src/Markdig/Markdown.cs
/// <summary>
/// Normalizes the specified markdown to a normalized markdown text.
/// </summary>
/// <param name="markdown">The markdown.</param>
/// <param name="writer">The destination <see cref="TextWriter"/> that will receive the result of the conversion.</param>
/// <param name="options">The normalize options</param>
/// <param name="pipeline">The pipeline.</param>
/// <param name="context">A parser context used for the parsing.</param>
/// <returns>A normalized markdown text.</returns>
Normalizes the specified markdown to a normalized markdown text.
Normalizes the specified markdown to a normalized markdown text .
public static MarkdownDocument Normalize(string markdown, TextWriter writer, NormalizeOptions? options = null, MarkdownPipeline? pipeline = null, MarkdownParserContext? context = null)
        {
            if (markdown is null) ThrowHelper.ArgumentNullException_markdown();
            pipeline = GetPipeline(pipeline, markdown);
            var document = MarkdownParser.Parse(markdown, pipeline, context);
            var renderer = new NormalizeRenderer(writer, options);
            pipeline.Setup(renderer);
            renderer.Render(document);
            writer.Flush();
            return document;
        }
public static MarkdownDocument Normalize ( string markdown , TextWriter writer , NormalizeOptions ? options = null , MarkdownPipeline ? pipeline = null , MarkdownParserContext ? context = null ) { if ( markdown is null ) ThrowHelper . ArgumentNullException_markdown ( ) ; pipeline = GetPipeline ( pipeline , markdown ) ; var document = MarkdownParser . Parse ( markdown , pipeline , context ) ; var renderer = new NormalizeRenderer ( writer , options ) ; pipeline . Setup ( renderer ) ; renderer . Render ( document ) ; writer . Flush ( ) ; return document ; }
Normalizes the specified markdown to a normalized markdown text.
Normalizes the specified markdown to a normalized markdown text .
A normalized markdown text.
A normalized markdown text .
markdown
string
None
writer
TextWriter
The destination  that will receive the result of the conversion.
The destination that will receive the result of the conversion .
options
NormalizeOptions?
The normalize options
The normalize options
pipeline
MarkdownPipeline?
None
context
MarkdownParserContext?
A parser context used for the parsing.
A parser context used for the parsing .