Two block quotes separated by a blank line are rendered as a single quote

Open
#29 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
Half a day
Newbie friendliness
70/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
markdown, typescript
Domain
content

Research direction

The bug is in how the parser handles block quotes separated by a blank line, so start with the block quote handling in the parser source and reproduce the two-quote input > foo, blank line, > bar. Add a test that compares the output with the expected two-blockquote HTML from CommonMark example 242. Done when the test passes and the existing block quote tests still pass.

Written by the indexing model from the issue text.

Description

Two block quotes separated by a blank line are rendered as a single quote.

> foo

> bar

Expected (CommonMark example 242, GFM, marked):

<blockquote>
<p>foo</p>
</blockquote>
<blockquote>
<p>bar</p>
</blockquote>

Actual:

<blockquote>
<p>foo</p>
<p>bar</p>
</blockquote>
Dominant language
TypeScript
Stars
433
Forks
12
Avg merge
29m
Merged PRs (30d)
7

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from TanStack/markdown

All issues in TanStack/markdown

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.