Skip to content

Commit

Permalink
fix(ai-help): migrate to react-markdown v9
Browse files Browse the repository at this point in the history
  • Loading branch information
caugner committed Nov 8, 2023
1 parent 1b8d812 commit da7d445
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/src/plus/ai-help/markdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,10 @@ export function Markdown({ children }: { children: string }) {
</div>
);
},
code: ({ inline, className, children, ...props }) => {
code: ({ className, children, ...props }) => {
const match = /language-(\w+)/.exec(className || "");
const lang = Prism.languages[match?.[1]];
return !inline && lang ? (
return lang ? (
<code
{...props}
className={className}
Expand Down

0 comments on commit da7d445

Please sign in to comment.