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 .
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 is available under the MIT license. See the LICENSE file for more info.