commonmark / commonmark/commonmark.js
empty list item should be treated as an empty paragraph in loose list
Open
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 1.6k
- Forks
- 231
- Avg merge
- 2d 11h
- Merged PRs (30d)
- 3
Description
This renders as expected:
- all four of these items will
- be rendered uniformly "tight"
-
- including these last two
This does not:
- all four of these items will
- be rendered uniformly "loose"
-
- except these last two
With typical stylesheet spacing of p elements, this one's spacing ends up the "opposite" of the input Markdown:
- all four of these items will
- be rendered uniformly "loose"
-
- except these last two
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the three Markdown list examples with commonmark.js and compare the rendered paragraph spacing. Trace the parser and renderer behavior for empty list items in loose lists. Done means empty items are treated as empty paragraphs so all items follow the input list's tight or loose spacing consistently.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100