Downloading of images does not work
eric-gonzalez-tfs opened this issue · 2 comments
eric-gonzalez-tfs commented
First off, thanks for writing this package!
The repo I am trying to access has images referenced in the markdown. I tried to download the files using the basic configuration but the files that end up getting written are corrupted.
I looked into the code and noticed that Axios is used under the hood. It is my understanding that Axios' request options must have responseType
set to stream
.
When adding this to my plugin configuration, I see the following error:
I believe this is because it is being passed into writeFileSync
as is.
Any ideas on how to get around this issue?
eric-gonzalez-tfs commented