-
I try to download an HTML page from the internet as Markdown and with all the linked images. Here is what I use currently for this:
The problem is that the images are saved with SHA1-based filenames, and even though I've read the user's guide,
I still don't understand how to preserve regular filenames. What exactly should I do to preserve regular filenames, like |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 7 replies
-
See commit eddedbf |
Beta Was this translation helpful? Give feedback.
-
Changing the line
if not img.src:match('^https://') then
to
if not img.src:match('^https://') or img.src:match '%.%.' then
should do the trick.
|
Beta Was this translation helpful? Give feedback.
See commit eddedbf
I am guessing that on the HTML page, some percent-encoding is used in the image paths. We use SHA1 in that case to avoid a security vulnerability.