Drag and drop attachments from file explorer / Paste Images / generateMarkdownLink() behavior

According to the v1.10.0 Changelog

FileManager#generateMarkdownLink no longer prepends “!” on attachment links.

However, it’s not true if Use [[Wikilinks]] setting is off.

app.fileManager.generateMarkdownLink(app.vault.getFileByPath('image.png'), '');

// generates ![](image.png)

ok, this creates differences in the app itself, not just the API.

1 Like

Steps to reproduce

  1. Install the latest Obsidian AppImage on a Linux computer.
  2. Start the Obsidian AppImage.
  3. Open the Sandbox Vault.
  4. Go to Settings → Files and Links → disable Use Wikilinks.
  5. Copy an image to the clipboard and paste it into a note in the vault.

Did you follow the troubleshooting guide?

Yes.

Expected result

Obsidian adds the image to the vault and creates an internal Markdown link of the form:
![](/PATH/TO/IMAGE)

Actual result

Obsidian adds the image to the vault and creates an internal Markdown link of the form:
!![](/PATH/TO/IMAGE), which includes 2 exclamation marks.

Environment

Not applicable; I did this in the Sandbox vault. I am including the debug info of the sandbox vault where I replicated this bug below.

SYSTEM INFO:
	Obsidian version: v1.10.0
	Installer version: v1.9.12
	Operating system: #202501302155 SMP PREEMPT_DYNAMIC Sat Feb  8 09:06:55 UTC 2025 6.13.0-061300-generic
	Login status: logged in
	Language: en
	Catalyst license: insider
	Insider build toggle: on
	Live preview: on
	Base theme: adapt to system
	Community theme: none
	Snippets enabled: 0
	Restricted mode: on

RECOMMENDATIONS:
	none

I am attaching a video example of this occurring.
https://imgur.com/a/ZINJ6T2


Additional information

I am running Ubuntu 25.04 with GNOME 48 on the linux kernel 6.13. My laptop is an ASUS Zenbook S. Below, I am pasting the output of the command inxi -F.

System:
  Host: Shruteek Kernel: 6.13.0-061300-generic arch: x86_64 bits: 64
  Desktop: GNOME v: 48.0 Distro: Ubuntu 25.04 (Plucky Puffin)
Machine:
  Type: Laptop System: ASUSTeK product: ASUS Zenbook S 14 UX5406SA_UX5406SA
    v: 1.0 serial: <superuser required>
  Mobo: ASUSTeK model: UX5406SA v: 1.0 serial: <superuser required>
    UEFI: American Megatrends LLC. v: UX5406SA.303 date: 11/08/2024
Battery:
  ID-1: BAT0 charge: 25.9 Wh (39.9%) condition: 64.9/72.0 Wh (90.1%)
    volts: 7.5 min: 8.0
CPU:
  Info: 8-core model: Intel Core Ultra 7 258V bits: 64 type: MCP cache:
    L2: 14 MiB
  Speed (MHz): avg: 1500 min/max: 400/4800:4700:3700 cores: 1: 1500 2: 1500
    3: 1500 4: 1500 5: 1500 6: 1500 7: 1500 8: 1500
Graphics:
  Device-1: Intel Lunar Lake [Intel Arc Graphics 130V / 140V] driver: xe
    v: kernel
  Device-2: Shinetech ASUS FHD webcam driver: hid-sensor-hub,usbhid,uvcvideo
    type: USB
  Display: x11 server: X.Org v: 21.1.16 with: Xwayland v: 24.1.6 driver: X:
    loaded: modesetting unloaded: fbdev,vesa dri: iris gpu: xe resolution:
    1: N/A 2: 1680x1050~60Hz
  API: EGL v: 1.5 drivers: iris,swrast platforms: gbm,x11,surfaceless,device
  API: OpenGL v: 4.6 compat-v: 4.5 vendor: intel mesa
    v: 25.0.7-0ubuntu0.25.04.2 renderer: Mesa Intel Graphics (LNL)
  Info: Tools: api: eglinfo,glxinfo wl: wayland-info x11: xdriinfo,
    xdpyinfo, xprop, xrandr
Audio:
  Device-1: Intel Lunar Lake-M HD Audio driver: sof-audio-pci-intel-lnl
  API: ALSA v: k6.13.0-061300-generic status: kernel-api
  Server-1: PipeWire v: 1.2.7 status: active
Network:
  Device-1: Intel BE201 320MHz driver: iwlwifi
  IF: wlo1 state: up mac: a8:59:5f:4b:71:1b
  Device-2: Realtek USB 10/100/1000 LAN driver: r8152 type: USB
  IF: enx0c37967ebcec state: up speed: 1000 Mbps duplex: full
    mac: 0c:37:96:7e:bc:ec
  IF-ID-1: virbr0 state: down mac: 52:54:00:d8:41:e6
Bluetooth:
  Device-1: N/A driver: btusb type: USB
  Report: hciconfig ID: hci0 state: up address: A8:59:5F:4B:71:1F bt-v: 5.4
Drives:
  Local Storage: total: 953.87 GiB used: 622.54 GiB (65.3%)
  ID-1: /dev/nvme0n1 vendor: Western Digital model: WD PC SN560
    SDDPNQE-1T00-1102 size: 953.87 GiB
Partition:
  ID-1: / size: 936.79 GiB used: 622.53 GiB (66.5%) fs: ext4
    dev: /dev/nvme0n1p2
  ID-2: /boot/efi size: 1.05 GiB used: 6.1 MiB (0.6%) fs: vfat
    dev: /dev/nvme0n1p1
Swap:
  ID-1: swap-1 type: file size: 8 GiB used: 0 KiB (0.0%) file: /swap.img
Sensors:
  System Temperatures: cpu: 41.0 C mobo: N/A
  Fan Speeds (rpm): cpu: 0
Info:
  Memory: total: 32 GiB note: est. available: 30.33 GiB used: 5.57 GiB (18.4%)
  Processes: 433 Uptime: 6h 29m Shell: Bash inxi: 3.3.37

what is the output of show debug info?

Hi, I did this directly in the Obsidian sandbox vault. There is no command to Show Debug Info on the sandbox vault. I have a personal vault which also experiences the issue. I will paste the debug info of my personal vault below.

EDIT: I am sorry; for some reason the “Show Debug Info” command was not appearing in the palette of the sandbox vaults I was using. I was able to find it. I am pasting the debug info of the sandbox vault I replicated the issue in below.

SYSTEM INFO:
	Obsidian version: v1.10.0
	Installer version: v1.9.12
	Operating system: #202501302155 SMP PREEMPT_DYNAMIC Sat Feb  8 09:06:55 UTC 2025 6.13.0-061300-generic
	Login status: logged in
	Language: en
	Catalyst license: insider
	Insider build toggle: on
	Live preview: on
	Base theme: adapt to system
	Community theme: none
	Snippets enabled: 0
	Restricted mode: on

RECOMMENDATIONS:
	none

Did it happen in 1.9.14 or did it start happening in 1.10?

This started happening recently (in the last week, I think) - so I believe it started in 1.10. I could be wrong, I apologize!

Please let me know what other info would be helpful. I have tried to reproduce it as minimally as possible and demonstrate that it is reproducible regardless of configuration.

Another user (macOS it looks like) mentioned similar here:

but I wasn’t able to reproduce it (on Windows) with the settings they mentioned.

The issue turns up when pasting an image.

  1. Open Sandbox vault
  2. Disable Settings > Files and links > use [[Wikilinks]]
  3. Paste image from clipboard

Obsidian_nYBbhGwB4H

SYSTEM INFO:
	Obsidian version: v1.10.0
	Installer version: v1.9.14
	Operating system: Windows 11 Pro 10.0.26100
	Login status: logged in
	Language: en
	Catalyst license: supporter
	Insider build toggle: on
	Live preview: on
	Base theme: adapt to system
	Community theme: none
	Snippets enabled: 0
	Restricted mode: off
	Plugins installed: 0
	Plugins enabled: 0

RECOMMENDATIONS:
	none

Happening for me on Mac

SYSTEM INFO:
Obsidian version: v1.10.0
Installer version: v1.9.12
Operating system: Darwin Kernel Version 25.0.0: Wed Sep 17 21:42:08 PDT 2025; root:xnu-12377.1.9~141/RELEASE_ARM64_T8132 25.0.0
Login status: logged in
Language: en
Catalyst license: insider
Insider build toggle: on
Live preview: on
Base theme: adapt to system
Community theme: Minimal v8.0.4
Snippets enabled: 0
Restricted mode: off
Plugins installed: 16
Plugins enabled: 15
1: Advanced Tables v0.22.1
2: Calendar v1.5.10
3: Minimal Theme Settings v8.1.1
4: Tag Wrangler v0.6.4
5: Periodic Notes v0.0.17
6: Style Settings v1.0.9
7: Dataview v0.5.68
8: Excalidraw v2.16.1
9: Linter v1.30.0
10: Highlightr v1.2.2
11: Datepicker v0.3.25
12: Iconize v2.14.7
13: Metadata Menu v0.8.9
14: Copy Block Link v1.0.4
15: Recent Files v1.7.4

RECOMMENDATIONS:
Custom theme and snippets: for cosmetic issues, please first try updating your theme and disabling your snippets. If still not fixed, please try to make the issue happen in the Sandbox Vault or disable community theme and snippets.
Community plugins: for bugs, please first try updating all your plugins to latest. If still not fixed, please try to make the issue happen in the Sandbox Vault or disable community plugins.

Steps to reproduce

Starting from scratch, what are the steps to make the bug happen?
The fewer the steps, the better.

  • Turn off “Generate Wikilinks”
  • New link format: Turn on “Relative Path to file”

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

Y

Expected result

Embedded Markdown Link

Actual result

Embedded Markdown Link but with an extra !
![](attachments/fast05.jpg) vs !![](attachments/fast05.jpg)

Environment

SYSTEM INFO:
	Obsidian version: v1.10.0
	Installer version: v1.5.11
	Operating system: Darwin Kernel Version 25.0.0: Mon Aug 25 21:17:51 PDT 2025; root:xnu-12377.1.9~3/RELEASE_ARM64_T6020 25.0.0
	Login status: logged in
	Language: en
	Catalyst license: insider
	Insider build toggle: on
	Live preview: on
	Base theme: adapt to system
	Community theme: none
	Snippets enabled: 0
	Restricted mode: on

RECOMMENDATIONS:
	none

Additional information

I opened the Sandbox vault (Obsidian version: v1.10.0; Installer version: v1.9.14), set these settings here:

typed ![[, selected the image from the suggester, and hit Enter:

Obsidian_g5tSmC5ruL

The link looks fine on my end.


How are you inserting the image? Typing ![[, drag-and-dropping it into the note, etc.?

You’re on an installer from March 19, 2024, and there have been at least a couple of major Electron updates since then, I think. Part of the troubleshooting steps suggest updating to the latest installer.

No idea if that will fix the problem, but it’s worth a try.

will be fixed 1.10.1

2 Likes

Thank you!

+1
Same Problem Report.