-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update highlight.js / hidden line rust. (#1566)
fix #1565 ## Why? mdBook during the parsing, put's all the hidden lines (beggining with `#`) inside the `span` tag with `className="boring"`. mdBook generated css files sets all the files with `boring` className to be `display: none`. Unfortunately, new version of `highlight.js` wipes all those mdBook spans during the highlighting process. This version of `highlight.js` is based directly upon the mdBook `highlight.js`, so hidden lines work as intended inside rust codes examples.
- Loading branch information
Showing
9 changed files
with
5,081 additions
and
9,941 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,3 +14,6 @@ runnable = false | |
[output.html.fold] | ||
enable = true | ||
level = 0 | ||
|
||
[output.html.code.hidelines] | ||
cairo = "#" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,3 +14,6 @@ runnable = false | |
[output.html.fold] | ||
enable = true | ||
level = 0 | ||
|
||
[output.html.code.hidelines] | ||
cairo = "#" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,3 +14,6 @@ runnable = false | |
[output.html.fold] | ||
enable = true | ||
level = 0 | ||
|
||
[output.html.code.hidelines] | ||
cairo = "#" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,3 +14,6 @@ runnable = false | |
[output.html.fold] | ||
enable = true | ||
level = 0 | ||
|
||
[output.html.code.hidelines] | ||
cairo = "#" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,3 +14,6 @@ runnable = false | |
[output.html.fold] | ||
enable = true | ||
level = 0 | ||
|
||
[output.html.code.hidelines] | ||
cairo = "#" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,3 +14,6 @@ runnable = false | |
[output.html.fold] | ||
enable = true | ||
level = 0 | ||
|
||
[output.html.code.hidelines] | ||
cairo = "#" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,3 @@ | ||
# Contributing | ||
|
||
If you want to modify the way that the highlighting of Cairo code sample works, you need to: | ||
|
||
1. Clone the repository at https://github.com/highlightjs/highlight.js | ||
2. Copy our [cairo.js](./cairo.js) into `highlight.js/src/languages` directory | ||
3. Run `npm install` | ||
4. Modify the copied `cairo.js` | ||
5. Run `node tools/build.js :common apache armasm coffeescript d handlebars haskell http julia nginx nim nix properties r scala x86asm yaml cairo` | ||
6. Replace our [highlight.js](./highlight.js) content with newly built `highlight.js/build/highlight.min.js` | ||
If you want to modify the way that the highlighting of Cairo code sample works, you just need to change the `cairo` language definition inside the `highlight.js`. |
Oops, something went wrong.