• Returns whether a MIME type corresponds to a Markdown flavor.

    Parameters

    • mime: string

      MIME type string

    Returns boolean

    boolean indicating whether a provided MIME type corresponds to a Markdown flavor

    Example

    const bool = isMarkdown('text/markdown');
    // returns true

    Example

    const bool = isMarkdown('text/plain');
    // returns false