{"id":18162821,"url":"https://github.com/zunda-pixel/markdownview","last_synced_at":"2025-07-30T07:08:38.550Z","repository":{"id":192642354,"uuid":"686858528","full_name":"zunda-pixel/MarkdownView","owner":"zunda-pixel","description":"A Swift package for rendering View with swift-markdown","archived":false,"fork":false,"pushed_at":"2025-06-04T16:09:08.000Z","size":149,"stargazers_count":17,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-07-22T22:37:54.402Z","etag":null,"topics":["markdown","swift","swiftui"],"latest_commit_sha":null,"homepage":"","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zunda-pixel.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2023-09-04T05:14:40.000Z","updated_at":"2025-06-21T06:20:19.000Z","dependencies_parsed_at":"2024-05-31T05:28:14.858Z","dependency_job_id":"33695f67-4213-489c-a7e5-43679d424591","html_url":"https://github.com/zunda-pixel/MarkdownView","commit_stats":null,"previous_names":["zunda-pixel/markdown-ui","zunda-pixel/markdownview"],"tags_count":14,"template":false,"template_full_name":null,"purl":"pkg:github/zunda-pixel/MarkdownView","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zunda-pixel%2FMarkdownView","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zunda-pixel%2FMarkdownView/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zunda-pixel%2FMarkdownView/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zunda-pixel%2FMarkdownView/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zunda-pixel","download_url":"https://codeload.github.com/zunda-pixel/MarkdownView/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zunda-pixel%2FMarkdownView/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267827503,"owners_count":24150350,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-30T02:00:09.044Z","response_time":70,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["markdown","swift","swiftui"],"created_at":"2024-11-02T10:05:21.207Z","updated_at":"2025-07-30T07:08:38.513Z","avatar_url":"https://github.com/zunda-pixel.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MarkdownView\n\nMarkdownView uses [swift-markdown](https://github.com/apple/swift-markdown) as Parser\n\n[![](https://img.shields.io/endpoint?url=https%3A%2F%2Fswiftpackageindex.com%2Fapi%2Fpackages%2Fzunda-pixel%2FMarkdownView%2Fbadge%3Ftype%3Dswift-versions)](https://swiftpackageindex.com/zunda-pixel/MarkdownView)\n\n[![](https://img.shields.io/endpoint?url=https%3A%2F%2Fswiftpackageindex.com%2Fapi%2Fpackages%2Fzunda-pixel%2FMarkdownView%2Fbadge%3Ftype%3Dplatforms)](https://swiftpackageindex.com/zunda-pixel/MarkdownView)\n\n\u003cimg width=\"644\" alt=\"Markdown Sample\" src=\"https://github.com/zunda-pixel/MarkdownView/assets/47569369/38bd1d7f-ec8d-4380-90ef-dc882375fa59\"\u003e\u003cbr\u003e\n\u003cimg width=\"300\" alt=\"Markdown Doxygen Document\" src=\"https://github.com/user-attachments/assets/4d7e207d-b43a-46c2-8a33-63ee9a252436\" /\u003e\n\n```swift\nimport MarkdownView\nimport Markdown\nimport SwiftUI\n\nstruct MarkdownView: View {\n  let markdown: String\n\n  var contents: [MarkupContent] {\n    let document = Document(\n        parsing: markdown,\n        options: [.parseBlockDirectives, .parseSymbolLinks, .parseMinimalDoxygen, .parseSymbolLinks]\n    )\n    return MarkdownViewParser.parse(document: document)\n  }\n  \n  var body: some View {\n    ScrollView {\n      LazyVStack(alignment: .leading, spacing: 10) {\n        ForEach(contents, id: \\.self) { content in\n          MarkupContentView(content: content)\n        }\n      }\n    }\n  }\n}\n```\n\n## Adding MarkdownView as a Dependency\n\nTo use the MarkdownView plugin in a SwiftPM project, add the following line to the dependencies in your Package.swift file:\n\n```swift\n.package(url: \"https://github.com/zunda-pixel/MarkdownView\", from: \"0.4.0\"),\n```\nInclude \"MarkdownView\" as a dependency for your target:\n\n```swift\n.target(\n  name: \"\u003ctarget\u003e\",\n  dependencies: [\n    .product(name: \"MarkdownView\", package: \"MarkdownView\"),\n  ]\n),\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzunda-pixel%2Fmarkdownview","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzunda-pixel%2Fmarkdownview","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzunda-pixel%2Fmarkdownview/lists"}