Port the remaining tabs to the macOS client

This commit is contained in:
Ian Gulliver
2026-10-17 07:26:18 -07:00
parent 9b3f775dac
commit e28c313854
15 changed files with 3648 additions and 50 deletions
+3 -1
View File
@@ -12,6 +12,8 @@ indirect enum MDInline: Sendable {
struct MDItem: Sendable {
var choice: String?
var choiceIndex = 0
var raw = ""
var inline: [MDInline] = []
var blocks: [MDBlock] = []
}
@@ -266,7 +268,7 @@ private func parseList(_ lines: [String], _ start: Int, _ choices: Bool) -> (MDB
}
private func item(_ body: [String], _ choices: Bool) -> MDItem {
var out = MDItem()
var out = MDItem(raw: body[0])
if choices, let m = choiceMarker.exec(body[0]) {
out.choice = m[2]
}