full site update
This commit is contained in:
20
node_modules/@astrojs/markdown-remark/dist/frontmatter.d.ts
generated
vendored
Normal file
20
node_modules/@astrojs/markdown-remark/dist/frontmatter.d.ts
generated
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
export declare function isFrontmatterValid(frontmatter: Record<string, any>): boolean;
|
||||
export declare function extractFrontmatter(code: string): string | undefined;
|
||||
export interface ParseFrontmatterOptions {
|
||||
/**
|
||||
* How the frontmatter should be handled in the returned `content` string.
|
||||
* - `preserve`: Keep the frontmatter.
|
||||
* - `remove`: Remove the frontmatter.
|
||||
* - `empty-with-spaces`: Replace the frontmatter with empty spaces. (preserves sourcemap line/col/offset)
|
||||
* - `empty-with-lines`: Replace the frontmatter with empty line breaks. (preserves sourcemap line/col)
|
||||
*
|
||||
* @default 'remove'
|
||||
*/
|
||||
frontmatter: 'preserve' | 'remove' | 'empty-with-spaces' | 'empty-with-lines';
|
||||
}
|
||||
export interface ParseFrontmatterResult {
|
||||
frontmatter: Record<string, any>;
|
||||
rawFrontmatter: string;
|
||||
content: string;
|
||||
}
|
||||
export declare function parseFrontmatter(code: string, options?: ParseFrontmatterOptions): ParseFrontmatterResult;
|
Reference in New Issue
Block a user