markdown: Add debug_asserts for search result ordering (#59483)

Follow up to #59473

The previous code could actually highlight the wrong match if you passed
in unordered ranges.
However, i realized that all codepaths are passing in ordered matches
already, so I just added some `debug_asserts` to ensure that this is
always the case.

Release Notes:

- N/A
92399c67a1Bennet Bo Fenner committed on 6/17/2026, 6:53:29 PM· committed by GitHubparent253606e
2 files changedLine totals unavailable