rdilweb/docusaurus-plugin-remote-content

Downloading of images does not work

eric-gonzalez-tfs opened this issue · 2 comments

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.

Screen Shot 2022-11-02 at 1 51 44 PM

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:

Screen Shot 2022-11-02 at 2 00 09 PM

I believe this is because it is being passed into writeFileSync as is.

Any ideas on how to get around this issue?

RDIL commented

Duplicate of #44

Duplicate of #44

@RDIL Oops - should’ve looked in closed issues. Appreciate the response.