Skip to content

Latest commit

 

History

History
38 lines (29 loc) · 649 Bytes

README.md

File metadata and controls

38 lines (29 loc) · 649 Bytes

@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
      }
    })
  ]
});