@vimeiro-co/react-native-html-to-markdown
v1.0.8
Published
html to markdown converter compatible with react-native
Downloads
38
Maintainers
Readme
React-Native Html to markdown converter
A simple html to markdown converter that converts html to markdown, using no dependencies. Perfect for react-native.
My own use case for this is quite simple. If it doesn't quite fit yours, PRs are welcome!
Tags Supported
- h1,h2,h3,h4,h5,h6
- p
- ul,ol
- blockquote,
- pre
- bold,strong
- italic,em
- a
- br
Converting Html Documents
var converter = require('html-to-markdown');
var markdown = converter.convert('<h2> Happy Journey </h2>');
Extending to add your own formatters.
var converter = require('html-to-markdown');
converter.use(function (html) {
// making required changes
// and return new html
})
credits
This was forked from https://github.com/thetutlage/html-to-markdown, which was a good start but is no longer maintained.