Escaped tildes in the new rich text editor are buggy

When writing a paragraph that contains escaped tildes, typing subsequent tildes does not work as expected. Specifically, if I have some text that uses a ` (tilde) like this, then pressing the ` key again later in the same paragraph causes the inline code span to toggle about.

The escaped ` is also problematic.

Copy-paste the following into the rich text editor to replicate it:

Specifically, if I have some text that `` uses a ` (tilde) `` like this,
then pressing the <kbd>\`</kbd> key again later in the same paragraph
causes the inline code span to toggle about.

The escaped \` is also problematic.

This is a tricky one, \ is actually not given any special semantics from what I can tell it is simply converted from \ to \\ during the round trip.

@renato may have some ideas here, interesting edge case.