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
You stated that you wanted to display code, but stated the use of Markwon which only renders Markdown. Therefore I've assumed that you mean to replace the Markdown renderer.
CodeMirror definitely needs to be replaced. I've found it slow to render markdown and also having horizontal scrolling of a markdown document is less than ideal.
Another option which is extremely popular is Bypass. As another bonus, it's used in the extremely popular app plaid produced by a Google employee. Personally I'd go with Bypass purely based on it being more popular compared to the two you linked.
Well it's for both to be honest. Using codeview to render actual code is slow so using Code-View for that was an option. Then looking at Markdown we want to render it so either Markwon or Bypass.
I will take a look at both Bypass and Markwon but I'm remembering that we need to support GFM (GitHub Flavored Markdown). It's easier to do with just rendering Markdown via the GitHub API and handling it with Html.fromHtml(...) with some custom TagHandler probably.
For code I think CodeView is the best, but there might be better options.
In my opinon CodeMirror is not the best wat for us to display code. To replace it I'd prefer to use something like https://github.com/kbiakov/CodeView-android and https://github.com/noties/Markwon.
If you have other ideas on how to do this or if you think this is a bad idea feel free to comment.
The text was updated successfully, but these errors were encountered: