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
141 stars 19 forks source link

Script ignores github gist code snippets #8

Open arptoth opened 5 years ago

arptoth commented 5 years ago

Excellent code! Congrats! Only what I noticed that it ignores github gists. It would be wonderful if you would add it. Thanks!

gautamdhameja commented 5 years ago

After some initial analysis, I found out that GitHub gists are not part of exported HTML content from Medium. They seem to be rendered on the fly when browsing Medium posts on the site. Closing this issue.

vivainio commented 5 years ago

No, they are part of the exported html files, but it's actually a script tag. Those could be changed to other embedding syntaxes.

Search for "Github gists" here https://towardsdatascience.com/converting-medium-posts-to-markdown-for-your-blog-5d6830408467

Just wrote about my experience using the tool: https://dev.to/vivainio/saving-my-stuff-from-medium-3hhm

gautamdhameja commented 5 years ago

Thanks for the pointer, @vivainio. I'll try that out.