Theia API Documentation v1.67.0
    Preparing search index...
    interface MarkdownProps {
        className?: string;
        markdown?: string | MarkdownString;
        markdownOptions?: {
            isTrusted?: boolean | { enabledCommands: string[] };
            supportHtml?: boolean;
            supportThemeIcons?: boolean;
        };
        markdownRenderer: MarkdownRenderer;
        onRender?: (element: undefined | HTMLElement) => void;
    }

    Hierarchy (View Summary)

    Index

    Properties

    className?: string

    Additional CSS class name(s) to apply to the container element.

    markdown?: string | MarkdownString

    The markdown content to render. Can be a string, a MarkdownString, or undefined. If undefined or empty, an empty div will be rendered.

    markdownOptions?: {
        isTrusted?: boolean | { enabledCommands: string[] };
        supportHtml?: boolean;
        supportThemeIcons?: boolean;
    }

    Options to pass to MarkdownStringImpl if markdown is a string. Common options include:

    • supportHtml: Allow HTML in markdown (default: false)
    • supportThemeIcons: Allow theme icons (default: false)
    • isTrusted: Trust level for command execution (default: false)
    markdownRenderer: MarkdownRenderer

    The MarkdownRenderer instance to use for rendering.

    onRender?: (element: undefined | HTMLElement) => void

    Optional callback that receives the rendered HTML element. Useful for post-processing or adding event listeners. Receives undefined when content is empty.