From 3f4d9182a00bc48aa8d87377fc626ded418d0c69 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fernando=20San=20Juli=C3=A1n?= Date: Sun, 9 Aug 2015 00:07:08 +0200 Subject: [PATCH] run line numbers plugin in complete hook --- plugins/line-numbers/prism-line-numbers.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/line-numbers/prism-line-numbers.js b/plugins/line-numbers/prism-line-numbers.js index 9443deb7dc..73884cce64 100644 --- a/plugins/line-numbers/prism-line-numbers.js +++ b/plugins/line-numbers/prism-line-numbers.js @@ -1,4 +1,4 @@ -Prism.hooks.add('after-highlight', function (env) { +Prism.hooks.add('complete', function (env) { // works only for wrapped inside
 (not inline)
 	var pre = env.element.parentNode;
 	var clsReg = /\s*\bline-numbers\b\s*/;