refactor: use structured rich text for Notes editing
This commit is contained in:
@@ -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 = ""
|
||||
|
||||
Reference in New Issue
Block a user