Skip to content

Commit

Permalink
chore(deps): bump highlight.js from 9.18.1 to 10.0.0 (#192)
Browse files Browse the repository at this point in the history
* 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](highlightjs/highlight.js@9.18.1...10.0.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

* 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>
  • Loading branch information
dependabot-preview[bot] and curbengh committed Apr 25, 2020
1 parent 31f74a5 commit 1b3aa01
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -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",
Expand Down
6 changes: 3 additions & 3 deletions test/highlight.spec.js
Expand Up @@ -220,11 +220,11 @@ describe('highlight', () => {

it('highlight sublanguages', done => {
const str = '<node><?php echo "foo"; ?></node>';
const result = highlight(str, {lang: 'xml'});
const result = highlight(str, { autoDetect: true });
result.should.eql([
'<figure class="highlight xml"><table><tr>',
'<figure class="highlight php-template"><table><tr>',
gutter(1, 1),
code('<span class="tag">&lt;<span class="name">node</span>&gt;</span><span class="php"><span class="meta">&lt;?php</span> <span class="keyword">echo</span> <span class="string">"foo"</span>; <span class="meta">?&gt;</span></span><span class="tag">&lt;/<span class="name">node</span>&gt;</span>', null),
code('<span class="xml"><span class="tag">&lt;<span class="name">node</span>&gt;</span></span><span class="php"><span class="meta">&lt;?php</span> <span class="keyword">echo</span> <span class="string">"foo"</span>; <span class="meta">?&gt;</span></span><span class="xml"><span class="tag">&lt;/<span class="name">node</span>&gt;</span></span>', null),
end
].join(''));
validateHtmlAsync(result, done);
Expand Down

0 comments on commit 1b3aa01

Please sign in to comment.