Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

react-prism

tomchentw17kMIT4.3.2

React.js + prismjs syntax hightlight component

React.js, React, react-component, prismjs, prism, hightlight, hightlight.js, google code prettify, prettify, code prettify, syntax, syntax hightlight, worker, webworker

readme

react-prism

React.js + Prism.js syntax highlight component

Version Travis CI Quality Coverage Dependencies Gitter

Usage / Documentation

npm i --save react-prism

Then, read the documentation.

Credits

changelog

Change Log

All notable changes to this project will be documented in this file. See standard-version for commit guidelines.

4.3.2 (2018-01-02)

4.3.1 (2017-09-30)

4.3.0 (2017-07-04)

Features

  • PrismCode: allow to configure the wrapper component (57a117c), closes #34

4.2.0 (2017-06-30)

Bug Fixes

  • .babelrc: env, stage-0 and react as presets (3d6b2e9)

Features

  • package.json: revamp scripts for styleguidist (a245d6c)

4.1.0 (2017-04-28)

Features

  • package.json: add "prop-types" to peerDependencies (417e9f5)
  • PrismCode: replace React.PropTypes with "prop-types" package (b20ec63), closes #31

4.0.0 (2016-09-21)

Features

  • package.json: upgrade peerDependencies to react@^15.3.0 (963b33d)
  • PrismCode: switch react-addons-pure-render-mixin to React.PureComponent (#25) (de25f69), closes #21

BREAKING CHANGES

  • package.json: drop support for react@^0.14.0
  • package.json: remove peerDependency of react-addons-pure-render-mixin

3.2.2 (2016-09-20)

3.2.1 (2016-05-31)

3.2.0 (2016-04-26)

Features

  • package.json: update to react@^15.0.0 (06f7b91)

3.1.1 (2016-01-28)

3.1.0 (2016-01-19)

Features

  • PrismCode: switch to "react-addons-pure-render-mixin" (da0f917), closes #14

3.0.0 (2015-10-08)

Features

  • package.json: upgrade to React@^0.14 (f35be91)

BREAKING CHANGES

    • React@^0.14: upgrade React in peerDependencies

2.0.0 (2015-10-02)

Features

  • PrismCode: upgrade to support react@^0.14.0-rc1 (cb0a0fa)

<a name"1.4.1">

1.4.1 (2015-07-01)

Bug Fixes

1.4.0 (2015-06-17)

Features

  • PrismCode: ES2015 format to prevent eslint warnings (e0b58d8e)

1.3.2 (2015-06-17)

1.3.1 (2015-05-21)

Bug Fixes

1.3.0 (2015-04-27)

Bug Fixes

  • webpack.config.js: node_modules are excluded from js loaders (2d314148)

Features

1.2.1 (2014-11-20)

1.2.0 (2014-11-09)

Features

  • PrismCode: should respond to children update (a85082d6)

1.1.0 (2014-11-08)

Bug Fixes

  • PrismCode: async option should be truely async (29d6717d)

1.0.0 (2014-11-08)

Features

  • PrismCode:
    • expose async as property and default to true (45bb5a6c)
    • use Prism.highlightElement and update html later (c6cc478e)