Markwon Logo



markwon Build

Markwon is a markdown library for Android. It parses markdown following commonmark spec with the help of amazing commonmark-java library and renders result as Android-native Spannables. No HTML is involved as an intermediate step. No WebView is required. It's extremely fast, feature-rich and extensible.

It gives ability to display markdown in all TextView widgets (TextView, Button, Switch, CheckBox, etc), Toasts and all other places that accept Spanned content. Library provides reasonable defaults to display style of a markdown content but also gives all the means to tweak the appearance if desired. All markdown features listed in commonmark spec are supported (including support for inlined/block HTML code, markdown tables, images and syntax highlight).

Since version 4.2.0 Markwon comes with an editor to highlight markdown input as user types (for example in EditText).

Supported markdown features

  • Emphasis (*, _)
  • Strong emphasis (**, __)
  • Headers (#{1,6})
  • Links ([]() && [][])
  • Images
  • Thematic break (---, ***, ___)
  • Quotes & nested quotes (>{1,})
  • Ordered & non-ordered lists & nested ones
  • Inline code
  • Code blocks
  • Strike-through (~~)
  • Tables (with limitations)
  • Syntax highlight
  • LaTeX formulas
  • HTML
    • Emphasis (<i>, <em>, <cite>, <dfn>)
    • Strong emphasis (<b>, <strong>)
    • SuperScript (<sup>)
    • SubScript (<sub>)
    • Underline (<u>, ins)
    • Strike-through (<s>, <strike>, <del>)
    • Link (a)
    • Lists (ul, ol)
    • Images (img will require configured image loader)
    • Blockquote (blockquote)
    • Heading (h1, h2, h3, h4, h5, h6)
    • there is support to render any HTML/XML tag, but it will require to create a special TagHandler, more information can be found in HTML section
  • Task lists:
    • Not done
    • Done with X
    • and or small x

Screenshots

screenshot light #1 screenshot light #2 screenshot light #3 screenshot dark #2

By default configuration uses TextView textColor for styling, so changing textColor changes style


# Awesome Markwon


Nextcloud  A safe home for all your data. Access & share your files, calendars, contacts, mail & more from any device, on your terms.
Habitica  Treat your life like a game to stay motivated and organized! Habitica makes it simple to have fun while accomplishing goals.
Pure Writer  Never lose content editor & Markdown
Stack  An Android app for browsing Stack Overflow and other Stack Exchange sites
  • Partico - Partiko is a censorship free social network.
  • FairNote - simple and intuitive notepad app. It gives you speed and efficiency when you write notes, to-do lists, e-mails, or jot down quick ideas.
  • Boxcryptor - A software that adds AES-256 and RSA encryption to Dropbox, Google Drive, OneDrive and many other clouds.
  • Senstone Portable Voice Assistant - Senstone is a tiny wearable personal assistant powered by this App. It lets you capture your ideas, notes and reminders handsfree without pulling out your phone.

Extension/plugins:


Help to improve this section by submitting your application or library that is using Markwon

Last Updated: 1/12/2021, 3:08:52 AM