From fb3d2c2d0700551572d3b671632e73ef3347cfe4 Mon Sep 17 00:00:00 2001 From: "Davide P. Cervone" Date: Mon, 18 Aug 2014 12:53:18 -0400 Subject: [PATCH] Make CHTML-preview previews inherit the surrounding color --- unpacked/extensions/CHTML-preview.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/unpacked/extensions/CHTML-preview.js b/unpacked/extensions/CHTML-preview.js index 3ea498743..e0805232e 100644 --- a/unpacked/extensions/CHTML-preview.js +++ b/unpacked/extensions/CHTML-preview.js @@ -36,7 +36,8 @@ // after the previews have been created // config: HUB.CombineConfig("CHTML-preview",{ - EqnChunk: 5, EqnChunkFactor: 1, EqnChunkDelay: 150 + Chunks: {EqnChunk: 5, EqnChunkFactor: 1, EqnChunkDelay: 150}, + color:"inherit" }), // @@ -44,9 +45,10 @@ // Config: function () { HUB.Config({ - "HTML-CSS": this.config, - "SVG": this.config + "HTML-CSS": this.config.Chunks, + SVG: this.config.Chunks, }); + MathJax.Ajax.Styles({".MathJax_Preview":{color:this.config.color}}); }, //