跳转到内容

lib/markdown-prerender

此内容尚不支持你的语言。

function parseCallouts(opt: undefined | false | "github" | "obsidian" | "vitepress"):
| undefined
| false
| {
theme: "github" | "obsidian" | "vitepress";
};

Defined in: studiocms/packages/@studiocms/md/src/lib/markdown-prerender.ts:9^

undefined | false | "github" | "obsidian" | "vitepress"

| undefined | false | { theme: "github" | "obsidian" | "vitepress"; }


function preRender(): (content: string) => Promise<string>;

Defined in: studiocms/packages/@studiocms/md/src/lib/markdown-prerender.ts:47^

Creates a pre-render function for processing markdown content based on the configured renderer flavor.

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.
(content: string): Promise<string>;

string

Promise<string>