You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Markdown doesn't render correctly on Android when a line ends with two spaces followed by a newline.
Based on the markdown syntax, two space and a newline should be represented as a line break.
But it has been rendered three line breaks in this library.
I've went though the code and it seems the parsing isn’t accurate.
For instance, take the string "abc \n" where there are two spaces after "abc".
After parsing, the output incorrectly includes the elements TEXT, BR, and EOL.
And according the logic here, the BR will be translated to two '\n'. As a result, the render will not be as expected.
btw, if we have a string like "abc \n".(one spaces after abc).
After parsing, the output includes the children like TEXT/WHITESPACE/EOL.
Could some one help check on this issue?
Details
Used library version
0.26.0
Used platform
android
Used support library version
Used gradle build tools version
Used tooling / Android Studio version
Other used libraries, potential conflicting libraries
"**Aug 24, 2023** \n6:00 AM - 7:00 AM MST \n8:00 AM - 8:30 AM MST\n\n**Aug 28, 2023** \n8:00 AM - 8:30 AM MST\n\n**Aug 30, 2023** \n8:00 AM - 8:30 AM MST \n11:00 AM - 12:00 PM MST \n"
There are two spaces after **Aug 24, 2023**, followed by a line break.
About this issue
Markdown doesn't render correctly on Android when a line ends with two spaces followed by a newline.
Based on the markdown syntax, two space and a newline should be represented as a line break.
But it has been rendered three line breaks in this library.
I've went though the code and it seems the parsing isn’t accurate.
For instance, take the string "abc \n" where there are two spaces after "abc".
After parsing, the output incorrectly includes the elements TEXT, BR, and EOL.
And according the logic here, the BR will be translated to two '\n'. As a result, the render will not be as expected.
btw, if we have a string like "abc \n".(one spaces after abc).
After parsing, the output includes the children like TEXT/WHITESPACE/EOL.
Could some one help check on this issue?
Details
0.26.0
android
Checklist
The text was updated successfully, but these errors were encountered: