We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 92162fb + 461fa2f commit 60b05d7Copy full SHA for 60b05d7
packages/mdx/src/mini-editor/code-browser.tsx
@@ -204,15 +204,12 @@ function Content({
204
/>
205
{file.code.lines.map((line, i) => (
206
<div key={i}>
207
- {line.tokens.length === 0 ? (
208
- <br />
209
- ) : (
210
- line.tokens.map((token, i) => (
211
- <span key={i} {...token.props}>
212
- {token.content}
213
- </span>
214
- ))
215
- )}
+ {line.tokens.map((token, i) => (
+ <span key={i} {...token.props}>
+ {token.content}
+ </span>
+ ))}
+ <br />
216
</div>
217
))}
218
0 commit comments