# @wangjianpeng/draft-js-prism-plugin

> Add syntax highlighting support to your DraftJS editor

Latest version **1.0.0** (published 2018-01-12) · MIT license · 0 weekly downloads

## Install

```sh
npm install @wangjianpeng/draft-js-prism-plugin
pnpm add @wangjianpeng/draft-js-prism-plugin
yarn add @wangjianpeng/draft-js-prism-plugin
bun add @wangjianpeng/draft-js-prism-plugin
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2018-01-12 |
| First published | 2018-01-12 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | wangjianpeng |

## Links

- npm: https://www.npmjs.com/package/@wangjianpeng/draft-js-prism-plugin
- Repository: https://github.com/withspectrum/draft-js-prism-plugin
- Homepage: https://github.com/withspectrum/draft-js-prism-plugin#readme
- Issues: https://github.com/withspectrum/draft-js-prism-plugin/issues
- npm.io page: https://npm.io/package/@wangjianpeng/draft-js-prism-plugin

## Dependencies (2)

- [react](https://npm.io/package/react.md) *
- [draft-js-prism](https://npm.io/package/draft-js-prism.md) ^1.0.4

## Recent versions

- 1.0.0 (latest) — 2018-01-12

## README

# `draft-js-prism-plugin`

A DraftJS plugin to add syntax highlighting support to your code blocks. Use in combination with [`draft-js-plugins`](https://github.com/draft-js-plugins/draft-js-plugins).

## Usage

```JS
import Prism from 'prismjs';
import createPrismPlugin from 'draft-js-prism-plugin';

const prismPlugin = createPrismPlugin({
  // Provide your own instance of PrismJS
  prism: Prism
});
```

## License

This code uses the [`draft-js-prism` decorator](https://github.com/SamyPesse/draft-js-prism) by [@SamyPesse](https://github.com/SamyPesse) and is based on code extracted from the [`draft-js-markdown-shortcuts-plugin`](https://github.com/ngs/draft-js-markdown-shortcuts-plugin) by [@ngs](https://github.com/ngs).

Licensed under the MIT License, Copyright ©️  2017 Space Program Inc. See [LICENSE.md](LICENSE.md) for more information.

---
_Source: https://npm.io/package/@wangjianpeng/draft-js-prism-plugin · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
