Markdown editor displays formatting for wikilinks with partial markdown syntax

Steps to reproduce

This problem exists only in the markdown editor.
Create file with name _test.md in Obsidian. In another Obsidian file create wikilink [[_test.md]] then add text after the wikilink.

Expected result

(inside the markdown editor, not the markdown viewer)
“[[_test]] test”

Actual result

(inside the markdown editor, not the markdown viewer)
“[[_test]] test

Environment

  • Operating system: Windows 10
  • Obsidian version: 0.12.15

Additional information

When a file with a _ in the title is referenced in a wikilink, the markdown editor’s formatting preview displays all the text after the wikilink as italic. This problem does not persist in the markdown viewer.

The _ character is reserved for italics in Markdown. Use \_ for a literal _.

Yes, but \_ will break the wikilink