@studiocms/html
Version:
Add HTML Support to your StudioCMS project with ease!
24 lines (23 loc) • 873 B
TypeScript
/**
* The HTML renderer configuration for StudioCMS.
*
* This renderer is responsible for handling HTML content within StudioCMS,
* utilizing shared configuration options for sanitization and rendering.
*
* (StudioCMS can technically already render HTML out of the box,
* but will error without any renderer configured for HTML content types.)
*/
declare const renderer: {
name: string;
sanitizeOpts: {
allowElements?: string[] | undefined;
blockElements?: string[] | undefined;
dropElements?: string[] | undefined;
allowAttributes?: Record<string, string[]> | undefined;
dropAttributes?: Record<string, string[]> | undefined;
allowComponents?: boolean | undefined;
allowCustomElements?: boolean | undefined;
allowComments?: boolean | undefined;
} | undefined;
};
export default renderer;