Repository navigation
Highlights
Patch release: fixes line breaks and indentation for paragraphs inside list items (#94, #95).
What changes
<li><p>Text</p></li>now renders the bullet and the text on the same line, instead of putting the bullet on its own line. The same applies to other block elements at the start of an item (<div>,<h1>–<h6>, empty<p></p>).- Paragraphs after the first line of a list item now line up with the item's text instead of starting at the left margin. This covers text in a later
<p>, after a<br>, and after a nested list. Nested lists align each level to its own column. - An explicit non-zero
firstLineHeadIndentfrom your custom styles is respected, and customtextListHeadIndent/textListIndentvalues are followed. - Rendering stays linear for deeply nested lists (#89).
- Added 25 regression tests in
ListItemParagraphTests.
Compatibility
- Public API unchanged. Drop-in patch upgrade from v2.0.2.
- Output for lists without block elements,
<br>or nested lists inside items is unchanged. - A leading
<br>in an item and an item that starts with a nested list (<li><ul>…) keep their previous layout.
Full Changelog: v2.0.2...v2.0.3