/** * Built-in adapter for the https://highlightjs.org[highlight.js] syntax highlighter. * * By default, source blocks are colourised client-side: the generated HTML loads * the hljs runtime and theme from a CDN and the browser does the highlighting. * * Setting `:highlightjs-mode: build` switches to build-time highlighting: source * blocks are colourised at conversion time in Node and the theme stylesheet is * embedded, so the output is self-contained and no JavaScript runs in the browser. * * The build mode is **experimental** for now: the attributes it introduces * (`highlightjs-mode`, `highlightjs-stylesheet`) and the markup/CSS it generates * may change in a future release without a major version bump. */ export class HighlightJsAdapter extends SyntaxHighlighterBase { constructor(...args: any[]); /** * Colourise the (already callout-free) source with highlight.js (build mode * only — an experimental feature, see the class-level note). * * @param {Object} node - the source Block being highlighted * @param {string} source - source WITHOUT callout marks (the core strips them first) * @param {string} lang - the source language, or null * @param {Object} opts - { callouts, highlightLines, numberLines, startLineNumber } * @returns {Promise} the highlighted HTML */ highlight(node: any, source: string, lang: string, opts: any): Promise; /** * Wrap the source block in `
` with highlight.js CSS classes.
     *
     * Adds `language-` and `hljs` to the `` class attribute, and strips
     * the `highlight` class from `
` when the `nohighlight-option` attribute is set.
     * In build mode with line numbers, marks the `` as the numbering grid
     * (`linenums` class) and seeds the CSS line counter from the `start=` attribute.
     * @param {object} node - the source Block being processed
     * @param {string|null} lang - the source language string, or falsy if none
     * @param {object} opts - options passed to the base format()
     * @returns {Promise}
     */
    format(node: object, lang: string | null, opts: object): Promise;
    /**
     * Returns the docinfo markup for the given location.
     *
     * In build mode (head only): the theme stylesheet, embedded in a `