Simple and fast vue markdown loader, transform markdown to vue component.
npm i @vant/markdown-loader -S
yarn add @vant/markdown-loader
-
enableMetaData
: Defaultfalse
. Whether to use front-matter to extract markdown meta data -
wrapper(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