A multi-functional and easy way to integrate markdown formatting within mobile apps. Supports iOS and Android.
- Easy to use, convert markdown to attributed text for UILabels (iOS) or spannable strings for TextViews (Android)
- Highly customizable, use the core library to search for markdown tags for customized styling
- Also customizable without using the core library through a simple protocol (iOS) or interface (Android)
- Parses the following markdown tags: headers (#), text styles (italics and bold), strike through text, lists and links
- Supports escaping of markdown tag characters (using \)
- Uses fast native code (optionally) for Android to do the core parsing work
The library is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "SimpleMarkdownParser", '~> 0.4.0'
When using gradle, the library can easily be imported into the build.gradle file of your project. Add the following dependency:
compile ('com.crescentflare.simplemarkdownparser:SimpleMarkdownParserLib:0.4.0') {
transitive = false
}
Make sure that jcenter is added as a repository.
The provided example shows how to parse markdown, convert it to an attributed text or spannable string (or html) and show it on a text view. Also it contains an example on how to apply custom styling easily.
The library is new and doesn't contain all markdown features, but the commonly used features should be supported. Markdown conversion and customization is now complete enough to be used in an easy way. More markdown support and features will be added later.