test02/node_modules/@vuepress/plugin-prismjs/lib/node/parser/notation.d.ts
罗佳鸿 6aa1ebe342
Some checks are pending
部署文档 / deploy-gh-pages (push) Waiting to run
first commit
2024-08-13 10:11:19 +08:00

37 lines
879 B
TypeScript

import type { CodeParser } from './getCodeParser.js';
export interface NotationCommentMarkerOption {
classMap: Record<string, string | string[]>;
classPre?: string;
}
/**
* line highlight
*
* `// [!code highlight]`, or `// [!code hl]`
*/
export declare const notationHighlight: (parser: CodeParser) => void;
/**
* line focus
*
* `// [!code focus]`
*/
export declare const notationFocus: (parser: CodeParser) => void;
/**
* line diff
*
* `// [!code ++]` and `// [!code --]`
*/
export declare const notationDiff: (parser: CodeParser) => void;
/**
* line error level
*
* `// [!code warning]` and `// [!code error]`
*/
export declare const notationErrorLevel: (parser: CodeParser) => void;
/**
* highlight word
*
* `// [!code word:xxx]`: `xxx` can be any word.
* @param parser
*/
export declare const notationWordHighlight: (parser: CodeParser) => void;