File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -298,12 +298,21 @@ function ide_action(editor_elt, config_64) {
298
298
// Process post src.
299
299
var postsrc = config . postsrc || '' ;
300
300
EMULISP_CORE . eval ( postsrc ) ;
301
- // Rest of operations.
301
+
302
+ // Rest of operations:
303
+ // Reset *LastStdOut
302
304
EMULISP_CORE . eval ( '(setq *LastStdOut "?")' ) ;
305
+ // src -> localStorage
303
306
if ( config . localStorage && typeof ( Storage ) !== "undefined" ) {
304
307
var key = 'microalg_src_' + elt_id ;
305
308
localStorage [ key ] = src ;
306
309
}
310
+ // Typeset the target if MathJax is loaded
311
+ if ( typeof MathJax !== "undefined" ) {
312
+ MathJax . Hub . Queue ( [ "Typeset" ,
313
+ MathJax . Hub ,
314
+ document . getElementById ( display_target_id ) ] ) ;
315
+ }
307
316
}
308
317
309
318
/* Inject an editor + display in the relevant element.
You can’t perform that action at this time.
0 commit comments