Skip to content

Commit

Permalink
run line numbers plugin in complete hook
Browse files Browse the repository at this point in the history
  • Loading branch information
manfer committed Aug 9, 2015
1 parent 1c630b1 commit 3f4d918
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/line-numbers/prism-line-numbers.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Prism.hooks.add('after-highlight', function (env) {
Prism.hooks.add('complete', function (env) {
// works only for <code> wrapped inside <pre> (not inline)
var pre = env.element.parentNode;
var clsReg = /\s*\bline-numbers\b\s*/;
Expand Down

0 comments on commit 3f4d918

Please sign in to comment.