mirror of https://github.com/sylv/micro.git
fix: syntax highlighting indentation
This commit is contained in:
parent
d3de37a11b
commit
2f6cb9ed15
|
@ -31,7 +31,7 @@ export const SyntaxHighlighter = memo<SyntaxHighlighterProps>(
|
|||
<SyntaxHighlighterControls language={language} onLanguageChange={setLanguage} content={children} />
|
||||
{tokens.map((line, index) => {
|
||||
const props = getLineProps({ line, key: index });
|
||||
const classes = classNames(props.className, 'table-row');
|
||||
const classes = classNames(props.className, 'table-row whitespace-pre-wrap');
|
||||
|
||||
return (
|
||||
// handled by getLineProps
|
||||
|
|
Loading…
Reference in New Issue