How to extract media from a self-contained html file using pandoc?

341 Views Asked by At

I'm using an extension (singlefile) to save a self-contained html file then I'm trying to use pandoc to extract all media files using pandoc. I can't get it to work and I've read the manual so many times. To me it seems right. Right now the code is like that:

pandoc --extract-media=C:\Users\me\Downloads\teste C:\Users\me\Downloads\myhtmlfile.htm
1

There are 1 best solutions below

0
On
pandoc yourIntryPointFile.html --extract-media directoryNameForMediaExported/

Example with a file 'index.html':

pandoc index.html --extract-media media/