Skip to content

gongpeione/parcel-plugin-markdown

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

  •  
  •  
  •  
  •