diff --git a/public/js/extra.js b/public/js/extra.js index 6711fa2e4..a65769915 100644 --- a/public/js/extra.js +++ b/public/js/extra.js @@ -342,7 +342,7 @@ function postProcess(code) { return "" + $(this).html() + "" }); //link should open in new window or tab - result.find('a:not([href^=#]):not([target])').attr('target', '_blank'); + result.find('a:not([href^="#"]):not([target])').attr('target', '_blank'); //update continue line numbers var linenumberdivs = result.find('.gutter.linenumber').toArray(); for (var i = 0; i < linenumberdivs.length; i++) {