blowfish/node_modules/mermaid/dist/diagram-api/frontmatter.d.ts

11 lines
449 B
TypeScript
Raw Normal View History

2023-01-29 16:30:24 -06:00
import { DiagramDb } from './types';
export declare const frontMatterRegex: RegExp;
/**
* 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.
* @param db - Diagram database, could be of any diagram.
* @returns text with frontmatter stripped out
*/
export declare function extractFrontMatter(text: string, db: DiagramDb): string;