blob: e62a4bac1921c59fcdea50b6e41868e725d30ae2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
import type { MermaidConfig } from '../config.type.js';
interface FrontMatterMetadata {
title?: string;
displayMode?: string;
config?: MermaidConfig;
}
export interface FrontMatterResult {
text: string;
metadata: FrontMatterMetadata;
}
/**
* Extract and parse frontmatter from text, if present, and sets appropriate
* properties in the provided db.
* @param text - The text that may have a YAML frontmatter.
* @returns text with frontmatter stripped out
*/
export declare function extractFrontMatter(text: string): FrontMatterResult;
export {};
|