Skip to content

Definition list definitions treat blank lines differently from regular lists #165

@notriddle

Description

@notriddle

I'm trying to rationalize the behavior from pulldown-cmark/pulldown-cmark#979, and having trouble seeing it.

HTML In a Definition List
:
  <div>
    <span>One space</span>
  </div>


More HTML In a Definition List
:

  <div>
    <span>Two Spaces</span>
  </div>

The first one does what I would expect: the <div> is inside the definition.

The second one, however, is confusing. commonmark-hs puts the <div> inside the definition, even though itemized lists don't. This inconsistency between definition lists and itemized lists seems like a bug:

- HTML In an Itemized List
-
  <div>
    <span>One space</span>
  </div>
- HTML *Outside* an Itemized List
-

  <div>
    <span>Two Spaces</span>
  </div>
  • HTML In an Itemized List
  • One space
  • HTML Outside an Itemized List
Two Spaces

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions