Make CHTML-preview previews inherit the surrounding color

This commit is contained in:
Davide P. Cervone 2014-08-18 12:53:18 -04:00
parent 4ad33386ef
commit fb3d2c2d07

View File

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