@reactjser/revant-markdown-loader
v0.0.1
Published
Simple and fast react markdown loader
Downloads
1
Readme
revant-markdown-loader
Simple and fast react markdown loader, transform markdown to react component. Forked from @vant/markdown-loader.
Install
NPM
npm i @reactjser/revant-markdown-loader
YARN
yarn add @reactjser/revant-markdown-loader
Options
enableMetaData
: Defaultfalse
. Whether to use front-matter to extract markdown meta datalinkOpen
: Defaulttrue
. Whether to add target="_blank" to all linkswrapper(html, fm)
: Format the returned content using a custom functionhtml
: The result of markdown-it's renderfm
: See fm(string). IfenableMetaData
option isfalse
, the value isundefined
.attributes
body
frontmatter