Skip to content

Fix wrap_list_items for ordered and plus-marked lists - #456

Open
Hugohong258 wants to merge 1 commit into
Alir3z4:masterfrom
Hugohong258:fix-wrap-ordered-list-items
Open

Hugohong258 wants to merge 1 commit into
Alir3z4:masterfrom
Hugohong258:fix-wrap-ordered-list-items

Conversation

@Hugohong258

Copy link
Copy Markdown

With wrap_list_items=True, skipwrap() still excludes numbered and plus-marked list items, so an ordered HTML list can exceed body_width. Honor the option for these markers as it is already honored for * and -.

Fixes #352. Added marker/option controls and an ordered-list conversion test: three cases fail on the base commit. With the change, all 206 tests pass on Windows/Python 3.12.3. Black, isort, Flake8 and strict mypy 1.18.2 (with the configured Python 3.9 target) pass. Black emits its warning about running on Python 3.12 with the project's Python 3.13 target; no Python 3.13 runtime was tested. The suite retains three existing pytest deprecation warnings.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

WRAP_LIST_ITEMS setting is not respected

1 participant