在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):vapor-community/markdown开源软件地址(OpenSource Url):https://github.com/vapor-community/markdown开源编程语言(OpenSource Language):Swift 100.0%开源软件介绍(OpenSource Introduction):MarkdownVery simple Swift wrapper of GitHub's fork of cmark. Uses a fork of cmark which has been adapted for building with SwiftPM. Usagemarkdown -> HTMLlet markdown = "# Hello"
let html = try markdownToHTML(markdown)
print(html) // This will return "<h1>Hello</h1>\n" OptionsYou can pass different options to the underlying let html = try markdownToHTML(markdown, options: [.safe]) The available options are:
For more information on the available options, see InstallationSwift Package Manager.package(url: "https://github.com/vapor-community/markdown.git", .upToNextMajor(from: "0.4.0")) |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论