/** * Tags each top-level rendered block with the file lines it comes from * (`data-source-lines="start-end"`, 1-based), so the viewer can map a selection * back to the Markdown source (history of a selection). * * Two phases around the normal render: * 1. before parsing, a standalone `` comment line is put in * front of each top-level token: marked passes HTML comments through verbatim; * 2. after rendering, each marker becomes an attribute of the element that follows it. * Markers left without an element (footnote definitions, link definitions) are dropped. */ import type { Token } from "marked"; /** `source` must use LF line endings, as marked's lexer does. `lineOffset` = lines before `source` in the file. */ export declare function injectSourceLineMarkers(source: string, tokens: Token[], lineOffset: number): string; export declare function attachSourceLineMarkers(html: string): string; //# sourceMappingURL=sourceLines.d.ts.map