Error with representation of links in Source mode

Before opening a new bug report, please search the forum for duplicates and follow the Troubleshooting Guide.

  • We only consider bugs that are reproducible in the sandbox vault or a vault with no third-party plugins/no css snippets/default theme.
  • For Linux, we only accept bug reports that are reproducible with our Appimage package under Gnome or KDE.
  • Developer issues with the API should go here

Once you’ve done the above, delete everything above this line.

Steps to reproduce

I was in Source mode. I wanted to paste a link to frontmatter property “prev:” Two “[”, selection of a note name and got text like [[note_name]], and expected to see “[[link]]”. After turn off Source mode and some additions to frontmatter it was converted to ‘\n’- - link.

Did you follow the troubleshooting guide? [Y/N] N

I’ve reproduced it in newly created sandbox vault.

Expected result

I expected to see text like this “[[note_name]]” or this ‘\n’ - “[[note_name]]”

Actual result

Wrong text.

Environment


Additional information