1.4.16 • Published 10 months ago

medium-blog-exporter v1.4.16

Weekly downloads
-
License
MIT
Repository
-
Last release
10 months ago

Medium to Markdown Converter

A simple tool to convert Medium blogs to Markdown and clean up the Markdown file.

Description

This tool uses Puppeteer to scrape Medium blog posts, download images, convert the HTML content to Markdown using Pandoc, and then clean up the Markdown file by removing unwanted tags and formatting code blocks.

Prerequisites

Ensure you have the following installed:

  • Node.js: Node.js is required, which includes the npm package manager. npm is used to install the necessary dependencies. You can download and install Node.js from the official website.
  • Pandoc: Pandoc is used by the CLI to convert HTML content to Markdown. You can download and install Pandoc from the official website.

Installation

Install the dependencies:

npm install -g medium-blog-exporter 

Usage

To use the tool, run the following command with the Medium blog URL as a parameter:

mediummd 'https://medium.com/some-blog-post-url'

Features

  • Downloads images from the Medium blog post into _media folder and updates the Markdown file with local image paths.
  • Converts the HTML content of the blog post to Markdown.
  • Cleans up the Markdown file by removing div and span tags and formatting code blocks.
  • Removes angle brackets around URLs.
  • Removes content after the last header and before the "Share" line.
  • Removes unnecessary empty lines.

License

This project is licensed under the MIT License

1.4.13

10 months ago

1.4.15

10 months ago

1.4.14

10 months ago

1.4.16

10 months ago

1.4.12

1 year ago

1.4.11

1 year ago

1.4.10

1 year ago

1.4.9

1 year ago

1.4.7

1 year ago

1.4.6

1 year ago

1.4.5

1 year ago

1.4.4

1 year ago

1.3.0

1 year ago

1.2.0

1 year ago

1.1.0

1 year ago

1.0.0

1 year ago