Class

GFMDataProcessor (markdown-gfm)

@ckeditor/ckeditor5-markdown-gfm/src/gfmdataprocessor

class

This data processor implementation uses GitHub Flavored Markdown as input/output data.

See the Markdown output guide to learn more on how to enable it.

Filtering

Properties

  • _htmlDP : HtmlDataProcessor

    private

    HTML data processor used to process HTML produced by the Markdown-to-HTML converter and the other way.

Methods

  • toData( viewFragment ) → String

    Converts the provided DocumentFragment to data format — in this case to a Markdown string.

    Parameters

    viewFragment : DocumentFragment

    Returns

    String

    Markdown string.

  • toView( data ) → DocumentFragment

    Converts the provided Markdown string to view tree.

    Parameters

    data : String

    A Markdown string.

    Returns

    DocumentFragment

    The converted view element.