Search code examples
androidmarkdowntextview

Markdown support in Android TextView


Is there a way to enable a TextView to detect markdown tags and render the text accordingly? More specifically, my app contains a TextView in which the users can provide a description, and often they will use markdown to format their description. Unfortunately the text doesn't render, and instead we see all the tags written out in the textview.


Solution

  • There's no built-in support for Markdown in the Android SDK. You'll have to use a lib like markdown4j or CommonMark.