From e27895dc735f101547bd25ffb0d8d93ace3dc86e Mon Sep 17 00:00:00 2001 From: "dependabot-preview[bot]" <27856297+dependabot-preview[bot]@users.noreply.github.com> Date: Wed, 22 Apr 2020 05:37:43 +0000 Subject: [PATCH 1/2] chore(deps): bump highlight.js from 9.18.1 to 10.0.0 Bumps [highlight.js](https://github.com/highlightjs/highlight.js) from 9.18.1 to 10.0.0. - [Release notes](https://github.com/highlightjs/highlight.js/releases) - [Changelog](https://github.com/highlightjs/highlight.js/blob/master/CHANGES.md) - [Commits](https://github.com/highlightjs/highlight.js/compare/9.18.1...10.0.0) Signed-off-by: dependabot-preview[bot] --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index c11b5b10..c272aeaa 100644 --- a/package.json +++ b/package.json @@ -47,7 +47,7 @@ "camel-case": "^4.0.0", "cross-spawn": "^7.0.0", "deepmerge": "^4.2.2", - "highlight.js": "^9.13.1", + "highlight.js": "^10.0.0", "htmlparser2": "^4.0.0", "prismjs": "^1.17.1", "punycode.js": "^2.1.0", From 84538d69b42671538429d036991587bc0845b64d Mon Sep 17 00:00:00 2001 From: MDLeom <43627182+curbengh@users.noreply.github.com> Date: Sat, 25 Apr 2020 03:45:12 +0100 Subject: [PATCH 2/2] test(highlight): sublanguage only works with 'autoDetect' --- test/highlight.spec.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/highlight.spec.js b/test/highlight.spec.js index 2a0a55cb..193fb79f 100644 --- a/test/highlight.spec.js +++ b/test/highlight.spec.js @@ -220,11 +220,11 @@ describe('highlight', () => { it('highlight sublanguages', done => { const str = ''; - const result = highlight(str, {lang: 'xml'}); + const result = highlight(str, { autoDetect: true }); result.should.eql([ - '
', + '
', gutter(1, 1), - code('<node><?php echo "foo"; ?></node>', null), + code('<node><?php echo "foo"; ?></node>', null), end ].join('')); validateHtmlAsync(result, done);