查看Markdown格式的Android组件:MarkdownView
jopen
10年前
MarkdownView是一个 Android webview 能够加Markdown格式的文本或文件,然后将其以HTML格式展示。它使用MarkdownJ并扩展了Android webview。
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");