mirror of
https://github.com/jupyter/notebook.git
synced 2024-12-27 04:20:22 +08:00
make markdown error handling js-specific
This commit is contained in:
parent
7e7c2fe9e5
commit
4a3e1f3185
@ -389,6 +389,6 @@ pre, code, kbd, samp { white-space: pre-wrap; }
|
||||
font-family: monospace;
|
||||
}
|
||||
|
||||
.render-error {
|
||||
.js-error {
|
||||
color: darkred;
|
||||
}
|
@ -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())
|
||||
);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user