We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7ef03fb commit f7589b5Copy full SHA for f7589b5
components/qna-chat-interface.tsx
@@ -407,7 +407,7 @@ export function QnAChatInterface() {
407
)
408
},
409
code: ({ className, children, ...props }) => {
410
- const match = /language-(\w+)/.exec(className || "")
+ const match = /language-([\w-]+)/.exec(className || "")
411
const isChart = match && match[1] === "chart"
412
const isDiscordWidget = match && match[1] === "discord-widget"
413
0 commit comments