From 1b3aa0125259c8bd20e12c619985b367327f409f Mon Sep 17 00:00:00 2001 From: "dependabot-preview[bot]" <27856297+dependabot-preview[bot]@users.noreply.github.com> Date: Sat, 25 Apr 2020 12:03:30 +0800 Subject: [PATCH] chore(deps): bump highlight.js from 9.18.1 to 10.0.0 (#192) * 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] * test(highlight): sublanguage only works with 'autoDetect' Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com> Co-authored-by: MDLeom <43627182+curbengh@users.noreply.github.com> --- package.json | 2 +- test/highlight.spec.js | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) 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", 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);