-
Notifications
You must be signed in to change notification settings - Fork 742
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
Fixing numbered lists always starting from 1 #6473
Conversation
OHGODTHANKYOU |
have also created a fix upstream noties/Markwon#409 |
final SpanFactory spanFactory = configuration.spansFactory().get(ListItem.class); | ||
|
||
// Modified line | ||
int number = Integer.parseInt(block.attributes().containsKey(START_KEY) ? block.attributes().get(START_KEY) : "1"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this line is the fix for taking into account the starting position
… into account the initial starting position
- the test helper is a little hacky in order to covert the spans to something human readable
1effc1a
to
ead8cec
Compare
SonarCloud Quality Gate failed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Type of change
Content
Includes the html tag start position when parsing html Lists.
Motivation and context
To fix the confusing behaviour of numbered lists losing their initial value #4777
Screenshots / GIFs
Tests
#.
eg5. July
Tested devices