Syntax Highlighter turns distal text to code block when inserting backticks for inline code when there are no characters between the backticks

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.


  • Operating system: Win 10
  • Obsidian version: 0.9.17

Additional information

A post was merged into an existing topic: Empty inline code backticks (``) leak their style to the text below