Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/gongpeione/parcel-plugin-markdown

Parcel plugin for markdown
https://github.com/gongpeione/parcel-plugin-markdown

Last synced: 3 months ago
JSON representation

Parcel plugin for markdown

Awesome Lists containing this project

README

        

# Parcel plugin for markdown

## Usage

```
yarn add --dev parcel-plugin-markdown
```

```javascript
import md from './Markdown.md';
document.body.innerHTML = md;
```

## Marked options

### package.json
```json
// If you want to pass options to marked
{
"name": "ABC",
"marked": {
"breaks": true
}
}
```

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