Html 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.
- Web browsers.
- NodeJs
- h1,h2,h3,h4,h5,h6
- p
- ul,ol
- blockquote,
- pre
- bold,strong
- italic,em
var converter = require('html-to-markdown');
var markdown = converter.convert('<h2> Happy Journey </h2>');
var converter = require('html-to-markdown');
converter.use(function (html) {
// making required changes
// and return new html
})