Internal links with newline don't resolve to correct file

Internal links with newlines don’t resolve correctly.

Steps to reproduce

  • Create a note with a long filename
  • Create a different note and use the [[ syntax to link to the note
  • Insert a newline in the middle of the internal link, breaking up the title into 2 lines

Expected result

I would expect newlines to not matter. Especially since I have “Strict line breaks” turned on. I insert hard line breaks at 80 columns for all my files.

Actual result

Adding newlines to link title breaks linking

Environment

  • Operating system: Linux
  • Obsidian version: v0.7.6
1 Like

I am not sure I consider this a bug or that we will change the current behaviour. We’ll think about it.

Have you seen any apps that supports a link across a line break? Personally I haven’t seen any, so I doubt it’s a bug.

GitHub allows line breaks in link titles.

For example, this renders correctly on GitHub. Seems right because spaces are allowed in titles.

My favorite search engine is [Duck 
Duck Go](https://duckduckgo.com).

Although, this does not. This also seems right because spaces are not allowed in URLs.

My favorite search engine is [Duck Duck Go](https://duck
duckgo.com).

I am more inclined to see this as a feature request. I’ll move it to the appropriate forum section. If it gains momentum, we will consider it.