Skip to content

Commit 7f7ad6f

Browse files
committed
Merge remote-tracking branch 'origin/math-tag-support' into alpha
2 parents 3fee1a2 + d275107 commit 7f7ad6f

File tree

1 file changed

+18
-5
lines changed
  • mathjax3-ts/output/chtml/Wrappers

1 file changed

+18
-5
lines changed

mathjax3-ts/output/chtml/Wrappers/math.ts

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,27 @@ export class CHTMLmath extends CHTMLWrapper {
3737

3838
public static styles: StyleList = {
3939
'mjx-math': {
40-
display: 'inline-block',
41-
'line-height': '0px',
42-
'text-align': 'left'
40+
'line-height': 0,
41+
'text-align': 'left',
42+
'text-indent': 0,
43+
'font-style': 'normal',
44+
'font-weight': 'normal',
45+
'font-size': '100%',
46+
'font-size-adjust': 'none',
47+
'letter-spacing': 'normal',
48+
'word-wrap': 'normal',
49+
'word-spacing': 'normal',
50+
'white-space': 'nowrap',
51+
'direction': 'ltr',
52+
'padding': '1px 0'
4353
},
4454
'mjx-chtml.MJX-DISPLAY': {
4555
display: 'block',
46-
margin: '1em 0',
47-
'text-align': 'center'
56+
'text-align': 'center',
57+
margin: '1em 0'
58+
},
59+
'mjx-chtml.MJX-DISPLAY mjx-math': {
60+
padding: 0
4861
}
4962
};
5063

0 commit comments

Comments
 (0)