Parcourir la source

Sanitize the latex output

Steven Silvester il y a 9 ans
Parent
commit
09e05d0c33
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  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'];
 
 
 /**