Skip to content

Commit

Permalink
chore: tweak changeset and add the example from OP
Browse files Browse the repository at this point in the history
  • Loading branch information
quantizor committed Mar 22, 2024
1 parent 370a4e5 commit 597d41b
Showing 1 changed file with 24 additions and 1 deletion.
25 changes: 24 additions & 1 deletion .changeset/strange-planets-buy.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,27 @@
"markdown-to-jsx": patch
---

fix: consecutive blockquotes blocks
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.

0 comments on commit 597d41b

Please sign in to comment.