Skip to content

Commit

Permalink
chore(ui): add comment on toml syntax overriding
Browse files Browse the repository at this point in the history
  • Loading branch information
wwayne authored Jun 20, 2024
1 parent 45481b0 commit 4a13536
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ee/tabby-ui/components/ui/codeblock.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ const CodeBlock: FC<Props> = memo(({ language, value, onCopyContent }) => {
copyToClipboard(value)
}

// react-syntax-highlighter does not render .toml files correctly
// using bash syntax as a workaround for better display
const languageForSyntax = language === 'toml' ? 'bash' : language
return (
<div className="codeblock relative w-full bg-zinc-950 font-sans">
Expand Down

0 comments on commit 4a13536

Please sign in to comment.