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

Preserve list order according to parent start attribute #32

Merged
merged 1 commit into from
Nov 17, 2021

Conversation

manuelpuyol
Copy link
Contributor

Right now, quoting bullet lists with ordering will change all indicators to 1. instead of keeping the actual order.

E.g, when you quote a list defined as:

1. Top level list one
    - 1. sublist one
    - 2. sublist  two
    - 3. sublist  three
1. Top level list two
1. Top level list three

it will generate:

> 1. Top level list one
>    
>    * 1. sublist one
>    * 1. sublist  two
>    * 1. sublist  three
> 2. Top level list two
> 3. Top level list three

which causes unwanted changes to the quoted markdown

@manuelpuyol
Copy link
Contributor Author

cc @keithamus

Copy link
Member

@keithamus keithamus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great stuff!

@manuelpuyol manuelpuyol merged commit 4cf29ad into main Nov 17, 2021
@manuelpuyol manuelpuyol deleted the ol-inside-ul branch November 17, 2021 20:02
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.

2 participants