The MarkedView is the markdown text viewer.
select the best one from UIWebview or WKWebview.
-
UIMarkedView
- UIWebView base
-
WKMarkedView
- WKWebView base
The same process except the initialization.
Call is available from any text from any file.
Sorry the local file is only able to display PNG image.
Please other image showed URL.
// Swift
import MarkedView
・・・
// WKWebView base
let mdView = WKMarkedView()
// view set
self.view = mdView
// set Markdown text pattern
mdView.textToMark(contents)
// or load Markdown file pattern
// mdView.loadFile(filePath)
MarkedView is available through CocoaPods.
To install it, simply add the following line to your Podfile
:
pod 'MarkedView'
Then run the following command:
$ pod install
- MarkedView-for-Android
https://github.com/mittsuu/MarkedView-for-Android
MarkedView is available under the MIT license. See the LICENSE file for more info.