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 2155
2155
var bbox = boxes [ this . base ] , BBOX = this . CHTML ;
2156
2156
BBOX . w = W ; BBOX . h = bbox . h ; BBOX . d = bbox . d ; // modified below
2157
2157
//
2158
+ // Adjust for bases shorter than the center line (#1657)
2159
+ // (the center line really depends on the surrounding font, so
2160
+ // it should be measured along with ems and exs, but currently isn't.
2161
+ // so this value is an approximation that is reasonable for most fonts.)
2162
+ //
2163
+ if ( bbox . h < .35 ) base . style . marginTop = CHTML . Em ( bbox . h - .35 ) ;
2164
+ //
2165
+ // Use a minimum height for accents (#1706)
2166
+ // (same issues with the center line as above)
2167
+ //
2168
+ if ( values . accent && bbox . h < CHTML . TEX . x_height ) {
2169
+ base . style . marginTop = CHTML . Em ( CHTML . TEX . x_height - Math . max ( bbox . h , .35 ) ) ;
2170
+ }
2171
+ //
2158
2172
// Add over- and under-scripts
2159
2173
//
2160
2174
var stack = base , delta = 0 ;
You can’t perform that action at this time.
0 commit comments