##// END OF EJS Templates
make markdown error handling js-specific
MinRK -
Show More
@@ -389,6 +389,6 b' pre, code, kbd, samp { white-space: pre-wrap; }'
389 font-family: monospace;
389 font-family: monospace;
390 }
390 }
391
391
392 .render-error {
392 .js-error {
393 color: darkred;
393 color: darkred;
394 } No newline at end of file
394 }
@@ -223,9 +223,9 b' var IPython = (function (IPython) {'
223 try {
223 try {
224 this.set_rendered(html);
224 this.set_rendered(html);
225 } catch (e) {
225 } catch (e) {
226 console.log("Error rendering Markdown:");
226 console.log("Error running Javascript in Markdown:");
227 console.log(e);
227 console.log(e);
228 this.set_rendered($("<div/>").addClass("render-error").html(
228 this.set_rendered($("<div/>").addClass("js-error").html(
229 "Error rendering Markdown!<br/>" + e.toString())
229 "Error rendering Markdown!<br/>" + e.toString())
230 );
230 );
231 }
231 }
General Comments 0
You need to be logged in to leave comments. Login now