Tripple brackets break links

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

Steps to reproduce

  1. Create a note (e.g., @marchJG1991ExplorationExploitation)
  2. Create a wikilink that is wrapped in an additional set of brackets: [[[@marchJG1991ExplorationExploitation]]]
  3. Try to open the link.

Did you follow the troubleshooting guide? [Y]

Expected result

  • Obsidian should open the existing note @marchJG1991ExplorationExploitation.

Actual result

  • Obsidian tries to open the (non existent) file: [@marchJG1991ExplorationExploitation instead of @marchJG1991ExplorationExploitation.

Environment

SYSTEM INFO:
	Obsidian version: v1.5.12
	Installer version: v1.5.12
	Operating system: #1 SMP PREEMPT_DYNAMIC Wed May  8 17:46:43 UTC 2024 6.6.30-2-MANJARO
	Login status: not logged in
	Insider build toggle: off
	Live preview: on
	Base theme: adapt to system
	Community theme: none
	Snippets enabled: 0
	Restricted mode: on

Additional information

My guess is, this is a regex bug. It was implemented like this:

\[\[([^\]]+)\]\]

Instead of this:

\[\[([^\]\[]+)\]\]

You can escape (\) the additional brackets and the link will work correctly.

e.g.:

\[[[@marchJG1991ExplorationExploitation]]\]

I am not sure I consider this a bug. You can open a feature request for this. Thanks

This surprises me. Could you please elaborate on your point of view?

I don’t understand why this shouldn’t be a bug report and would like to understand your POV.

This generally works, but having triple brackets is only necessary if you try to

  1. link to a litnote and
  2. create a citation using pandoc

Your suggestion solves 1. But if you run pandoc on this it won’t create the citation properly. This is because the brackets that enclose the citekey are now escaped. Pandoc ignores this and doesn’t create a proper citation.

Ok, I get what you mean. This however is a duplicate report.
There is another bug report with exactly the same title.
Please, try to search before posting

Continue the conversation here: