NEWCKEditor AI on your premises: Hook your LLM and register MCP tools. Webinar coming soon!
Sign up (with export icon)

MarkdownGfmMdToHtml

Api-class iconclass

This is a helper class used by the Markdown feature to convert Markdown to HTML.

Properties

  • _processor : Processor<undefined, undefined, undefined, undefined, undefined>
    Lock iconprivate

Methods

  • Chevron-right icon

    constructor( options = { [options.plugins] } )

    Creates a new instance of MarkdownGfmMdToHtml.

    Parameters

    options : object

    The options for the MarkdownGfmMdToHtml instance.

    Properties
    [ options.plugins ] : Record<string, Pluggable>

    The plugins to be used by the unified().use() processor for converting Markdown to HTML. By default, MarkdownGfmMdToHtmlDefaultPlugins is used. You can override the defaults by passing your own plugins.

    Learn more about the unified() plugin chain in the unified documentation.

    Defaults to MarkdownGfmMdToHtmlDefaultPlugins

    Defaults to {}

  • Chevron-right icon

    parse( markdown ) → string

    Parameters

    markdown : string

    Returns

    string