interface AutoLoaderOptions {
    baseCss: (string | CSSItem)[];
    baseJs: (string | JSItem)[];
    manual: boolean;
    onReady: () => void;
    provider: string | (path: string) => string;
    toolbar: boolean;
    transformPlugins: (ITransformPlugin | () => ITransformPlugin)[];
}

Properties

baseCss: (string | CSSItem)[]
baseJs: (string | JSItem)[]
manual: boolean

Whether to render markmaps manually. If false, all elements matching .markmap will be rendered once this package loads or DOMContentLoaded is emitted, whichever later.

onReady: () => void

Callback when markmap-lib/markmap-view and their dependencies are loaded. We can tweak global options in this callback.

provider: string | (path: string) => string
toolbar: boolean

Whether to create a toolbar for each markmap.

transformPlugins: (ITransformPlugin | () => ITransformPlugin)[]

Override built-in plugins if provided. Set to [] to disable all built-in plugins for auto-loader.