react remarkable code example
Example: remarkable react js
import Remarkable from 'remarkable';import RemarkableReactRenderer from 'remarkable-react'; const md = new Remarkable();md.renderer = new RemarkableReactRenderer(); console.log(md.render('# Remarkable rulezz!')); /* * => [ * ReactComponent { * type: 'h1', * key: 0, * props: { * children: ['Remarkable ruleszz!'] * }, * } * ] */}