Complex inline code and inline formula is Inconsistent in preview and edit mode

Steps to reproduce

input some complex inline code and inline formula, for example

`code` text `code

``$$test inline`$$text` code` sda`dadds

$sasadaada` $da`$

text

Expected result

the highlight of inline code and inline formula are consistent is preview and edit mode

Actual result

They look inconsistent as below

Environment

  • Operating system: windows10
  • Obsidian version:0.12.3

Additional information

I personally think the preview mode is right.