www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit fb3d2c2d0700551572d3b671632e73ef3347cfe4
parent 4ad33386efcb7fd5a0bfb56c64d33437be856928
Author: Davide P. Cervone <dpvc@union.edu>
Date:   Mon, 18 Aug 2014 12:53:18 -0400

Make CHTML-preview previews inherit the surrounding color

Diffstat:
Munpacked/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 @@ -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}}); }, //