ToHtml(String, TextWriter, MarkdownPipeline?, MarkdownParserContext?) Method

Definition

Namespace Markdig
Assembly Markdig.dll

Converts a Markdown string to HTML and output to the specified writer.

public static MarkdownDocument ToHtml(string markdown, TextWriter writer, MarkdownPipeline? pipeline = null, MarkdownParserContext? context = null)

Parameters

markdown
String

A Markdown text.

writer
TextWriter

The destination TextWriter that will receive the result of the conversion.

pipeline
MarkdownPipeline

The pipeline used for the conversion.

context
MarkdownParserContext

A parser context used for the parsing.

Returns

MarkdownDocument
The Markdown document that has been parsed