diff options
Diffstat (limited to 'themes/blowfish/assets/lib/mermaid/preprocess.d.ts')
-rw-r--r-- | themes/blowfish/assets/lib/mermaid/preprocess.d.ts | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/themes/blowfish/assets/lib/mermaid/preprocess.d.ts b/themes/blowfish/assets/lib/mermaid/preprocess.d.ts new file mode 100644 index 0000000..84f9bfa --- /dev/null +++ b/themes/blowfish/assets/lib/mermaid/preprocess.d.ts @@ -0,0 +1,10 @@ +import type { DiagramMetadata } from './diagram-api/types.js'; +/** + * Preprocess the given code by cleaning it up, extracting front matter and directives, + * cleaning and merging configuration, and removing comments. + * @param code - The code to preprocess. + * @returns The object containing the preprocessed code, title, and configuration. + */ +export declare function preprocessDiagram(code: string): DiagramMetadata & { + code: string; +}; |