the name identifying this adapter
Optionalbackend: stringthe backend name
Optionalopts: anyoptions
Generates docinfo markup to insert at the specified location in the output document.
the location slot ('head' or 'footer')
the Document in which this highlighter is used
options
Optionalcdn_base_url?: stringbase URL for CDN assets
Optionallinkcss?: booleanlink stylesheet instead of embedding
Optionalself_closing_tag_slash?: string'/' for self-closing tags
the markup to insert
Formats the highlighted source for inclusion in an HTML document.
the source Block being processed
the source language (e.g. 'ruby')
options
Optionalnowrap?: booleandisable line wrapping
Optionaltransform?: Functioncalled with (pre, code) attribute objects before building tags
the highlighted source wrapped in <pre><code> tags.
Subclasses may return a plain string — the caller always awaits the result.
Indicates whether highlighting is handled server-side by this highlighter.
false by default; subclasses return true to enable highlight
Indicates whether this highlighter has docinfo markup to insert at the specified location.
the location slot ('head' or 'footer')
false by default; subclasses return true to enable docinfo
Highlights the specified source when this source block is being converted.
If the source contains callout marks, the caller assumes the source remains on the same lines and no closing tags are added to the end of each line. If the source gets shifted by one or more lines, return a tuple of the highlighted source and the line offset.
the source Block to highlight
the raw source text
the source language (e.g. 'ruby')
options
Optionalcallouts?: anycallouts indexed by line number
Optionalcss_mode?: stringCSS mode ('class' or 'inline')
Optionalhighlight_lines?: number[]1-based line numbers to emphasize
Optionalnumber_lines?: string'table' or 'inline' if lines should be numbered
Optionalstart_line_number?: numberstarting line number (default: 1)
Optionalstyle?: stringtheme name
the highlighted source, or a tuple with a line offset
Indicates whether this highlighter wants to write a stylesheet to disk.
the Document in which this highlighter is being used
false by default; subclasses return true to enable writeStylesheetToDisk
Writes the stylesheet to disk.
the Document in which this highlighter is used
the absolute path of the output directory
Base class for syntax highlighter adapters.
Subclasses should override the methods they need. Two usage patterns:
handlesHighlighting()→ true andhighlight().hasDocinfo()→ true anddocinfo().Both patterns may also override
format().