1. @vant/markdown-loader
Simple and fast vue markdown loader
@vant/markdown-loader
Package: @vant/markdown-loader
Created by: youzan
Last modified: Wed, 02 Nov 2022 09:39:09 GMT
Version: 4.1.1
License: MIT
Downloads: 224
Repository: https://github.com/youzan/vant/blob/dev/packages

Install

npm install @vant/markdown-loader
yarn add @vant/markdown-loader

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 POST

Enhancing Vue.js Development: Harnessing the Potential of Vue-Loader

Enhancing Vue.js Development: Harnessing the Potential of Vue-Loader

Simplify Data Validation in Vue.js: A Step-by-Step Guide to Using Regex

Simplify Data Validation in Vue.js: A Step-by-Step Guide to Using Regex

Troubleshooting Made Easy: Common Issues and Solutions with vue-loader Without vue-cli

Troubleshooting Made Easy: Common Issues and Solutions with vue-loader Without vue-cli

Optimizing Webpack 4 with Vue CLI 3: Disabling the Cache-Loader

Optimizing Webpack 4 with Vue CLI 3: Disabling the Cache-Loader

Step-by-Step Guide: How to Add a Function to Your Vuex Plugin

Step-by-Step Guide: How to Add a Function to Your Vuex Plugin