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.
1 parent be06f10 commit dcaabffCopy full SHA for dcaabff
src/components/mdx/code-block.js
@@ -116,20 +116,14 @@ const CodeBlock = (props) => {
116
}
117
>
118
<span className="CodeBlock--row-indicator"></span>
119
- <span className="CodeBlock--row-content">
+ <div className="CodeBlock--row-content">
120
{addNewlineToEmptyLine(line).map((token, key) => (
121
<span
122
key={key}
123
{...tokenProps(getTokenProps({ token, key }))}
124
/>
125
))}
126
- {/* Forced newline added to the markup here for each line */}
127
- {/* This doesn't add an additional newline to be shown but */}
128
- {/* makes copying and pasting more consistent */}
129
- <span className="CodeBlock--token-plain">
130
- <br />
131
- </span>
132
+ </div>
133
</span>
134
135
0 commit comments