Skip to content
This repository has been archived by the owner on Aug 21, 2019. It is now read-only.

chenjiahan/vant-markdown-loader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vant-markdown-loader

Simple and fast vue markdown loader, transform markdown to vue component.

Install

NPM

npm i @vant/markdown-loader -S

YARN

yarn add @vant/markdown-loader

Options

  • enableMetaData: Default false. Whether to use front-matter to extract markdown meta data

  • wrapper(html, fm): Format the returned content using a custom function

    • html: The result of markdown-it's render
    • fm: See fm(string). If enableMetaData option is false, the value is undefined.
      • attributes
      • body
      • frontmatter