From 4cc09939315e36764fef6e23de1bf4ca52ddf093 Mon Sep 17 00:00:00 2001 From: Mike Martinson Date: Mon, 23 Jul 2018 14:07:18 -0700 Subject: [PATCH 1/2] Add doc for new language support to reduce redundant issues --- README.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 35b9eb4..15a66cb 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # react-highlight -React component for syntax highlighting using highlight.js +React component for syntax highlighting using [highlight.js](https://github.com/highlightjs/highlight.js) ![Build Status](https://travis-ci.org/akiran/react-highlight.svg?branch=master) @@ -66,3 +66,7 @@ This is especially usefull if html with multiple code snippets is generated from {"html with multiple code snippets"} ``` + +### Adding Additional Language Support + +All language highlighting support comes from [highlight.js](https://github.com/highlightjs/highlight.js). Changes must be merged and released there before they are supported in react-highlight. When a new highlight.js version has been released, submit a PR or issue to bump the dependency version. From 32193e41ee7ae2388cc63609ff6df82099eb3f96 Mon Sep 17 00:00:00 2001 From: Mike Martinson Date: Mon, 23 Jul 2018 14:08:19 -0700 Subject: [PATCH 2/2] Bump hightlight version to 9.12 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 8424929..c8bcc53 100644 --- a/package.json +++ b/package.json @@ -25,7 +25,7 @@ }, "homepage": "https://github.com/akiran/react-highlight", "dependencies": { - "highlight.js": "^9.11.0" + "highlight.js": "^9.12.0" }, "devDependencies": { "autoprefixer": "^6.7.7",