##// END OF EJS Templates
open markdown links in new tabs...
MinRK -
Show More
@@ -317,7 +317,9 var IPython = (function (IPython) {
317 if (text === "") { text = this.placeholder; }
317 if (text === "") { text = this.placeholder; }
318 text = IPython.mathjaxutils.remove_math(text);
318 text = IPython.mathjaxutils.remove_math(text);
319 var html = marked.parser(marked.lexer(text));
319 var html = marked.parser(marked.lexer(text));
320 html = IPython.mathjaxutils.replace_math(html);
320 html = $(IPython.mathjaxutils.replace_math(html));
321 // links in markdown cells should open in new tabs
322 html.find("a[href]").attr("target", "_blank");
321 try {
323 try {
322 this.set_rendered(html);
324 this.set_rendered(html);
323 } catch (e) {
325 } catch (e) {
General Comments 0
You need to be logged in to leave comments. Login now