Skip to content

Commit

Permalink
Configure rehypeHighlight to ignore missing language definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
trheyi committed Feb 19, 2025
1 parent 5803a35 commit 0f568ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/xgen/components/chat/text/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ const Index = (props: IProps) => {
}
})
},
rehypeHighlight,
rehypeHighlight.bind(null, { ignoreMissing: true }),
() => (tree) => {
visit(tree, (node) => {
if (node?.type === 'element' && node?.tagName === 'pre') {
Expand Down

0 comments on commit 0f568ee

Please sign in to comment.