Skip to content

Commit 8b4e488

Browse files
authored
Merge pull request #1621 from ehuss/revert-highlightjs11
Revert #1597 - Update to highlight.js 11.0.
2 parents db337d4 + 68d8cee commit 8b4e488

File tree

4 files changed

+8
-1338
lines changed

4 files changed

+8
-1338
lines changed

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ Unfortunately at this time we don't have any automated UI or browser testing, so
121121
The following are instructions for updating [highlight.js](https://highlightjs.org/).
122122
123123
1. Clone the repository at <https://github.com/highlightjs/highlight.js>
124-
1. Check out a tagged release (like `11.0.0`).
124+
1. Check out a tagged release (like `10.1.1`).
125125
1. Run `npm install`
126126
1. Run `node tools/build.js :common apache armasm coffeescript d handlebars haskell http julia nginx properties r scala x86asm yaml`
127127
1. Compare the language list that it spits out to the one in [`syntax-highlighting.md`](https://github.com/camelid/mdBook/blob/master/guide/src/format/theme/syntax-highlighting.md). If any are missing, add them to the list and rebuild (and update these docs). If any are added to the common set, add them to `syntax-highlighting.md`.

guide/src/format/theme/syntax-highlighting.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,9 @@ your own `highlight.js` file:
4747
- objectivec
4848
- perl
4949
- php
50-
- php-template
5150
- plaintext
5251
- properties
5352
- python
54-
- python-repl
5553
- r
5654
- ruby
5755
- rust
@@ -61,7 +59,6 @@ your own `highlight.js` file:
6159
- sql
6260
- swift
6361
- typescript
64-
- vbnet
6562
- x86asm
6663
- xml
6764
- yaml

src/theme/book.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,9 +169,9 @@ function playground_text(playground) {
169169
Array
170170
code_nodes
171171
.filter(function (node) {return !node.classList.contains("editable"); })
172-
.forEach(function (block) { hljs.highlightElement(block); });
172+
.forEach(function (block) { hljs.highlightBlock(block); });
173173
} else {
174-
code_nodes.forEach(function (block) { hljs.highlightElement(block); });
174+
code_nodes.forEach(function (block) { hljs.highlightBlock(block); });
175175
}
176176

177177
// Adding the hljs class gives code blocks the color css

0 commit comments

Comments
 (0)