Port the remaining tabs to the macOS client
This commit is contained in:
@@ -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]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user