TabbyML / tabby

Self-hosted AI coding assistant
https://tabby.tabbyml.com/
Other
18.28k stars 771 forks source link

chore(ui): render toml code syntax correctly #2441

Closed wwayne closed 2 weeks ago

wwayne commented 2 weeks ago

What to fix

The code block fails to display .toml files correctly

2

Why

[workspace] becomes multiple lines because react-syntax-highlighter add .table to the workspace, causing it to be displayed as a table and occupy a whole line I didn't find any discuss addressing this issue so I guess that's because react-syntax-highlighter can't handle .toml correctly

How to fix

Use the bash syntax to render .toml files

1