This commit is contained in:
parent
4b35583782
commit
e77051ccc4
1987 changed files with 1147290 additions and 5648 deletions
18
themes/blowfish/assets/lib/mermaid/diagram-api/frontmatter.d.ts
vendored
Normal file
18
themes/blowfish/assets/lib/mermaid/diagram-api/frontmatter.d.ts
vendored
Normal file
|
@ -0,0 +1,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 {};
|
Loading…
Add table
Add a link
Reference in a new issue