##// END OF EJS Templates
truncate invalid multi-line headers
MinRK -
Show More
@@ -515,6 +515,9 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,
519 // truncate invalid input
520 text = text.split('\n')[0];
518 if (text === "") { text = this.placeholder; }
521 if (text === "") { text = this.placeholder; }
519 text = Array(this.level + 1).join("#") + " " + text;
522 text = Array(this.level + 1).join("#") + " " + text;
520 text = IPython.mathjaxutils.remove_math(text);
523 text = IPython.mathjaxutils.remove_math(text);
General Comments 0
You need to be logged in to leave comments. Login now