Skip to content

Commit dcaabff

Browse files
gganchganchimeg
andauthored
MRK-13802 remove br from code block (#351)
Co-authored-by: ganchimeg <[email protected]>
1 parent be06f10 commit dcaabff

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

src/components/mdx/code-block.js

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -116,20 +116,14 @@ const CodeBlock = (props) => {
116116
}
117117
>
118118
<span className="CodeBlock--row-indicator"></span>
119-
<span className="CodeBlock--row-content">
119+
<div className="CodeBlock--row-content">
120120
{addNewlineToEmptyLine(line).map((token, key) => (
121121
<span
122122
key={key}
123123
{...tokenProps(getTokenProps({ token, key }))}
124124
/>
125125
))}
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-
</span>
126+
</div>
133127
</span>
134128
))}
135129
</span>

0 commit comments

Comments
 (0)