@vant/markdown-loader
Simple and fast vue markdown loader
52,047
24,397
| Install | |
|---|---|
npm install @vant/markdown-loader |
|
| Latest Version: | 4.1.1 |
| License: | MIT |
| Last Updated: | Oct 22, 2026 |
| Links: | GitHub · npm |
Maintainer: chenjiahan
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 functionhtml: The result of markdown-it's renderfm: See fm(string). IfenableMetaDataoption isfalse, the value isundefined.attributesbodyfrontmatter
Related Packages
@vant/auto-import-resolver
Vant auto import resolver based on unplugin-vue-components
413,930
24,395
@vant/cli
Vant CLI is a tool for building vue component library. You can quickly build a f...
30,230
24,395
Version History
| Version | Released | License |
|---|---|---|
| 4.1.1 | MIT | |
| 4.1.0 | MIT | |
| 4.0.1 | MIT | |
| 4.0.0 | MIT | |
| 3.0.2 | MIT | |
| 3.0.1 | MIT | |
| 3.0.0 | MIT | |
| 2.5.1 | MIT | |
| 2.5.0 | MIT | |
| 2.4.0 | MIT | |
| 2.3.0 | MIT | |
| 2.2.0 | ISC | |
| 2.1.3 | ISC | |
| 2.1.2 | ISC | |
| 2.1.1 | ISC | |
| 2.1.0 | ISC | |
| 2.0.0 | ISC | |
| 1.0.3 | ISC |
Pre-releases (7)
| Version | Released | License |
|---|---|---|
| 4.0.0-beta.0 | MIT | |
| 3.1.0-beta.1 | MIT | |
| 3.1.0-beta.0 | MIT | |
| 3.0.0-alpha.2 | MIT | |
| 3.0.0-alpha.1 | MIT | |
| 3.0.0-alpha.0 | MIT | |
| 2.3.0-beta.0 | MIT |