Use python to build mk Converter
Posted by wollensZhang@reddit | Python | View on Reddit | 2 comments
π Check out my URL/PDF/DOCX to Markdown Converter!
Hey fellow developers! π
I'm super excited to share a tool I've been working on that I think might make your life a bit easier. You know that annoying process of converting documents to Markdown? Well, I built something to handle that!
**What does it do? π€**
- Converts web pages to Markdown with just a URL
- Transforms PDF files to Markdown (using pdfplumber)
- Converts DOCX files to clean Markdown
- Lets you preview the rendered result right there
- Comes with copy/download buttons for quick access
I built it using FastAPI for the backend (it's crazy fast! β‘) and kept the frontend super clean and simple. You literally just paste a URL or upload a file, hit convert, and boom! π₯ You've got your Markdown.
**Why I made this:**
I got tired of manually converting docs for my documentation work, and thought others might find this useful too. Plus, I wanted to learn more about FastAPI and document processing in Python.
**Tech stack:**
- FastAPI (because who doesn't love async Python? π)
- pdfplumber for PDF parsing
- python-docx for Word docs
- marked.js for the preview
- Basic HTML/CSS/JS for the frontend
The code is open source, and I'd love to get your feedback or contributions! Check out the screenshots in the README to see it in action.
**Try it out:**
-
Clone the repo
-
Install dependencies
-
Run with uvicorn
-
Convert all the things! π
What do you think? Would love to hear your thoughts or suggestions for improvements! And if anyone wants to contribute, PRs are more than welcome! π€
Ringbailwanton@reddit
Zero commentsβ¦
At least put some effort into copy-pasting your post.
wollensZhang@reddit (OP)
thx\~