Aller au contenu

lib/renderer/types

Ce contenu n’est pas encore disponible dans votre langue.

Defined in: studiocms/packages/studiocms/src/lib/renderer/types.ts:12

Interface representing shared configuration for markdown.

Shared

astroMDRemark:
| undefined
| {
gfm: boolean;
rehypePlugins: (string | [string, any] | RehypePlugin | [RehypePlugin, any])[];
remarkPlugins: (string | [string, any] | RemarkPlugin | [RemarkPlugin, any])[];
remarkRehype: RemarkRehype;
shikiConfig: {
defaultColor: string | false;
langAlias: Record<string, string>;
langs: ShikiLang[];
theme: BundledTheme | ShikiTheme;
themes: Record<string, BundledTheme | ShikiTheme>;
transformers: ShikiTransformer[];
wrap: null | boolean;
};
smartypants: boolean;
syntaxHighlight: | false
| "shiki"
| "prism"
| {
excludeLangs: string[];
type: "shiki" | "prism";
};
};

Defined in: studiocms/packages/studiocms/src/lib/renderer/types.ts:13

studiocmsHTML:
| undefined
| {
sanitize: {
allowAttributes: Record<string, string[]>;
allowComments: boolean;
allowComponents: boolean;
allowCustomElements: boolean;
allowElements: string[];
blockElements: string[];
dropAttributes: Record<string, string[]>;
dropElements: string[];
};
};

Defined in: studiocms/packages/studiocms/src/lib/renderer/types.ts:15

studiocmsMarkdown:
| undefined
| {
autoLinkHeadings: boolean;
callouts: false | "github" | "obsidian" | "vitepress";
discordSubtext: boolean;
flavor: "studiocms";
sanitize: {
allowAttributes: Record<string, string[]>;
allowComments: boolean;
allowComponents: boolean;
allowCustomElements: boolean;
allowElements: string[];
blockElements: string[];
dropAttributes: Record<string, string[]>;
dropElements: string[];
};
};

Defined in: studiocms/packages/studiocms/src/lib/renderer/types.ts:14