Apple Text Markdown Integration
Simplifies Markdown rendering and parsing across SwiftUI and TextKit frameworks by providing best practices for inline and block-level syntax.
This skill provides specialized guidance for implementing Markdown within Apple's text-editing stack, specifically covering SwiftUI Text, AttributedString, and TextKit. It helps developers navigate the nuances of native parsing—such as why headings or lists might be silently dropped in SwiftUI—and offers implementation patterns for PresentationIntent, custom attribute keys, and rendering block-level formatting in UITextView or NSTextView. It is an essential resource for ensuring consistent text styling and troubleshooting common 'literal asterisk' bugs when using Swift's modern text APIs.
主な機能
01Guides the use of LocalizedStringKey vs String for automatic Markdown parsing
020 GitHub stars
03Configures AttributedString parsing using various interpretedSyntax options
04Maps PresentationIntent metadata to visual block formatting in TextKit views
05Identifies SwiftUI Text inline-only rendering limitations vs block-level requirements
06Implements custom Markdown attributes using the ^[text](key:value) syntax
ユースケース
01Troubleshooting cases where Markdown syntax appears as literal text instead of rendered styles
02Extending the Markdown parser with custom attributes for specialized UI highlighting
03Rendering complex Markdown documents with headers and lists in UITextView