parcel-plugin-markdown-string

1.4.2 • Public • Published

parcel-plugin-markdown-string

Parcel plugin for loader markdown string.

Use

Install the plugin

npm install parcel-plugin-markdown-string --save-dev

Import your markdown files!

import MarkdownString from './Markdown.md';
 
console.log(MarkdownString) // => Output markdown string.

If you want to convert directly to HTML, you need to set marked options in package.json.

{
  "name": "example",
  "marked": {
    "breaks": true,
    "pedantic": false,
    "gfm": true,
    "tables": true,
    "sanitize": false,
    "smartLists": true,
    "smartypants": false,
    "xhtml": false
    // ...
  },
}

Import Markdown output HTML!

import HTMLString from './Markdown.md';
 
console.log(HTMLString) // => Output HTML string.
document.body.innerHTML = html;

Test

npm run test

Package Sidebar

Install

npm i parcel-plugin-markdown-string

Weekly Downloads

26

Version

1.4.2

License

MIT

Unpacked Size

2.33 kB

Total Files

4

Last publish

Collaborators

  • wcjiang
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy