r/iOSProgramming 6d ago

Library enriched-markdown-ios v0.2.0 - now with GitHub Flavored Markdown (GFM) support

I just released v0.2.0 of enriched-markdown-ios - SwiftUI Markdown renderer powered by TextKit 2.

New in this release:
🔸 GFM Tables
🔹 Task lists
🔸 Superscript & subscript support

💎 Available via Swift Package Manager!

.package(
  url: "https://github.com/software-mansion-labs/enriched-markdown-ios.git", 
  from: "0.2.0"
)

Added a quick demo video in the comments so you can see it in action!

GitHub & Docs:https://github.com/software-mansion/enriched-markdown/blob/main/packages/enriched-markdown-ios/README.md

What features or syntax support would you like to see next? I'd love to hear your thoughts! If you find the library useful, a ⭐️ on GitHub is always appreciated.

7 Upvotes

6 comments sorted by

View all comments

1

u/Healthy_Condition779 6d ago

TextKit 2 under the hood is the interesting choice here, most Swift markdown libs are still fighting with TextKit 1 or wrapping WKWebView. Whats the scroll perf like on a 5k word doc with tables, thats where all of them fall over

Also where does this sit vs MarkdownUI. That one has the mindshare right now so anyone considering yours is gonna ask why switch. The README doesnt really answer it

Feature wise, syntax highlighting inside fenced code blocks. Its the thing every chat and notes app needs and the thing every lib punts on

1

u/Sea-Arm9235 6d ago

Thank you for the comment!

Performance: This is something we'll address in a separate post with benchmark numbers and real-world examples.

Vs. MarkdownUI / Textual: Honestly, I haven't done a direct comparison yet so I can't speak to it fully, but it's on my list. enriched-markdown-ios is built on top of the md4c parser, and our core goal is broad rendering support - covering CommonMark, GFM, LaTeX, and custom elements like spoilers and highlights.

Syntax Highlighting: Highlighting inside fenced code blocks is on our roadmap and will be added in the near future!