Procházet zdrojové kódy

Sanitize the latex output

Steven Silvester před 9 roky
rodič
revize
09e05d0c33
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  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'];
 
 
 /**