Skip to content

Commit

Permalink
run line highlight 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 3f4d918 commit f237e67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/line-highlight/prism-line-highlight.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ function applyHash() {

var fakeTimer = 0; // Hack to limit the number of times applyHash() runs

Prism.hooks.add('after-highlight', function(env) {
Prism.hooks.add('complete', function(env) {
var pre = env.element.parentNode;
var lines = pre && pre.getAttribute('data-line');

Expand Down

0 comments on commit f237e67

Please sign in to comment.