-
-
Notifications
You must be signed in to change notification settings - Fork 174
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: consecutive blockquotes blocks (#560)
* fix: consecutive blockquotes blocks * chore: tweak changeset and add the example from OP --------- Co-authored-by: Evan Jacobs <570070+quantizor@users.noreply.github.com>
- Loading branch information
1 parent
069b486
commit f5a0079
Showing
3 changed files
with
62 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
--- | ||
"markdown-to-jsx": patch | ||
--- | ||
|
||
fix: double newline between consecutive blockquote syntax creates separate blockquotes | ||
|
||
Previously, for consecutive blockquotes they were rendered as one: | ||
|
||
**Input** | ||
|
||
```md | ||
> Block A.1 | ||
> Block A.2 | ||
|
||
> Block B.1 | ||
``` | ||
|
||
**Output** | ||
|
||
```html | ||
<blockquote> | ||
<p>Block A.1</p> | ||
<p>Block A.2</p> | ||
<p>Block.B.1</p> | ||
</blockquote> | ||
``` | ||
|
||
This is not compliant with the [GFM spec](https://github.github.com/gfm/#block-quotes) which states that consecutive blocks should be created if there is a blank line between them. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters