Class MarkdownParser

Class MarkdownParser

Namespace: Aspose.Html.Toolkit.Markdown.Syntax.Parser
Assembly: Aspose.HTML.dll (25.2.0)

Represents an MarkDown format document parser.

[ComVisible(true)]
public class MarkdownParser

Inheritance

objectMarkdownParser

Inherited Members

object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Constructors

MarkdownParser()

Initializes a new instance of the Aspose.Html.Toolkit.Markdown.Syntax.Parser.MarkdownParser class.

public MarkdownParser()

MarkdownParser(Action<imarkdownparserbuilder>)

Initializes a new instance of the Aspose.Html.Toolkit.Markdown.Syntax.Parser.MarkdownParser class.

public MarkdownParser(Action<imarkdownparserbuilder> builder)

Parameters

builder Action<IMarkdownParserBuilder&gt;

The MarkdownParserBuilder.

Fields

DefaultConfig

The default config actions.

public static readonly Action<imarkdownparserbuilder> DefaultConfig

Field Value

Action<IMarkdownParserBuilder&gt;

FullConfig

The full default config.

public static readonly Action<imarkdownparserbuilder> FullConfig

Field Value

Action<IMarkdownParserBuilder&gt;

Methods

Parse(TextReader)

Parse an TextReader.

public MarkdownSyntaxTree Parse(TextReader reader)

Parameters

reader TextReader

The TextReader.

Returns

MarkdownSyntaxTree

The Markdown syntax tree.

Parse(Stream)

Parse from Stream.

public MarkdownSyntaxTree Parse(Stream stream)

Parameters

stream Stream

The Stream.

Returns

MarkdownSyntaxTree

The Markdown syntax tree.

Parse(string)

Prase from the string context.

public MarkdownSyntaxTree Parse(string content)

Parameters

content string

The string content.

Returns

MarkdownSyntaxTree

The Markdown syntax tree.

ParseFile(string)

Parse an file.

public MarkdownSyntaxTree ParseFile(string path)

Parameters

path string

The path to file.

Returns

MarkdownSyntaxTree

The Markdown syntax tree. </imarkdownparserbuilder>