Shahbaz Sheikh Shahbaz Sheikh - 22 days ago 17
Android Question

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
.

Answer

I'm going to assume you mean Markdown.

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

Comments