This guide shows you how to get up and running with breakdance, a HTML-to-markdown converter written in javascript for node.js.
Within 2-3 minutes you'll be converting HTML to markdown like a pro!
- visit the breakdance documtentation
- visit the breakdance GitHub repository
You can also follow @breakdancejs on twitter
Add the contents from the foo.html file in this gist to a local foo.html
file.
Install the breakdance CLI with npm:
$ npm install --global breakdance
From the command line run:
$ bd foo.html
If everything worked properly, you should a foo.md file with similar contents to the foo.md
file in this gist.
Run the following command on the same local foo.html
file to only covert the <table>
to markdown:
$ bd foo.html --pick table
To generate only convert the <h2>
and the <table>
to markdown:
$ bd foo.html --pick h2,table