0.0.1 • Published 3 years ago
vite-plugin-md-loader v0.0.1
Vite 2.x plugin to load MD files
Install
yarn add vite-plugin-md-loader -D
Use
import mdLoader from 'vite-plugin-md-loader';
// vite.config
{
// ...
plugins: [mdLoader()]
}
import xxx from './xxx.md'
import yyy from './yyy.md?raw'
console.log(xxx)
// <h1>...</h1>
// <p>...</p>
// <ul>...</ul>
console.log(yyy)
// raw data
// # xxx
// xxx
// - xxx
// - yyyy
0.0.1
3 years ago