igniteui-webcomponents
Version:
Ignite UI for Web Components is a complete library of UI components, giving you the ability to build modern web applications using encapsulation and the concept of reusable components in a dependency-free approach.
27 lines (26 loc) • 816 B
TypeScript
import type { IgcChatMessage } from '../components/chat/types.js';
/**
* Options to configure the MarkdownMessageRenderer.
*/
export interface MarkdownRendererOptions {
/**
* If true, disables syntax highlighting entirely.
*/
noHighlighter?: boolean;
/**
* List of programming languages to support in syntax highlighting.
*/
languages?: string[];
/**
* The theme used by the syntax highlighter (e.g., 'github-light').
*/
theme?: {
light?: string;
dark?: string;
};
/**
* A custom HTML sanitization function. Defaults to DOMPurify.sanitize.
*/
sanitizer?: (html: string) => string;
}
export declare function createMarkdownRenderer(options?: MarkdownRendererOptions): Promise<(message: IgcChatMessage) => Promise<unknown>>;