Skip to content
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

Don't reset ordered list number after pause #19

Merged
merged 1 commit into from
Oct 22, 2023

Conversation

mfontanini
Copy link
Owner

This makes pauses not break the numbering in ordered lists. This is a bit convoluted because from the markdown's perspective, an ordered list with a pause in between is 2 ordered lists. So the logic to realize there was a list before the pause and that we should pick up from the last index is done when constructing the presentation.

This does not work for lists of depth > 0 (e.g. a nested ordered list) because that's not valid markdown. I don't think comrak gives enough information when parsing lists to even get around this so it probably can't be fixed.

Fixes #15

@mfontanini mfontanini merged commit 25f3783 into master Oct 22, 2023
6 checks passed
@mfontanini mfontanini deleted the pause-ordered-lists branch October 22, 2023 17:53
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.

Pauses in numbered lists reset numbering
1 participant