Open zwieberl opened 6 years ago
Thanks for reporting. There are several issue with the same pb, it's a really annoying point. We have to fix this
Also is you type "3. test" in Riot web, you will notice that it is replaced by a numbered list. Not sure it is an expected behavior... And if you type "123456.", it's even worth...
Currently if type
- text 1
- text 2
changes to
- text 1
- text 2
changes to bulleted list
@bmarty I think the problem is in the parser itself.
Currently parser markDownToHtml()
converts something like
- Text
to
<ol>
<li>Text</li>
</ol>
which inturn changes to
- Text
this is done by convertToHtml()
wriiten in js in markdown.js
which in turn uses marked.js
currently java<->js interface is used to convert to html.
Changes have to be done under marked.js
we could use this MarkDown lib It doesnt use WebView implementation for converting to Markdown. Hence this could be fast
Markwon is used in RiotX, I'm not sure we will update anything on this subject in Riot
The text
3. Whatever
gets automagically replaced by1. Whatever
after hitting the send-button.I tested this on a sailfish-device and on a normal Android-device. This does not happen with riot-desktop.