Variable default

Source
Expand description

Default package export.

For backward compatibility, the MarkdownIt class is wrapped so legacy code can call it without new. New code should instantiate it as a regular class with new. The compatibility wrapper may be removed in a future release.

const default: typeof MarkdownIt & (
    ...args:
        | []
        | [options: MarkdownItOptions]
        | [
            presetName: "default"
            | "zero"
            | "commonmark",
            options?: MarkdownItOptions,
        ],
) => MarkdownIt = ...