Skip to content

[feature request] Option to disable the tight/loose distinction #204

Description

@makoConstruct

It's kind of impossible to get nested lists to render in a regular and predictable way due to the tight/loose list distinction. Paragraphs generally have padding. One of the list element types (I forget which) introduces a paragraph, but the rules about tight/loose list items don't correspond at all to whether you'd want there to be padding there. They seem to depend on whether there's a newline in the list item, or whether the list item is an only child, which, basically comes across as a bug.

This is the one aspect of markdown I think was really a mistake. An option to just force all list items to wrap the content in a p element would resolve it.

I could probably write this one, if you're open to it.

(If you're not, I'll just be using this kinda counterintuitive CSS that changes paragraphs' margins when they're in uls and uses a weird margin nesting effect that I didn't know existed until today:

p {
  margin-top: 13px;
}

ul p {
  margin-top: 6px;
}
li {
  margin-top: 6px;
}

)

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions