Explorar el Código

Sanitize the latex output

Steven Silvester hace 9 años
padre
commit
09e05d0c33
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      src/notebook/output-area/widget.ts

+ 2 - 2
src/notebook/output-area/widget.ts

@@ -93,13 +93,13 @@ const RESULT_CLASS = 'jp-OutputArea-result';
 /**
  * A list of outputs considered safe.
  */
-const safeOutputs = ['text/plain', 'text/latex', 'image/png', 'image/jpeg',
+const safeOutputs = ['text/plain', 'image/png', 'image/jpeg',
                      'application/vnd.jupyter.console-text'];
 
 /**
  * A list of outputs that are sanitizable.
  */
-const sanitizable = ['text/svg', 'text/html'];
+const sanitizable = ['text/svg', 'text/html', 'text/latex'];
 
 
 /**