make markdown error handling js-specific

This commit is contained in:
MinRK 2012-07-27 19:57:47 -07:00
parent 7e7c2fe9e5
commit 4a3e1f3185
2 changed files with 3 additions and 3 deletions

View File

@ -389,6 +389,6 @@ pre, code, kbd, samp { white-space: pre-wrap; }
font-family: monospace;
}
.render-error {
.js-error {
color: darkred;
}

View File

@ -223,9 +223,9 @@ var IPython = (function (IPython) {
try {
this.set_rendered(html);
} catch (e) {
console.log("Error rendering Markdown:");
console.log("Error running Javascript in Markdown:");
console.log(e);
this.set_rendered($("<div/>").addClass("render-error").html(
this.set_rendered($("<div/>").addClass("js-error").html(
"Error rendering Markdown!<br/>" + e.toString())
);
}