Overview
The medium-to-gatsby CLI is a handy tool designed to seamlessly convert Medium-exported HTML files into Gatsby Markdown (.md) files. Ideal for bloggers and content creators who wish to migrate their work from Medium to a Gatsby blog, this tool simplifies the process while maintaining essential formatting and aesthetics. With its customization capabilities and efficient handling of media, it's a perfect solution for those looking to enhance their blogging experience.
Whether you have several articles full of rich media or just a few with straightforward text, this CLI tool takes care of the tedious conversion process while ensuring that images, code blocks, and embedded tweets are preserved and displayed beautifully in your new Gatsby environment.
Features
- HTML to Markdown Conversion: Effortlessly converts Medium HTML files into Gatsby-compatible Markdown files, ensuring a smooth transition to Gatsby.
- Template Customization: Customize the output using templates to meet the specific frontmatter requirements of your Gatsby blog.
- Image Handling: Automatically downloads images from Medium and saves them locally to maintain the visual integrity of your posts.
- Embedded Media Support: Handles embedded tweets and GitHub gists, allowing your content to retain its interactive elements.
- Code Block Language Default: You can set a default language for your code blocks, making it easier to manage code snippets across your posts.
- Excludes Drafts and Replies: Skips over drafts and post replies, ensuring only the finalized content is exported to your Gatsby site.
- Completion Report Generation: Generates a report upon completion, providing you with a summary of the export process for reference.
- Flexible CLI Usage: Offers straightforward usage directly through the command line, making it accessible for users of all technical backgrounds.