Crates.io | medium-to-markdown |
lib.rs | medium-to-markdown |
version | 0.1.2 |
source | src |
created_at | 2024-04-15 07:50:30.087313 |
updated_at | 2024-05-30 06:21:55.103606 |
description | A tool to parse medium blogs to markdown files |
homepage | https://github.com/Harshil-Jani/medium-to-markdown |
repository | https://github.com/Harshil-Jani/medium-to-markdown |
max_upload_size | |
id | 1208988 |
size | 83,527 |
This Rust utility converts Medium blog posts into Markdown format, enabling users to preserve their content independently of centralized platforms. With this tool, you can safeguard your blog posts against potential risks associated with platform changes or shutdowns.
Medium provides a convenient platform for hosting blogs and reaching a wide audience. However, relying solely on Medium for content hosting carries risks. If Medium were to go down or change its policies, the hard work of blog writers would be at risk. To mitigate this risk, this project aims to provide a simple yet effective tool for converting Medium blog posts into Markdown format.
Install directly from cargo.
cargo install medium-to-markdown
The command-line interface (CLI) accepts a Medium blog post URL and a filename as input and generates the Markdown content.
medium-to-markdown <URL> <file_name>
Replace
medium-to-markdown https://medium.com/@harshiljani2002/building-stock-market-engine-from-scratch-in-rust-i-9be7c110e137 blog_post.md
To set up the project, follow these steps:
git clone https://github.com/Harshil-Jani/medium-to-markdown.git
Install Rust and Cargo if you haven't already.
Navigate to the project directory:
cd medium-to-markdown
cargo build --release
The project includes unit tests to ensure the correctness of the parser. To run the tests, use the following command:
cargo test
Contributions to this project are welcome. If you encounter any issues or have suggestions for improvements, feel free to open an issue or submit a pull request on GitHub.