We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 5996fba + 29ea947 commit 6e9db8aCopy full SHA for 6e9db8a
1 file changed
Sources/MarkdownToAttributedString/AttributedStringVisitor.swift
@@ -306,6 +306,13 @@ struct AttributedStringVisitor: MarkupVisitor {
306
}
307
308
309
+ // Satisfies the single-parameter MarkupVisitor protocol requirement so that
310
+ // protocol dispatch (e.g. markup.accept(&self)) resolves to this type's
311
+ // implementation rather than the default provided by the protocol extension.
312
+ mutating func visitListItem(_ listItem: ListItem) {
313
+ visitListItem(listItem, orderedIndex: nil)
314
+ }
315
+
316
// orderedIndex is non-nil when part of an ordered list
317
mutating func visitListItem(_ listItem: ListItem, orderedIndex: Int? = nil) {
318
guard optionsSupportEl(.listItem) else {
0 commit comments