Skip to content

Commit

Permalink
Update swift-markdown from fae172a to 7e70462
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
ethan-kusters committed May 25, 2022
1 parent 0c05158 commit f1669e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Package.resolved
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
"repositoryURL": "https://github.com/apple/swift-markdown.git",
"state": {
"branch": "release/5.7",
"revision": "fae172a60b3ed107bd4dc1e732abfec537661150",
"revision": "7e704622ef98b3cc9233283b6298ed61806ddb43",
"version": null
}
},
Expand Down

0 comments on commit f1669e3

Please sign in to comment.