Skip to content

Commit

Permalink
Fix crash with unknown code language (aeharding#1459)
Browse files Browse the repository at this point in the history
  • Loading branch information
aeharding authored May 5, 2024
1 parent 0eccd12 commit fb381bb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/features/shared/markdown/Markdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,10 @@ const markdownCss = css`
`;

// TODO - remove never when upgrading to rehypeHighlight v7
// TODO - ignoreMissing not needed in v7
// Waiting on leak fix - https://github.com/remarkjs/react-markdown/issues/791
const rehypePlugins: import("unified").PluggableList = [
[rehypeHighlight as never, { detect: true }],
[rehypeHighlight as never, { detect: true, ignoreMissing: true }],
];

export interface MarkdownProps
Expand Down

0 comments on commit fb381bb

Please sign in to comment.