Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[fuzz result] off-by-one indent numbered list item with empty first line #810

Closed
notriddle opened this issue Jan 15, 2024 · 0 comments · Fixed by #811
Closed

[fuzz result] off-by-one indent numbered list item with empty first line #810

notriddle opened this issue Jan 15, 2024 · 0 comments · Fixed by #811

Comments

@notriddle
Copy link
Collaborator

notriddle commented Jan 15, 2024

When a numbered list has a blank first line in its item, the line after it is supposed to be indented to match the imaginary space after it.

For examples:

1.
      pulldown-cmark thinks this is code, but commonmark.js and commonmark-hs don't.
      The dot in the list marker is at column two, so the child paragraph actually
      starts in column *four* (there's three spaces of indentation built into the list).
1.
  This is not in the list at all. It's a paragraph after it.

Events from pulldown-cmark:

"0)\n  (\n" -> [
  Start(List(Some(0)))
    Start(Item)
      Text(Borrowed("("))
    End(Item)
  End(List(true))
]

Events from pandoc:

"0)\n  (\n" -> [
  Start(List(Some(0)))
    Start(Item)
    End(Item)
  End(List(true))
  Start(Paragraph)
    Text(Boxed("("))
  End(Paragraph)
]

Events from commonmark.js:

"0)\n  (\n" -> [
  Start(List(Some(0)))
    Start(Item)
    End(Item)
  End(List(true))
  Start(Paragraph)
    Text(Boxed("("))
  End(Paragraph)
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants