commonmark / commonmark/cmark

Single-space blank line evicts a list-item continuation

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

Nobody has claimed this yet.

Dominant language
C
Stars
2k
Forks
691
Avg merge
1d 16h
Merged PRs (30d)
1

Description

- [r]:x\n\n\n l and - [r]:x\n\n \n l both produce

<ul>
<li>l</li>
</ul>

But the single-space blank line in - [r]:x\n\n \n l appears to break the list-item continuation, producing:

<ul>
<li></li>
</ul>
<p>l</p>

Contributor guide

No contributing guide indexed for this repository

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.

Research direction

Reproduce the three list-item inputs from the issue and compare their rendered HTML. The payload names no source files or tests, so locate the list-continuation parsing entry point and its regression-test area first. Done means the single-space blank-line case preserves the continuation and matches the other two outputs.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
compilers
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Clearly specified
Newbie friendliness
65/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.