Show More
@@ -515,9 +515,8 b' var IPython = (function (IPython) {' | |||||
515 | HeadingCell.prototype.render = function () { |
|
515 | HeadingCell.prototype.render = function () { | |
516 | if (this.rendered === false) { |
|
516 | if (this.rendered === false) { | |
517 | var text = this.get_text(); |
|
517 | var text = this.get_text(); | |
518 |
// Markdown headings must be a single line |
|
518 | // Markdown headings must be a single line | |
519 | // truncate invalid input |
|
519 | text = text.replace(/\n/g, ' '); | |
520 | text = text.split('\n')[0]; |
|
|||
521 | if (text === "") { text = this.placeholder; } |
|
520 | if (text === "") { text = this.placeholder; } | |
522 | text = Array(this.level + 1).join("#") + " " + text; |
|
521 | text = Array(this.level + 1).join("#") + " " + text; | |
523 | text = IPython.mathjaxutils.remove_math(text); |
|
522 | text = IPython.mathjaxutils.remove_math(text); |
General Comments 0
You need to be logged in to leave comments.
Login now