refactor: use structured rich text for Notes editing

This commit is contained in:
2026-10-22 13:13:31 +02:00
parent 5803a00944
commit 751f22f6b1
20 changed files with 2155 additions and 2583 deletions
@@ -10,6 +10,7 @@ public struct NoteMarkdownExport {
private let images: [(name: String, data: Data)]
public init(contents: NSAttributedString) throws {
let contents = NoteDocument.markdown(contents)
let source = contents.string as NSString
var markdown = ""
var clipboard = ""