swiftlang/swift-markdown
소개
Markdown 문서를 파싱하고, 생성하고, 편집하고, 분석하는 Swift 패키지입니다.
개발 도구측정된 스타 증가
- in 24h
- +2
- in 7 days
- +5
- in 15 days
- +6
- in 1 month
- +11
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalSwift Markdown
Swift Markdown is a Swift package for parsing, building, editing, and analyzing Markdown documents.
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 SwiftSyntax.
Getting Started Using Markup
In your Package.swift Swift Package Manager manifest, add the following dependency to your dependencies argument:
.package(url: "https://github.com/swiftlang/swift-markdown.git", branch: "main"),
Add the dependency to any targets you've declared in your manifest:
.target(
name: "MyTarget",
dependencies: [
.product(name: "Markdown", package: "swift-markdown"),
]
),
To parse a document, use Document(parsing:), supplying a String or URL:
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 Markdown's documentation site
for more detailed information about the library.
Contributing to Swift Markdown
Please see the contributing guide for more information.
Submitting a Bug Report
Swift 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 Request
For 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.
관련 프로젝트 살펴보기
불러오는 중…