# parcel-plugin-explorable

> Parcel plugin for explorable explanations.

Latest version **0.2.0** (published 2018-01-03) · MIT license · 0 weekly downloads

## Install

```sh
npm install parcel-plugin-explorable
pnpm add parcel-plugin-explorable
yarn add parcel-plugin-explorable
bun add parcel-plugin-explorable
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.0 |
| Published | 2018-01-03 |
| First published | 2018-01-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 5 |
| Known vulnerabilities | 0 (+5 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Chet Corcos |
| Maintainers | ccorcos |

## Links

- npm: https://www.npmjs.com/package/parcel-plugin-explorable
- Repository: https://github.com/ccorcos/parcel-plugin-explorable
- Homepage: https://github.com/ccorcos/parcel-plugin-explorable#readme
- Issues: https://github.com/ccorcos/parcel-plugin-explorable/issues
- npm.io page: https://npm.io/package/parcel-plugin-explorable

## Dependencies (5)

- [markdown-it](https://npm.io/package/markdown-it.md) ^8.4.0
- [parcel-bundler](https://npm.io/package/parcel-bundler.md) ^1.1.0
- [posthtml-parser](https://npm.io/package/posthtml-parser.md) 0.2.1
- [markdown-it-renderer](https://npm.io/package/markdown-it-renderer.md) ^2.4.0
- [markdown-it-component](https://npm.io/package/markdown-it-component.md) ^1.1.0

## Recent versions

- 0.2.0 (latest) — 2018-01-03
- 0.1.5 — 2018-01-02
- 0.1.4 — 2018-01-02
- 0.1.3 — 2018-01-02
- 0.1.2 — 2018-01-02
- 0.1.1 — 2018-01-02
- 0.1.0 — 2018-01-02
- 0.0.2 — 2018-01-02
- 0.0.1 — 2018-01-02

## README

# Parcel plugin for explorable explanations

Render react components inside markdown.

## Usage

```
yarn add --dev parcel-plugin-explorable
```

```javascript
import ReactRenderer from "markdown-it-renderer/ReactRenderer"
import ast from './mardown.md';

const renderer = new ReactRenderer({
	tag: (name, props, children) => {
		if (name === "Counter") {
			return <Counter {...props} />
		}
	},
})
const rendered = renderer.renderAst(ast)

const root = document.createElement("div")
document.body.appendChild(root)
ReactDOM.render(<div>{rendered}</div>, root)

```

---
_Source: https://npm.io/package/parcel-plugin-explorable · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
