fix: prettier format react-custom-html-parser.tsx
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -70,7 +70,7 @@ function renderTokenizedCode(code: string, lang: string): React.ReactNode {
|
|||||||
if (!TDS_TOKENIZER_LANGS.has(normalised)) return code;
|
if (!TDS_TOKENIZER_LANGS.has(normalised)) return code;
|
||||||
|
|
||||||
const tokens = tokenize(code, normalised);
|
const tokens = tokenize(code, normalised);
|
||||||
|
|
||||||
return tokens.map((tok, idx) => (
|
return tokens.map((tok, idx) => (
|
||||||
<span key={idx} style={tok.type !== 'plain' ? tokenStyle(tok.type) : undefined}>
|
<span key={idx} style={tok.type !== 'plain' ? tokenStyle(tok.type) : undefined}>
|
||||||
{tok.text}
|
{tok.text}
|
||||||
|
|||||||
Reference in New Issue
Block a user