From 78b8aa860ec6fbac564dd34d60576858df7b2626 Mon Sep 17 00:00:00 2001 From: Denis Bardadym Date: Thu, 14 Nov 2013 12:12:59 +0400 Subject: [PATCH] Use highlight.js right. --- public/res/extensions/markdownExtra.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/res/extensions/markdownExtra.js b/public/res/extensions/markdownExtra.js index ba1fe159..32bd888b 100644 --- a/public/res/extensions/markdownExtra.js +++ b/public/res/extensions/markdownExtra.js @@ -61,7 +61,7 @@ define([ options.highlighter = "prettify"; var previewContentsElt = document.getElementById('preview-contents'); editor.hooks.chain("onPreviewRefresh", function() { - _.each(previewContentsElt.querySelectorAll('.prettyprint'), function(elt) { + _.each(previewContentsElt.querySelectorAll('.prettyprint > code'), function(elt) { hljs.highlightBlock(elt); }); });