markdown_articles_tool icon indicating copy to clipboard operation
markdown_articles_tool copied to clipboard

Image links and folder doesn't match

Open cstby opened this issue 1 year ago • 3 comments

The script downloaded the images perfectly into an /images folder in the same directory as the files. However, the markdown links only reference the image by name and should be prepended with /images/. Maybe I just need to specify this when running the command, but I'm not sure from the instructions how to do that.

cstby avatar Aug 24 '22 00:08 cstby

You can use option -n, --replace-image-names to replace image names with a hash from the image content.

artiomn avatar Aug 24 '22 02:08 artiomn

Thank you for this great piece of work. However, I can confirm that the program is not prepending the image path into the link. I tried the -n option, but it also only replaces the name, not the path.

alanalvarado avatar Aug 27 '22 01:08 alanalvarado

Ok, I understand what you want and will implement it as soon as possible.

artiomn avatar Aug 27 '22 19:08 artiomn

Feature was added.

artiomn avatar Oct 05 '22 14:10 artiomn

https://github.com/artiomn/markdown_articles_tool/commit/cd7f4624535c14a24ef06e821fccaefd001b8c40

artiomn avatar Oct 05 '22 14:10 artiomn