in Sources/Markdown/Base/RawMarkup.swift [155:169]
func hasSameStructure(as other: RawMarkup) -> Bool {
if self === other {
return true
}
guard self.header.childCount == other.header.childCount,
self.header.data == other.header.data else {
return false
}
for i in 0..<header.childCount {
guard self.child(at: i).hasSameStructure(as: other.child(at: i)) else {
return false
}
}
return true
}