-
Notifications
You must be signed in to change notification settings - Fork 236
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
work around syntax highlighter stripping leading blank lines
The syntaxhighlighter library strips blank lines at the start of code block it is trying to highlight. In addition to just being wrong, this means that line numbers on the source page will not line up with the real files. Work around this by providing the library with fake objects that ignore the attempt to strip these lines. This uses a fake string and a fake element to hold it. This is an ugly workaround, but allows us to continue using the syntax highlighter via npm.
- Loading branch information
Showing
1 changed file
with
44 additions
and
17 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