deathau / markdownload

A Firefox and Google Chrome extension to clip websites and download them into a readable markdown file.
Apache License 2.0
2.8k stars 223 forks source link

MarkDownload can't save images directly to an Obsidian vault via "Copy selection as markdown" #315

Open poddex opened 6 months ago

poddex commented 6 months ago

Hello. When I select mixed web-content "text+images" and copy it via "Copy selection as markdown" and then paste it to Obsidian (via "paste" from context menu), it doesn't save images directly to Obsidian vault, only as web-links, why? How can I do that in an easy way - paste all mixed web-content directly to a vault? Even when I use "send selection to Obsidian", it doesn’t copy images directly to a vault, only as web-links like this: (........https://media.gcflearnfree.org/content/55e076ab7dd48174331f528b_01_17_2014/start_what_speed.jpg) It's a bug? Can I copy directly to a vault?

aancw commented 5 months ago

It's intended behaviour. All content that you copy is encoded and then send the encoded data to obsidian advanced uri. So it's not possible to copy image and text at the same time. Only possible to save image as link.

poddex commented 4 months ago

It's intended behaviour. All content that you copy is encoded and then send the encoded data to obsidian advanced uri. So it's not possible to copy image and text at the same time. Only possible to save image as link.

Disappointed. Why MarkDownload can't use a sequence of copy-text and copy-image commands just like Chrome right-click on text->Copy and on Image->Copy?

There are many web-sites that are gone over time! And there is still offline access. And I lose all my images saved with Send to Markdown.

It is a pity that most are not interested in a quick copy tool, and everything has to be done by hand, and this takes a very long time.

aancw commented 4 months ago

It's limitation from how Obsidian URI plugin works and how markdownload handle the mixed content for "send tab/selection to markdown".

poddex commented 4 months ago

I opened the thread about on Obsidian forum. It would be great to have a tool for saving web-pages whole locally in a vault in ONE click.

cw-cdz commented 3 weeks ago

@poddex You can pair the "Local Images Plus" Obsidian plugin with MarkDownload. First, leave MarkDownload set to keep the original URL for the image. Then, when you copy/paste the content into Obsidian, the Local Images Plus plugin will automatically download the images and update the links in your note.

poddex commented 3 weeks ago

@poddex You can pair the "Local Images Plus" Obsidian plugin with MarkDownload. First, leave MarkDownload set to keep the original URL for the image. Then, when you copy/paste the content into Obsidian, the Local Images Plus plugin will automatically download the images and update the links in your note.

@cw-cdz , Thank you SO MUCH! You made my day!