html to markdown converter with zero dependencies
npm install html-to-markdownHtml to markdown converter is a dependency free converter which replaces html with a valid markdown syntax. I have just started working on it, so all tags may not be supported.
1. Web browsers.
2. NodeJs
1. h1,h2,h3,h4,h5,h6
2. p
3. ul,ol
4. blockquote,
5. pre
6. bold,strong
7. italic,em
``javascript`
var converter = require('html-to-markdown');
var markdown = converter.convert(' Happy Journey
');
`javascript``
var converter = require('html-to-markdown');
converter.use(function (html) {
// making required changes
// and return new html
})