##// END OF EJS Templates
don't set target on internal markdown links...
MinRK -
Show More
@@ -321,7 +321,7 b' var IPython = (function (IPython) {'
321 321 var html = marked.parser(marked.lexer(text));
322 322 html = $(IPython.mathjaxutils.replace_math(html, math));
323 323 // links in markdown cells should open in new tabs
324 html.find("a[href]").attr("target", "_blank");
324 html.find("a[href]").not('[href^="#"]').attr("target", "_blank");
325 325 try {
326 326 this.set_rendered(html);
327 327 } catch (e) {
General Comments 0
You need to be logged in to leave comments. Login now