Implement better markdown escaping and inline code escape (#23222)

Motivation for this is using markdown for keymap error notifications in
#23113, but it also benefits the copied text of repl tables.

Release Notes:

- N/A
8e6fc3c807Michael Sloan committed on 1/16/2025, 11:06:57 AM· committed by GitHubparent5fdd7ed
3 files changedLine totals unavailable