I've following markdown:
"Line0
Line1
Line2
> 1
>
> 2
>
> 3
>
> 4
>
> 5
>
> 6
line end"
I am using react-markdown
to render this in UI. But new lines
after then end of blockquotes are getting included in blockquote
.
https://www.npmjs.com/package/react-markdown
I tried several ways to make it work but none of the ways worked for me.
What I've tried:
- Replacing /n with double space
- Replacing /n with backslash \
- Replacing /n with
- Replacing /n with
No matter what I do, all the new lines after end of the blockquote are getting included in blockquote.
What I am getting:
HTML
Any help on this will be really appreciated.
EDIT:
Here is the markdown string as in Markdown:
Line0\n\n\n\nLine1\n\n\n\n\n\nLine2\n\n> 1\n> \n> 2\n> \n> 3\n> \n> 4\n> \n> 5\n> \n> 6\n\n\n\n\n\n\n\n\n\nline end\n\n\n\n\n\n\n\n4\n\n\n\n\n\n\n\n\n\n5
Following changes worked for me: