Skip to content

gongpeione/parcel-plugin-markdown

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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}]`;
  }
}

About

Parcel plugin for markdown

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •