noties / Markwon

Android markdown library (no WebView)
https://noties.io/Markwon/
Apache License 2.0
2.68k stars 298 forks source link

Take ordered list start position into account #381

Open ouchadam opened 2 years ago

ouchadam commented 2 years ago

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 commented 2 years ago

Hello @ouchadam ,

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