noties / Markwon

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

Unorder list second level invalid when RecyclerView use MarkwonAdapter #385

Closed ZuiRenA closed 2 years ago

ZuiRenA commented 2 years ago
noties commented 2 years ago

Hello @ZuiRenA ,

can you explain a bit more why it doesn't display in standard Markdown format? I see 2 levels of un-ordered list correctly on your preview image

ZuiRenA commented 2 years ago

Hello @noties The first picture is what I entered, the second picture is my preview of the input, the unordered list I entered has two levels, the content of the second level -unordered list content1 is not correct when previewing is recognized as the second level of an unordered list

noties commented 2 years ago

Well, I see that the first and second lines are merged. You should validate your input - that you send exactly

- test
   - unordered list second level1
   - unordered list second level2

It seems you process the input somehow, and might be removing some parts of the original input, which breaks the parser and renderer. It also seems that RecyclerView has nothing to do here and if you use regular TextView you might see the same results

ZuiRenA commented 2 years ago

Thank you for your reply I checked multiple times and pasted the available unordered list directly from the clipboard, still have this problem, and I tried using TextView, the same error occurred

noties commented 2 years ago

Hello @ZuiRenA ,

unfortunately I will need to close this issue, as you did not provide any details of how this would be reproduced. This had not gathered any feedback so I would assume there is an issue of your side. Which could be a library misconfiguration or a device specific bug