Skip to content

Commit 05408fe

Browse files
fix(web): preserve literal HTML when its parser fails to load
1 parent 89ac558 commit 05408fe

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎apps/web/src/components/ChatMarkdown.tsx‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1887,10 +1887,10 @@ const CHAT_MARKDOWN_RENDER_REHYPE_PLUGINS = [
18871887
type RehypePlugins = NonNullable<ReactMarkdownOptions["rehypePlugins"]>;
18881888
let rawHtmlPlugins: Promise<RehypePlugins> | undefined;
18891889
function loadRawHtmlPlugins() {
1890-
// Keep a stable promise for use(), including the sanitized fallback on import failure.
1890+
// Keep a stable promise for use(), including the escaped fallback on import failure.
18911891
return (rawHtmlPlugins ??= import("@t3tools/shared/markdownRawPipeline").then(
18921892
(module) => [...module.CHAT_MARKDOWN_REHYPE_PLUGINS, rehypeHeadingIds],
1893-
() => CHAT_MARKDOWN_RENDER_REHYPE_PLUGINS,
1893+
() => CHAT_MARKDOWN_LITERAL_HTML_REHYPE_PLUGINS,
18941894
));
18951895
}
18961896

0 commit comments

Comments
 (0)