# vue-md-loader **Repository Path**: mirrors_singod/vue-md-loader ## Basic Information - **Project Name**: vue-md-loader - **Description**: :sparkles: Markdown files to ALIVE Vue components. - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-04-20 - **Last Updated**: 2026-03-22 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # vue-md-loader ![CI](https://github.com/wxsms/vue-md-loader/workflows/CI/badge.svg) [![Coverage Status](https://coveralls.io/repos/github/wxsms/vue-md-loader/badge.svg?branch=master)](https://coveralls.io/github/wxsms/vue-md-loader?branch=master) [![NPM Downloads](https://img.shields.io/npm/dm/vue-md-loader.svg)](https://www.npmjs.com/package/vue-md-loader) [![NPM Version](https://img.shields.io/npm/v/vue-md-loader.svg)](https://www.npmjs.com/package/vue-md-loader) [![License](https://img.shields.io/github/license/wxsms/vue-md-loader.svg)](https://github.com/wxsms/vue-md-loader) ## Introduction Webpack loader for converting Markdown files to ALIVE Vue components. * Configurable **[Markdown-It](https://github.com/markdown-it/markdown-it)** parser. * Built-in **syntax highlighter** with **[highlightjs](https://highlightjs.org/)**. * **Live demo** support. Extremely useful for document examples. * Hot reload. ## Example This page [vue-md-loader.wxsm.space](https://vue-md-loader.wxsm.space) is generated by a markdown file. source: [/example](https://github.com/wxsms/vue-md-loader/tree/master/example) ## Install NPM: ```bash npm install vue-md-loader --save-dev ``` Yarn: ```bash yarn add vue-md-loader --dev ``` ## Usage ### Basic Simply **use `vue-md-loader`** to load `.md` files and **chain it with your `vue-loader`**. ```javascript module.exports = { // ... module: { rules: [ // ... { test: /\.md$/, loader: 'vue-loader!vue-md-loader' } ] } } ``` Note that to get code highlighting to work, you need to: * include one of the highlight.js css files into your project, for example: `highlight.js/styles/github-gist.css`. * specify a lang in code block. ref: [creating and highlighting code blocks](https://help.github.com/articles/creating-and-highlighting-code-blocks/). ### With Options ```javascript module.exports = { // ... module: { rules: [ // ... { test: /\.md$/, loaders: [ 'vue-loader', { loader: 'vue-md-loader', options: { // your preferred options } } ] } ] } } ``` ## Markdown Alive! A live demo is: ```html ``` becomes something like: ```html
...
``` A **Vue component** with all it's `