Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/gongpeione/parcel-plugin-markdown
- Owner: gongpeione
- Created: 2017-12-11T12:47:36.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-10-01T19:51:40.000Z (about 5 years ago)
- Last Synced: 2024-07-29T06:06:43.951Z (3 months ago)
- Language: JavaScript
- Size: 183 KB
- Stars: 21
- Watchers: 1
- Forks: 8
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-parcel - Markdown - Plugin for markdown support. (Plugins / Templates)
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}]`;
}
}
```