Skip to content

Commit

Permalink
Merge pull request #1621 from ehuss/revert-highlightjs11
Browse files Browse the repository at this point in the history
Revert #1597 - Update to highlight.js 11.0.
  • Loading branch information
ehuss authored Aug 2, 2021
2 parents db337d4 + 68d8cee commit 8b4e488
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 1,338 deletions.
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ Unfortunately at this time we don't have any automated UI or browser testing, so
The following are instructions for updating [highlight.js](https://highlightjs.org/).

1. Clone the repository at <https://github.com/highlightjs/highlight.js>
1. Check out a tagged release (like `11.0.0`).
1. Check out a tagged release (like `10.1.1`).
1. Run `npm install`
1. Run `node tools/build.js :common apache armasm coffeescript d handlebars haskell http julia nginx properties r scala x86asm yaml`
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`.
Expand Down
3 changes: 0 additions & 3 deletions guide/src/format/theme/syntax-highlighting.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,9 @@ your own `highlight.js` file:
- objectivec
- perl
- php
- php-template
- plaintext
- properties
- python
- python-repl
- r
- ruby
- rust
Expand All @@ -61,7 +59,6 @@ your own `highlight.js` file:
- sql
- swift
- typescript
- vbnet
- x86asm
- xml
- yaml
Expand Down
4 changes: 2 additions & 2 deletions src/theme/book.js
Original file line number Diff line number Diff line change
Expand Up @@ -169,9 +169,9 @@ function playground_text(playground) {
Array
code_nodes
.filter(function (node) {return !node.classList.contains("editable"); })
.forEach(function (block) { hljs.highlightElement(block); });
.forEach(function (block) { hljs.highlightBlock(block); });
} else {
code_nodes.forEach(function (block) { hljs.highlightElement(block); });
code_nodes.forEach(function (block) { hljs.highlightBlock(block); });
}

// Adding the hljs class gives code blocks the color css
Expand Down
Loading

0 comments on commit 8b4e488

Please sign in to comment.