SwiftHoedown Swift bindings for Hoedown , a Markdown parsing library. Installation The recommended way to include SwiftHoedown in your project is by using Carthage . Simply add this line to your Cartfile : github "njdehoog/swift-hoedown" ~> 0.1 Make sure to link to both the SwiftHoedown and the Hoedown framework. (The separate Hoedown framework is a workaround for this problem ). Usage Import the framework import SwiftHoedown Convert Markdown to HTML let markdownString = " # Hello Markdown " let htmlString = Hoedown. renderHTMLForMarkdown (markdownString) Specify HTML rendering options let markdownString = " # Hello Markdown " let htmlString = Hoedown. renderHTMLForMarkdown (markdownString, flags : . Escape ) Specify Markdown rendering extensions Hoedown has optional support for several (unofficial) Markdown extensions, such as non-strict emphasis, fenced code blocks, tables, auto links, strikethrough and more. let markdownString = " # Hello Markdown " let htmlString = Hoedown. renderHTMLForMarkdown (markdown, extensions : [. Tables , . FencedCodeBlocks , . StrikeThrough ]) Contributing Fork it! Create your feature branch: git checkout -b my-new-feature Commit your changes: git commit -am Add some feature Push to the branch: git push origin my-new-feature Submit a pull request :D Credits SwiftHoedown was developed for use in Spelt . If you like this library, please consider supporting development by purchasing the app. License SwiftHoedown is released under the MIT license. See LICENSE for details. For the Hoedown license, see the Hoedown repository.
Swift bindings for Hoedown, a Markdown parsing library
3997
来源:
Licence:
联系:
分类:
平台:
环境:
大小:
更新:
标签:
免费下载
×
温馨提示
请用电脑打开本网页,即可以免费获取你想要的了。