Skip to content
This repository has been archived by the owner on Jun 21, 2023. It is now read-only.

Improve detection of markdown sent by Reddit #8

Open
saket opened this issue Jan 14, 2019 · 0 comments
Open

Improve detection of markdown sent by Reddit #8

saket opened this issue Jan 14, 2019 · 0 comments

Comments

@saket
Copy link
Owner

saket commented Jan 14, 2019

I decided to parse markdown in the app directly because I thought using custom spans would be easier if the app was in control of parsing markdown. That was a correct assumption, but I soon realized it was a bad idea because markdown on Reddit is a gigantic pile of broken markdown syntaxes. I tried correcting some of them in the app using regex, but is like a losing battle.

I'd like to switch back to using the "processed" markdown HTML that Reddit sends. Android offers an HTML parsing using Html.toHtml(), but it does not let us use custom spans. We'll have to figure out a way to do that.

@saket saket changed the title Use processed Markdown sent by Reddit{ Use processed Markdown sent by Reddit Jan 14, 2019
@saket saket changed the title Use processed Markdown sent by Reddit Improve detection of markdown sent by Reddit Jan 14, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant