jgm / jgm/commonmark-hs

Definition list definitions treat blank lines differently from regular lists

Open
#165 6 comments 0 reactions 0 assignees View on GitHub
Dominant language
Haskell
Stars
145
Forks
38
PR merge metrics
No merged PRs in 30d

Description

I'm trying to rationalize the behavior from https://github.com/pulldown-cmark/pulldown-cmark/issues/979, and having trouble seeing it.

```markdown
HTML In a Definition List
:


One space

More HTML In a Definition List
:


Two Spaces

```

The first one does what I would expect: the `

` is inside the definition.

The second one, however, is confusing. commonmark-hs puts the `

` inside the definition, even though itemized lists don't. This inconsistency between definition lists and itemized lists seems like a bug:

```markdown
- HTML In an Itemized List
-


One space

- HTML *Outside* an Itemized List
-


Two Spaces

```

- HTML In an Itemized List
-


One space

- HTML *Outside* an Itemized List
-


Two Spaces

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.