mirror of
				https://gitee.com/vant-contrib/vant.git
				synced 2025-10-27 01:32:10 +08:00 
			
		
		
		
	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: Defaultfalse. Whether to use front-matter to extract markdown meta data
- 
linkOpen: Defaulttrue. Whether to add target="_blank" to all links
- 
wrapper(html, fm): Format the returned content using a custom function- html: The result of markdown-it's render
- fm: See fm(string). If- enableMetaDataoption is- false, the value is- undefined.- attributes
- body
- frontmatter