Correctly identify MSC4286 span values.

This commit is contained in:
Stefan Ceriu
2025-08-27 17:17:37 +03:00
committed by Doug
parent 216d16ddba
commit 97c5b5fb49

View File

@@ -182,7 +182,7 @@ struct AttributedStringBuilderV2: AttributedStringBuilderProtocol {
}
case "span":
if (try? childElement.attr(Self.attributeMSC4286)) ?? nil != nil {
if childElement.dataset()[Self.attributeMSC4286] != nil {
content = attributedString(from: childElement, preserveFormatting: preserveFormatting, listTag: listTag, listIndex: &childIndex, indentLevel: indentLevel)
}