在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):apple/swift-markdown开源软件地址(OpenSource Url):https://github.com/apple/swift-markdown开源编程语言(OpenSource Language):Swift 98.2%开源软件介绍(OpenSource Introduction):Swift MarkdownSwift The parser is powered by GitHub-flavored Markdown's cmark-gfm implementation, so it follows the spec closely. As the needs of the community change, the effective dialect implemented by this library may change. The markup tree provided by this package is comprised of immutable/persistent, thread-safe, copy-on-write value types that only copy substructure that has changed. Other examples of the main strategy behind this library can be seen in Swift's lib/Syntax and its Swift bindings, SwiftSyntax. Getting Started Using MarkupIn your .package(url: "https://github.com/apple/swift-markdown.git", .branch("main")), Add the dependency to any targets you've declared in your manifest: .target(name: "MyTarget", dependencies: ["Markdown"]), To parse a document, use import Markdown
let source = "This is a markup *document*."
let document = Document(parsing: source)
print(document.debugDescription())
// Document
// └─ Paragraph
// ├─ Text "This is a markup "
// ├─ Emphasis
// │ └─ Text "document"
// └─ Text "." Please see Swift Getting InvolvedSubmitting a Bug ReportSwift Markdown tracks all bug reports with GitHub Issues. You can use the "Swift-Markdown" component for issues and feature requests specific to Swift Markdown. When you submit a bug report we ask that you follow the Swift Bug Reporting guidelines and provide as many details as possible. Submitting a Feature RequestFor feature requests, please feel free to file a GitHub issue or start a discussion on the Swift Forums. Don't hesitate to submit a feature request if you see a way Swift Markdown can be improved to better meet your needs. Contributing to Swift MarkdownPlease see the contributing guide for more information. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论