-
-
Notifications
You must be signed in to change notification settings - Fork 267
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Render Markdown lists correctly #434
base: master
Are you sure you want to change the base?
Conversation
Hm. But Markdown isn't an officially supported Mastodon feature 🤔 |
f4eb608
to
4880c64
Compare
well, people come across posts using "advanced" html tags, including lists, all the time. mastodon for web renders this LIST HEADER
* item 1
* item 2
LIST FOOTER <p>LIST HEADER<p>
<ul>
<li>item 1</li>
<li>item 2</li>
</ul>
<p>LIST FOOTER</p> like this: …which is still readable. mastodon for android renders it like this: |
my pull request can be easily adapted to archive what you see on mastodon web; by
edit: i've simplified the implementation since |
found an issue with my implementation: list items will always append a line break, even if there's nothing after them – resulting in an empty line at the end of the SpannableStringBuilder |
okay, fixed it – also, the implementation feels much cleaner now |
… and since #152 also applies to other block elements, like |
it is now: mastodon/mastodon#23913 |
Closes #152