5 条评论 (5 条评论)0 个反应 (0 个反应)0 位负责人 (0 位负责人)Swift1,707 个派生 (1,707 个派生)batch import
enhancementgood first issueinterface
仓库指标
- 星标
- 34,064 个星标 (34,064 个星标)
- PR 合并指标
- 平均合并 2分钟 (平均合并 2分钟)30 天内合并 1 个 PR (30 天内合并 1 个 PR)
描述
I would like to be able to write rich notes about my VMs using the Markdown syntax.
This could be implemented by using the AttributedString API introduced by Apple in 2021.
贡献者指南
- 研究方向
- 该问题建议使用 Apple 的 AttributedString API 在虚拟机备注字段中渲染 Markdown。首先,定位当前显示备注的 UIView 或 NSView(例如 NSTextView 或 UITextView)。然后,实现一个从 Markdown 到 NSAttributedString 的转换器,可能使用 Swift Markdown 库或自定义解析器。最后,将富文本字符串设置到文本视图上,并确保原始 Markdown 被单独保存。
- 技术栈
- swift
- 领域
- frontend
- 议题类型
- 功能
- 前置要求
- Swift