Skip to content

Parse ordered-list start as an ASCII decimal value - #324

Draft
yushuosun wants to merge 1 commit into
matthewwithanm:developfrom
yushuosun:fix/ordered-list-start-parsing
Draft

yushuosun wants to merge 1 commit into
matthewwithanm:developfrom
yushuosun:fix/ordered-list-start-parsing

Conversation

@yushuosun

Copy link
Copy Markdown

An ordered list with start=" 9 " is currently converted as starting at 1; a numeric-looking non-decimal value such as a superscript digit raises ValueError instead of using the default start. Strip surrounding ASCII whitespace and accept ASCII decimal digits before conversion. Zero and the existing fallback for signed values are unchanged.

The two new regressions failed on develop. The complete suite passed locally with the fix (98 tests), including the zero/sign compatibility cases.

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.

1 participant