Tilde sfuggite nel nuovo editor rich text sono buggate

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.
1 Mi Piace

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.

1 Mi Piace

This should be fixed now, can you still reproduce this issue running latest (eg. on Meta/Try)?

2 Mi Piace
\` still behaves somewhat weird for me. particularly \` becomes \\\` and then when you look add an extra ` stuff closes.

Feels like a real tough one to sort the whole way.

Sorry, I don’t follow. \` is not supposed to escape it when typed directly in the rich editor.

In markdown type

\`hello

Then flick to to rich and type

` 

That creates a code block and technically it should render

`hello`

1 Mi Piace

This is working as intended, the escaping is lost when parsed (when toggled from Markdown to rich text) and that’s expected as escaping with the \ is a markdown/code concept.

The supported way of escaping in rich editor mode is backspacing after the input rule takes place: `like this`.

Oh I see, thanks for clarifying

1 Mi Piace