@cutting/rollup-plugin-md
v0.5.0
Published
a rollup plugin for markdown files
Downloads
8
Readme
@cutting/rollup-plugin-md
markdown plugin for rollup using marked.
Forked from rollup-plugin-md.
Install
# npm
npm install @cutting/rollup-plugin-md --save
# yarn
yarn add @cutting/rollup-plugin-md -D
usage
import md from './test.md';
console.log( `Template for render: ${md}` );
import { rollup } from 'rollup';
import { md } from '@cutting/rollup-plugin-md';
rollup({
entry: 'main.js',
plugins: [
md({
marked: {
//marked options
}
})
]
});