noties / Markwon

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

Editor (Multiple edit spans): invalid spans #330

Open rt1shnik opened 3 years ago

rt1shnik commented 3 years ago

Markwon v4.6.1. To reproduce a bug you can use sample app (Multiple edit spans):

Screenshot from 2021-01-19 18-38-02

Text italic bold should be italic and bold, but it is just bold. Text bold at the end of line should be bold, but it is italic and bold.

Expected behavior should be like this: Screenshot from 2021-01-19 18-50-19


Another example: Screenshot from 2021-01-19 18-57-42

Should be: Screenshot from 2021-01-19 18-59-06

noties commented 3 years ago

Hello @rt1shnik ,

yes, it seems editor is incorrectly identifying delimited content (strong and regular emphasis). The problem lies in MarkwonEditorUtils.findDelimited method