@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: Default false. Whether to use front-matter to extract markdown meta data

  • linkOpen: Default true. 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 enableMetaData option is false, the value is undefined.
      • attributes
      • body
      • frontmatter

Related Packages

@vant/use

Vant Composition API

2,320,043 24,407
@vant/auto-import-resolver

Vant auto import resolver based on unplugin-vue-components

413,930 24,395
@vant/nuxt

Vant module for Nuxt

133,431 96
@vant/cli

Vant CLI is a tool for building vue component library. You can quickly build a f...

30,230 24,395
@vant/compat

Provide Vant 3 compatible behavior for Vant 4

21,918 24,407

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
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