Skip to content

Commit f1669e3

Browse files
committed
Update swift-markdown from fae172a to 7e70462
Includes the following changes: commit 7e704622ef98b3cc9233283b6298ed61806ddb43 Author: Ethan Kusters <ekusters@apple.com> Date: Sat May 21 14:02:22 2022 -0700 Correctly set `indexInParent` in `Markup.child(at:)` (#45) This fixes a recent regression where `Markup.child(at:)` began returning markup with incorrect metadata resulting in out-of-bounds errors. The `indexInParent` value of a child is unrelated to the parent's `indexInParent`. This was missed initially because tests were only checking for children of the first item where `indexInParent` would be 0. A new test has been added that asserts `Markup.child(at:)` returns correct values for children of nested items as well. commit 5cc5656732244237066214bc976570f67cfe47b7 Author: Ethan Kusters <ekusters@apple.com> Date: Fri May 20 18:53:24 2022 -0700 Improve performance of `Markup.child(at:)` method (#44) Improves the performance of `Markup.child(at:)` by refactoring to removing the need to iterate over all previous elements in the child array.
1 parent 0c05158 commit f1669e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Package.resolved

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
"repositoryURL": "https://github.com/apple/swift-markdown.git",
6161
"state": {
6262
"branch": "release/5.7",
63-
"revision": "fae172a60b3ed107bd4dc1e732abfec537661150",
63+
"revision": "7e704622ef98b3cc9233283b6298ed61806ddb43",
6464
"version": null
6565
}
6666
},

0 commit comments

Comments
 (0)