mgmeyers / obsidian-kanban

Create markdown-backed Kanban boards in Obsidian.
https://publish.obsidian.md/kanban/
GNU General Public License v3.0
3.16k stars 180 forks source link

[Bug]: Previously dragging a non-md file onto board displayed a link to the file name in the card. It now attempts to renders the file #970

Open phil31753 opened 4 months ago

phil31753 commented 4 months ago

Describe the bug

I am using Markdown links in my vault.

image

Previously, when dragging a non-markdown file (.docx, .pptx, .pdf, image files...) onto the Knaban board the file name was displayed. Clicking on the filename opened the file externally to Onsidian with the associated app.

This was a useful way to attach external documents to a Kanban board.

Since the last release, the Kanban plugin attempts to render the file on the card. For .pdf files the heavily cropped top right corner of the file is rendered. Image files are rendered as a thumbnails. For other files, the rendered version of the filename is displayed.

image

Expected Behavior

When a non-markdown file is added to a Kanban board, the plugin should revert to previous behavior and display the filename as a link that can be clicked on to launch the file in an external app.

Steps to reproduce

  1. Drag a non-markdown file to the Kanban board.
  2. Confirm that a rendered version of the file is displayed.

Relevant errors (if available)

No response

Operating system

Windows

jowibou commented 4 months ago

Yes this is quite annoying. Dragging a pdf, for instance, onto a kanban sticks a ! before the link, and thus tries to embed it, forcing us to edit the entry.