File tree Expand file tree Collapse file tree 1 file changed +25
-5
lines changed Expand file tree Collapse file tree 1 file changed +25
-5
lines changed Original file line number Diff line number Diff line change 102
102
// Methods called for MathML attribute processing
103
103
//
104
104
filter : {
105
- "class" : "filterClass" ,
106
- id : "filterID" ,
107
- fontsize : "filterFontSize" ,
108
- mathsize : "filterFontSize" ,
109
- style : "filterStyles"
105
+ "class" : "filterClass" ,
106
+ style : "filterStyles" ,
107
+ id : "filterID" ,
108
+ fontsize : "filterFontSize" ,
109
+ mathsize : "filterFontSize" ,
110
+ scriptminsize : "filterFontSize" ,
111
+ scriptsizemultiplier : "filterSizeMultiplier" ,
112
+ scriptlevel : "filterScriptLevel"
110
113
} ,
111
114
112
115
//
182
185
return ( ALLOW . fontsize === "all" ? size : null ) ;
183
186
} ,
184
187
188
+ //
189
+ // Filter scriptsizemultiplier
190
+ //
191
+ filterSizeMultiplier : function ( size ) {
192
+ if ( ALLOW . fontsize === "none" ) { size = null }
193
+ else if ( ALLOW . fontsize !== "all" ) { size = Math . min ( 1 , size ) . toString ( ) }
194
+ return size ;
195
+ } ,
196
+ //
197
+ // Filter scriptLevel
198
+ //
199
+ filterScriptLevel : function ( level ) {
200
+ if ( ALLOW . fontsize === "none" ) { level = null }
201
+ else if ( ALLOW . fontsize !== "all" ) { level = Math . max ( 0 , level ) . toString ( ) }
202
+ return level ;
203
+ } ,
204
+
185
205
//
186
206
// Filter TeX extension names
187
207
//
You can’t perform that action at this time.
0 commit comments