I often need to convert my legacy HTML files to markdown.
There are couple of ways of accomplishing this using:
- domchristie/to-markdown - Using node.js
- xijo/reverse_markdown - Using a ruby gem
- thephpleague/html-to-markdown - Using php
- jgm/pandoc - This does a ton of stuff! It is a universal markup converter http://johnmacfarlane.net/pandoc
xijo/reverse_markdown is very convenient because it works with a cli right out of the box!
Installation is straight forward using:
sudo gem install reverse_markdown
Converting html to markdown is equally straight forward using:
reverse_markdown Notes.html > Notes.md
For more info on pandoc, check out my other blog post ... Converting a docx document to PDF
Subscribe to Santosh writes here
Get the latest posts delivered right to your inbox