'.md' suffix dropped when note autocreated from backlink

Steps to reproduce

In a note, create a backlink to a non-existing note where the note name, or filename, ends with .md

E.g. either:

[[Nonexistent.md]]

or

[[Nonexistent.md|Hello]]

Then click on the link in a preview pane, to create the nonexistent file.

Expected result

I’d expect that if I’m explicit about the file extension, it is retained and not silently dropped.

(I want all my notes to end in .md as they’re processed by other tools outside Obsidian that rely on that.)

Actual result

The created file is called Nonexistent, not Nonexistent.md — the .md is silently dropped.

Environment

  • Operating system: MacOS 10.14.6
  • Obsidian version: 0.6.4 (I had to go digging to find that! No “About Obsidian menu item”…)
  • Using custom CSS: no

My apologies — this is wrong.

The .md suffix does appear in the filename.

I was just getting confused because the Obsidian filebrowser doesn’t show those suffixes.

Clearly I haven’t had enough coffee today!

Please ignore!

1 Like