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

Take ordered list start position into account #381

Open
ouchadam opened this issue Dec 21, 2021 · 1 comment · May be fixed by #409
Open

Take ordered list start position into account #381

ouchadam opened this issue Dec 21, 2021 · 1 comment · May be fixed by #409

Comments

@ouchadam
Copy link

  • Markwon version: 4.6.2

Expected: To take ordered list start positions in account

<ol start="2"> <li>content</li> </ol>

// expect to render
2. content

Actual: Always renders as 1. {message}

given the message

Favourite colour
<ol> 
  <li>red</li> 
  <li>green</li> 
  <li>blue</li>
</ol>

which renders as

Favourite colour

  1. red
  2. green
  3. blue

when replying with

  1. is my favourite
// as html
<ol start="2"> <li>green</li> </ol>

then markwon renders the message as

  1. is my favourite

Taking a quick peek at the code, I'm hoping this would be a small change to the ListHandler initial value

@noties
Copy link
Owner

noties commented Jan 12, 2022

Hello @ouchadam ,

it is indeed missing from the ListHandler and could be added in the next version

@ouchadam ouchadam linked a pull request Jul 5, 2022 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants