@threadplane/chatFunctionv0.3.4

renderMarkdown

Renders markdown content to sanitized HTML. Falls back to plain text with newline->br conversion if marked is not installed.

import { renderMarkdown } from '@threadplane/chat';

Declaration · overload 1

export declare function renderMarkdown(content: string, sanitizer: DomSanitizer): SafeHtml;

Parameters

content · required
string
sanitizer · required
DomSanitizer

Returns

SafeHtml