@pimd/preview-plugin

0.1.6 • Public • Published

PIMD Preview Plugin

Adds a preview (live HTML) to code blocks.

Example usage

```html +preview
<p>Example</p>
```

Setup

npm i pimd @pimd/preview-plugin
const { Document } = require("pimd")
const Config = require("pimd/lib/config")
const previewPlugin = require("@pimd/preview-plugin")

const config = new Config()
config.use(previewPlugin)

const markdown = `
\`\`\`html +preview
<p>Example</p>
\`\`\`
`
const doc = new Document(markdown, config)
console.log(doc.render())

Copyright

Copyright 2018++ Nico Hagenburger. See MIT-LICENSE for details. Get in touch with @hagenburger on Twitter or open an issue.

Dependents (0)

Package Sidebar

Install

npm i @pimd/preview-plugin

Weekly Downloads

1

Version

0.1.6

License

MIT

Unpacked Size

2.75 kB

Total Files

4

Last publish

Collaborators

  • hagenburger