DEV Community

Cover image for I Built a Markdown Converter That Finally Doesn’t Suck (And It’s Free)

I Built a Markdown Converter That Finally Doesn’t Suck (And It’s Free)

Muhammad Usman on October 02, 2025

The Problem That Drove Me Crazy You know that feeling when you copy text from Medium or dev.to, and it pastes with a rainbow of backgrou...
Collapse
 
leonardperis profile image
Leonard Peris • Edited

Under which open-source license have you released the code? Could you share the link of the public repository?

Do you have any plans of making it a module that other developers could use in a headless environment?

Collapse
 
web_dev-usman profile image
Muhammad Usman

It's free for everyone.
Code is available on CodePen.

Copyright (c) 2025 by Usman (codepen.io/web-strategist/pen/myVEgdL)

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Collapse
 
meligy profile image
Meligy • Edited

I misunderstood how this works. I thought you write Markdown in the editor. Then I realised my mistake and I applied some formatting in the editor. But the Markdown I got for this simple case looks broken (misses a few lines breaks I guess, and does not escape "#").

This was from Edge on Android. Although I don't think the browser is to blame here.

Collapse
 
web_dev-usman profile image
Muhammad Usman

I will try to figure it out the solution.
Thanks for pointing out.

Collapse
 
polterguy profile image
Thomas Hansen

Najs work, we've got something similar in Magic Cloud, but on the server side, converting HTML to Markdown, preserving images, hyperlinks, the shebang. We built it to create higher quality RAG data during scraping ...

Collapse
 
web_dev-usman profile image
Muhammad Usman

I want you to test the tool and let me know if there are any bugs in tool

Collapse
 
frank_connolly_5decfb3a31 profile image
Frank Connolly

Excellent work on the tool and well written journey!

Collapse
 
web_dev-usman profile image
Muhammad Usman

Thanks, Honestly, I build it to make my writing here on Dev Community better and faster.

Collapse
 
convershake profile image
Convershake

Recommended this App!

Collapse
 
web_dev-usman profile image
Muhammad Usman • Edited

Thanks, but where?

Collapse
 
ell1s profile image
Ellis

Unfortunately didn't work for me. I pasted a few websites and it has major formatting issues. It did extract links and images correctly though.

I suggest you have a button that allows people to submit bugs, i.e, when you paste something it can send the input and the output then it can be debugged and improved because you get a test case of an issue.

Collapse
 
ghulam_mustafabhatti_483 profile image
Ghulam Mustafa Bhatti

Excellent Work