gautamdhameja / medium-2-md

A CLI tool that converts exported Medium posts (html) to Jekyll/Hugo compatible markdown with front matter.
https://www.npmjs.com/package/medium-2-md
Apache License 2.0
142 stars 19 forks source link

all images are 13kb and not valid #26

Closed drewkhoury closed 2 years ago

drewkhoury commented 2 years ago

Using docker to run...

docker run --rm -it -v $PWD:/src node:latest /bin/bash -c 'npm install -g mediumexporter && npm i -g medium-2-md && mkdir /src/medium/output && medium-2-md convertLocal /src/medium/posts --path /src/medium/output -dfi'

output looks good:

drew@drews-MBP drewkhoury-website % docker run --rm -it -v $PWD:/src node:latest /bin/bash -c 'npm install -g mediumexporter && npm i -g medium-2-md && mkdir /src/medium/output && medium-2-md convertLocal /src/medium/posts --path /src/medium/output -dfi'
npm WARN deprecated uuid@3.4.0: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
npm WARN deprecated har-validator@5.1.5: this library is no longer supported
npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142

added 50 packages, and audited 51 packages in 2s

2 packages are looking for funding
  run `npm fund` for details

4 moderate severity vulnerabilities

To address all issues, run:
  npm audit fix

Run `npm audit` for details.
npm notice
npm notice New patch version of npm available! 8.1.2 -> 8.1.4
npm notice Changelog: https://github.com/npm/cli/releases/tag/v8.1.4
npm notice Run npm install -g npm@8.1.4 to update!
npm notice

added 27 packages, and audited 28 packages in 2s

11 packages are looking for funding
  run `npm fund` for details

found 0 vulnerabilities
Completed: 2019-11-09_Something-6b1e95c9f09.md
Completed: 2020-01-05_Teaching-DevOps-in-one-afternoon-e85f02ef036b.md
Completed: 2021-08-27_AWS-2021-Highlights-b16b6c59b4fe.md
...
Output path: /src/medium/output
...
Completed: 2019-11-23_One-DevOps-Please---Part-2-57aff9ad8595.md
Completed: draft_What-is-Good-Software-Delivery--48929b586c4d.md

the md files look great, but the images seem broken.

Screen Shot 2021-11-23 at 11 35 08 AM