/parcel-plugin-markdown

Parcel plugin for markdown

Primary LanguageJavaScript

Parcel plugin for markdown

Usage

yarn add --dev parcel-plugin-markdown
import md from './Markdown.md';
document.body.innerHTML = md;

Marked options

package.json

// If you want to pass options to marked
{
    "name": "ABC",
    "marked": {
        "breaks": true
    }
}

marked.config.js

// you can also create a marked.config.js
// marked options is fully supported in marked.config.js
module.exports = {
  highlight (code, lang) {
    return `[${code}]`;
  }
}