rollup-plugin-commonmark
v1.1.0
Published
Convert markdown files to HTML
Downloads
2
Maintainers
Readme
rollup-plugin-commonmark
Install
npm install rollup-plugin-commonmark --save-dev
Usage
// main.js
import htmlContent from './article.md'
document.getElementById('my-article').innerHTML = htmlContent
// rollup.config.js
import commonmark from 'rollup-plugin-commonmark'
export default {
input: 'main.js',
output: {
format: 'iife',
file: 'bundle.js'
},
plugins: [
commonmark({
//`include` and `exclude` can each be a minimatch
// pattern, or an array of minimatch patterns,
// relative to process.cwd()
include: undefined,
exclude: undefined
})
]
}