Show More
@@ -256,7 +256,7 b' var IPython = (function (IPython) {' | |||||
256 | var html = marked.parser(marked.lexer(text)); |
|
256 | var html = marked.parser(marked.lexer(text)); | |
257 | html = IPython.mathjaxutils.replace_math(html, math); |
|
257 | html = IPython.mathjaxutils.replace_math(html, math); | |
258 | html = security.sanitize_html(html); |
|
258 | html = security.sanitize_html(html); | |
259 | html = $(html); |
|
259 | html = $($.parseHTML(html)); | |
260 | // links in markdown cells should open in new tabs |
|
260 | // links in markdown cells should open in new tabs | |
261 | html.find("a[href]").not('[href^="#"]').attr("target", "_blank"); |
|
261 | html.find("a[href]").not('[href^="#"]').attr("target", "_blank"); | |
262 | this.set_rendered(html); |
|
262 | this.set_rendered(html); | |
@@ -428,7 +428,7 b' var IPython = (function (IPython) {' | |||||
428 | var html = marked.parser(marked.lexer(text)); |
|
428 | var html = marked.parser(marked.lexer(text)); | |
429 | html = IPython.mathjaxutils.replace_math(html, math); |
|
429 | html = IPython.mathjaxutils.replace_math(html, math); | |
430 | html = security.sanitize_html(html); |
|
430 | html = security.sanitize_html(html); | |
431 | var h = $(html); |
|
431 | var h = $($.parseHTML(html)); | |
432 | // add id and linkback anchor |
|
432 | // add id and linkback anchor | |
433 | var hash = h.text().replace(/ /g, '-'); |
|
433 | var hash = h.text().replace(/ /g, '-'); | |
434 | h.attr('id', hash); |
|
434 | h.attr('id', hash); |
General Comments 0
You need to be logged in to leave comments.
Login now