查看Markdown格式的Android组件:MarkdownView

jopen 10年前

MarkdownView是一个 Android webview 能够加Markdown格式的文本或文件,然后将其以HTML格式展示。它使用MarkdownJ并扩展了Android webview。
687474703a2f2f692e696d6775722e636f6d2f664e6953532e706e67.png

To load a local file, you have to add it to your assets folder and pass a url that start with "file:///android_asset/" :

markdownView.loadMarkdownFile("file:///android_asset/myFile.md"); 

To load a file on the web you need to pass the full url :

markdownView.loadMarkdownFile("http://www.my-site.com/myFile.md"); 

项目主页:http://www.open-open.com/lib/view/home/1414487103919