@studiocms/md
Version:
Add Markdown Support to your StudioCMS project with ease!
14 lines (13 loc) • 727 B
TypeScript
export declare function parseCallouts(opt: false | 'obsidian' | 'github' | 'vitepress' | undefined): false | {
theme: "github" | "obsidian" | "vitepress";
} | undefined;
/**
* Creates a pre-render function for processing markdown content based on the configured renderer flavor.
*
* @returns A function that takes a markdown content string and returns a Promise resolving to the rendered string.
*
* The pre-render function dynamically selects the markdown processor to use:
* - If the `rendererConfig.flavor` is set to `'astro'`, it uses the `astroMD.render` method.
* - Otherwise, it defaults to using the `studioCMSMD.render` method.
*/
export declare function preRender(): (content: string) => Promise<string>;