📅  最后修改于: 2022-03-11 15:02:30.030000             🧑  作者: Mango
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!'] * }, * } * ] */}