瀏覽代碼

Merge pull request #748 from jasongrout/mathjax2

Update MathJax config to mirror notebook.
Steven Silvester 8 年之前
父節點
當前提交
c9a8355049
共有 1 個文件被更改,包括 9 次插入1 次删除
  1. 9 1
      src/renderers/latex.ts

+ 9 - 1
src/renderers/latex.ts

@@ -173,7 +173,15 @@ function init() {
     displayAlign: 'center',
     CommonHTML: {
        linebreaks: { automatic: true }
-     }
+     },
+    'HTML-CSS': {
+        availableFonts: [],
+        imageFont: null,
+        preferredFont: null,
+        webFont: 'STIX-Web',
+        styles: {'.MathJax_Display': {'margin': 0}},
+        linebreaks: { automatic: true }
+    },
   });
   MathJax.Hub.Configured();
 }