rollup-plugin-commonmark
Convert markdown files to HTML
Last updated 7 months ago by awmottaz .
ISC · Original npm · Tarball · package.json
$ cnpm install rollup-plugin-commonmark 
SYNC missed versions from official npm registry.

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

Current Tags

  • 1.1.0                                ...           latest (7 months ago)

1 Versions

  • 1.1.0                                ...           7 months ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (3)
Dependents (1)

Copyright 2014 - 2016 © taobao.org |