|
There's always a new empty line(\n) in the end of the code block. My markdown is below The code above will get the |
Answered by
wooorm
Apr 25, 2021
Replies: 1 comment
|
That’s how it works in markdown: https://spec.commonmark.org/dingus/?text=%60%60%60x%0Ay%0A%60%60%60. And why in the readme that line ending is removed: https://github.com/remarkjs/react-markdown#use-custom-components-syntax-highlight. I think it could be an issuer with |
0 replies
Answer selected by
nomyfan
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
That’s how it works in markdown: https://spec.commonmark.org/dingus/?text=%60%60%60x%0Ay%0A%60%60%60.
And why in the readme that line ending is removed: https://github.com/remarkjs/react-markdown#use-custom-components-syntax-highlight.
I think it could be an issuer with
react-syntax-highlighter. You might want to raise it there.