File tree Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -1690,4 +1690,4 @@ MathJax.Hub.Register.StartupHook("TeX Jax Ready",function () {
1690
1690
1691
1691
} ) ;
1692
1692
1693
- MathJax . Ajax . loadComplete ( "[mhchem]/unpacked/ mhchem.js" ) ;
1693
+ MathJax . Ajax . loadComplete ( "[mhchem]/mhchem.js" ) ;
Original file line number Diff line number Diff line change 2146
2146
var bbox = boxes [ this . base ] , BBOX = this . CHTML ;
2147
2147
BBOX . w = W ; BBOX . h = bbox . h ; BBOX . d = bbox . d ; // modified below
2148
2148
//
2149
+ // Adjust for bases shorter than the center line (#1657)
2150
+ // (the center line really depends on the surrounding font, so
2151
+ // it should be measured along with ems and exs, but currently isn't.
2152
+ // so this value is an approximation that is reasonable for most fonts.)
2153
+ //
2154
+ if ( bbox . h < .35 ) base . style . marginTop = CHTML . Em ( bbox . h - .35 ) ;
2155
+ //
2156
+ // Use a minimum height for accents (#1706)
2157
+ // (same issues with the center line as above)
2158
+ //
2159
+ if ( values . accent && bbox . h < .431 ) {
2160
+ base . style . marginTop = CHTML . Em ( .431 - Math . max ( bbox . h , .35 ) ) ;
2161
+ }
2162
+ //
2149
2163
// Add over- and under-scripts
2150
2164
//
2151
2165
var stack = base , delta = 0 ;
You can’t perform that action at this time.
0 commit comments