feat: add tabWidth support for code highlighting and replace tabs with spaces in CodeColorizer

(cherry picked from commit 2849f907f68022ed2879216a764668878a0bb282)
This commit is contained in:
lgzzzz 2026-03-04 15:33:33 +08:00
parent 9d8921db5f
commit 2819c7d887
3 changed files with 8 additions and 1 deletions

View file

@ -157,6 +157,7 @@ export const DiffRenderer: React.FC<DiffRendererProps> = ({
renderedOutput = colorizeCode(
addedContent,
language,
tabWidth,
availableTerminalHeight,
contentWidth,
theme,