Skip to content

Commit

Permalink
Remove the force-to-the-top hack for normalize-whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
zeitgeist87 committed Feb 26, 2016
1 parent 39e9e8d commit 8cf72b3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions plugins/normalize-whitespace/prism-normalize-whitespace.js
Original file line number Diff line number Diff line change
Expand Up @@ -166,8 +166,5 @@ Prism.hooks.add('before-highlight', function (env) {
env.code = env.element.textContent;
}
});
// Make sure our callback runs first
var hooks = Prism.hooks.all['before-highlight'];
hooks.unshift(hooks.pop());

}());

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 8cf72b3

Please sign in to comment.