Closed jbeder closed 1 year ago
Check out my implementation with Apple's swift-markdown. MarkdownView
Hi @jbeder,
I would love to adopt apple/swift-markdown for MarkdownUI, but sadly, the way Apple versions this package makes it a bit difficult:
I want to avoid adding a dependency with a branch or exact revision requirements as it can be problematic and lead to these kinds of errors: #19.
Apple now has a Swift markdown package of its own: https://github.com/apple/swift-markdown
It's based on cmark as well. There are two main issues:
Document
type like the SwiftCommonMark package that this one depends on, so even if the linker error is resolved, you'd still have to use SwiftCommonMark's Document instead of the swift-markdown one. It'd be nice to be able to use the official supported one.(This issue comes from the fact that I was already using the swift-markdown package, and I wanted to render it in SwiftUI, so I tried using this package - which looks awesome, btw! - but I couldn't.)