[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-6989":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":16,"stars7d":17,"stars30d":18,"stars90d":16,"forks30d":16,"starsTrendScore":19,"compositeScore":20,"rankGlobal":10,"rankLanguage":10,"license":21,"archived":22,"fork":22,"defaultBranch":23,"hasWiki":22,"hasPages":24,"topics":25,"createdAt":10,"pushedAt":10,"updatedAt":26,"readmeContent":27,"aiSummary":28,"trendingCount":16,"starSnapshotCount":16,"syncStatus":19,"lastSyncTime":29,"discoverSource":30},6989,"swift-markdown","swiftlang\u002Fswift-markdown","swiftlang","A Swift package for parsing, building, editing, and analyzing Markdown documents.","https:\u002F\u002Fswiftpackageindex.com\u002Fswiftlang\u002Fswift-markdown\u002Fdocumentation\u002Fmarkdown",null,"Swift",3340,279,122,50,0,3,36,2,29.34,"Apache License 2.0",false,"main",true,[],"2026-06-12 02:01:33","# Swift Markdown\n\nSwift `Markdown` is a Swift package for parsing, building, editing, and analyzing Markdown documents.\n\nThe parser is powered by GitHub-flavored Markdown's [cmark-gfm](https:\u002F\u002Fgithub.com\u002Fgithub\u002Fcmark-gfm) implementation, so it follows the spec closely. As the needs of the community change, the effective dialect implemented by this library may change.\n\nThe markup tree provided by this package is comprised of immutable\u002Fpersistent, 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](https:\u002F\u002Fgithub.com\u002Fswiftlang\u002Fswift-syntax).\n\n## Getting Started Using Markup\n\nIn your `Package.swift` Swift Package Manager manifest, add the following dependency to your `dependencies` argument:\n\n```swift\n.package(url: \"https:\u002F\u002Fgithub.com\u002Fswiftlang\u002Fswift-markdown.git\", branch: \"main\"),\n```\n\nAdd the dependency to any targets you've declared in your manifest:\n\n```swift\n.target(\n    name: \"MyTarget\", \n    dependencies: [\n        .product(name: \"Markdown\", package: \"swift-markdown\"),\n    ]\n),\n```\n\nTo parse a document, use `Document(parsing:)`, supplying a `String` or `URL`:\n\n```swift\nimport Markdown\n\nlet source = \"This is a markup *document*.\"\nlet document = Document(parsing: source)\nprint(document.debugDescription())\n\u002F\u002F Document\n\u002F\u002F └─ Paragraph\n\u002F\u002F    ├─ Text \"This is a markup \"\n\u002F\u002F    ├─ Emphasis\n\u002F\u002F    │  └─ Text \"document\"\n\u002F\u002F    └─ Text \".\"\n```\n\nPlease see Swift `Markdown`'s [documentation site](https:\u002F\u002Fswiftlang.github.io\u002Fswift-markdown\u002Fdocumentation\u002Fmarkdown\u002F)\nfor more detailed information about the library.\n\n## Contributing to Swift Markdown\n\nPlease see the [contributing guide](https:\u002F\u002Fswift.org\u002Fcontributing\u002F#contributing-code) for more information.\n\n### Submitting a Bug Report\n\nSwift Markdown tracks all bug reports with [GitHub Issues](https:\u002F\u002Fgithub.com\u002Fswiftlang\u002Fswift-markdown\u002Fissues).\nYou can use the \"Swift-Markdown\" component for issues and feature requests specific to Swift Markdown.\nWhen you submit a bug report we ask that you follow the\nSwift [Bug Reporting](https:\u002F\u002Fswift.org\u002Fcontributing\u002F#reporting-bugs) guidelines\nand provide as many details as possible.\n\n### Submitting a Feature Request\n\nFor feature requests, please feel free to file a [GitHub issue](https:\u002F\u002Fgithub.com\u002Fswiftlang\u002Fswift-markdown\u002Fissues\u002Fnew)\nor start a discussion on the [Swift Forums](https:\u002F\u002Fforums.swift.org\u002Fc\u002Fdevelopment\u002Fswift-docc).\n\nDon't hesitate to submit a feature request if you see a way\nSwift Markdown can be improved to better meet your needs.\n\n\n\n\u003C!-- Copyright (c) 2021-2023 Apple Inc and the Swift Project authors. All Rights Reserved. -->\n","Swift Markdown 是一个用于解析、构建、编辑和分析Markdown文档的Swift包。其核心功能包括使用GitHub-flavored Markdown的cmark-gfm实现进行文档解析，确保了对标准的良好支持。此外，该库提供了一个由不可变\u002F持久化、线程安全且基于写时复制机制的价值类型组成的标记树结构，这使得它在处理复杂或大规模Markdown内容时表现优异。Swift Markdown适用于需要高效处理Markdown格式文本的各种场景，比如文档生成器、博客平台后端或是任何涉及Markdown文档解析与转换的应用程序开发。","2026-06-11 03:10:02","top_language"]