Package Exports
- rn-markdown-parser
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (rn-markdown-parser) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
rn-markdown-parser
markdown parser for react-native using the great marked parser
Usage
const { parse } = require('rn-markdown-parser')
// opts accepted by the marked parser (https://github.com/chjj/marked)
const markedOpts = {}
const parsed = parse(`
# My Markdown Heading
- list item 1
- list item 2
`, markedOpts)
console.log(parsed)
// {
// type: 'container',
// children: [
// { type: 'heading', depth: 1, children: [Object] },
// { type: 'list', ordered: false, children: [Object] }
// ]
// }