Empty inline code backticks (``) leak their style to the text below

Steps to reproduce

Type two backticks above text:

Hello
``
World

Expected result

Only the two backticks should be styled. The rest of the document shouldn’t be changed.

expected

Actual result

The inline code styling isn’t contained to `` until 1+ characters are put inside it:

actual 1
actual 2

Environment

  • Operating system: Windows 10 (2004) and macOS 10.15.6
  • Obsidian version: 0.8.15 (seen in older versions)

Additional information

Example:
example

1 Like

One tick does it too (type one, delete one of the resulting pair).

Steps to reproduce

press the back tick ` key to insert two backticks for inserting inline code

Expected result

Two back ticks are inserted, downstream highlighting is not affected - like this but with no space between the backticks

Actual result

Downstream highlights turn into one big code block. Picture provided. I think this happens because the highlighter does not recognize the second backtick if the two backticks have nothing between them.

As soon as I start typing, distal highlighting reverts to expected.

If I delete everything between the two backticks, the syntax highlighter will again convert everything after the two backticks to a code block.

Environment

  • Operating system: Win 10
  • Obsidian version: 0.9.17

Additional information

this is fixed in the new editor

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.