markdown_preview: Remove unnecessary vec allocation (#44238)

Instead of allocating a one-element vec on the heap, we can just use an
array here (since `Editor::edit` accepts anything that implements
`IntoIterator`).

I haven't checked if there are more instances that can be simplified,
just accidentally stumbled upon this when working on something else in
the markdown preview crate.

Release Notes:

- N/A
e5f87735d3Oleksii (Alexey) Orlenko committed on 12/5/2025, 10:27:21 PM· committed by GitHubparentf4b8b0f
1 file changedLine totals unavailable