Mdx: Multiple block quotes don't have line breaks

Created on 27 Oct 2019  路  4Comments  路  Source: mdx-js/mdx

Subject of the issue

There's no line break between 2 block quotes.

Your environment

  • OS: Ubuntu 18.04
  • Packages: @mdxjs/mdx 1.4.4 & @mdxjs/react 1.4.4
  • Env: Chrome 77.0.3865.120, yarn 1.19.1

Steps to reproduce

> 1st block quotes
> 2rd block quotes

Expected behaviour

1st block quotes
2rd block quotes

Actual behaviour

1st block quotes 2rd block quotes

馃檵 typquestion

Most helpful comment

This is a fact of markdown. To create separate paragraphs, add a blank line between them. Note that GitHub does that too. Only on issues/PRs/releases it doesn鈥檛.

Solutions are:

> 1st block quotes

> 2rd block quotes

1st block quotes

2rd block quotes

...or:

> 1st block quotes
>
> 2rd block quotes

1st block quotes

2rd block quotes

All 4 comments

Hello, @lex111 ! If you type the "Steps to reproduce" in a markdown file on VS Code and click on "Open Preview to the Side" you get the same exact behavior.

On the other hand, if you use the "Steps to reproduce" on a GitHub comment you get the "Expected behavior":

1st block quote
2nd block quote

:sweat_smile:

It would be interesting to know the opinion of an MDX project member.

BTW if you insert a line between block quotes in VS Code you get the "Expected behavior".

This is a fact of markdown. To create separate paragraphs, add a blank line between them. Note that GitHub does that too. Only on issues/PRs/releases it doesn鈥檛.

Solutions are:

> 1st block quotes

> 2rd block quotes

1st block quotes

2rd block quotes

...or:

> 1st block quotes
>
> 2rd block quotes

1st block quotes

2rd block quotes

Sorry about that, then it would be nice to render line breaks in the MDX playground otherwise it leads to a misunderstanding.

I don't understand, could you clarify what you propose?

Was this page helpful?
0 / 5 - 0 ratings