inhumantsar / slurp

Slurps webpages and saves them as clean, uncluttered Markdown. Think Pocket, but better.
https://inhumantsar.github.io/slurp/
MIT License
127 stars 2 forks source link

Feature request: save images locally #45

Open nathonius opened 1 month ago

nathonius commented 1 month ago

Currently the plugin links to the remote images from where they were slurped. It would be great to have an option to save the images alongside the markdown for eventual case where the url changes or the content is removed.

Since this is using almost the same stack as MarkdownDown and produces nearly identical output, I'm assuming you'll run into the same issue I created (from another GitHub account) for that project: https://github.com/asadm/markdowndown/issues/2

If this is out of scope for the plugin, I would look into using the hooks described in #37 to write a companion plugin myself. 😃

inhumantsar commented 1 month ago

thanks! I like this idea. any thoughts on how images should be organized? I normally keep images for obsidian md files in a subdir called _files, not sure how others handle them though

Truncated commented 1 month ago

I use Local Images Plus to automatically process images from slurped content. It works a treat on Slurped results. https://github.com/Sergei-Korneev/obsidian-local-images-plus

As of this writing... It addresses:

It does not address :

inhumantsar commented 1 month ago

ooo, i'll look into adding an option to call that automatically after writing the file. that would definitely simplify things.

nathonius commented 1 month ago

Yeah, adding in a post-process hook to do that (or any other command 👀) would be fantastic