Ordered lists do not respect `start` attribute
Steps to reproduce
- Send a message like: "2. works for me"
- You see "1. works for me"
- Everyone else sees "2. works for me"
- Check the HTML, and it has:
<ol start="2">
<li>works for me</li>
</ol>
Realise that EXA is ignoring the start attribute on the ol tag.
EXI gets it right, as does EW.
Application version and app store
Whatever @kongo09 is on
Looks like a duplicate of https://github.com/element-hq/element-x-android/issues/1522, which we de-prioritised.
why would we de-prioritise this?
It needs several changes in the rich text editor libraries at different levels (HTML parsing, the DOM model, the generated MD/HTML, Android, iOS, web) and it didn't seem like something that's used very often.
Thanks Jorge for the fix. For posterity, there is still and issue (originally commented here), if the user types:
2. Line 1
4. Line 2
The result will not be what's the user has entered, but something like
2. Line 1
3. Line 2
Element Web and GitHub are also impacted by this issue, which should occur way less often hopefully.