Interface IMarkdownParser

The interface for a Markdown parser.

interface IMarkdownParser {
    render(source): Promise<string>;
}

Hierarchy (view full)

Methods

Methods

  • Render a markdown source into unsanitized HTML.

    Parameters

    • source: string

      The string to render.

    Returns Promise<string>

    • A promise of the string containing HTML which may require sanitization.