@@ -193,6 +193,61 @@ export function createTree() {
193193 fill : '#0366d6'
194194 } )
195195 ] ) ,
196+ h ( 'h2' , 'mathml' ) ,
197+ h ( 'p' , [
198+ 'You should see a formula that has 100% width, where the content is ' ,
199+ 'centered, and with a big blue border. ' ,
200+ 'There should also be visible whitespace between ' ,
201+ h ( 'code' , '∀A' ) ,
202+ ' and ' ,
203+ h ( 'code' , '∃P' )
204+ ] ) ,
205+ h (
206+ 'math' ,
207+ {
208+ xmlns : 'http://www.w3.org/1998/Math/MathML' ,
209+ display : 'block' ,
210+ className : [ 'mathml-class-works' ]
211+ } ,
212+ [
213+ h (
214+ 'mrow' ,
215+ h ( 'mo' , { rspace : '0' } , '∀' ) ,
216+ h ( 'mi' , 'A' ) ,
217+ h ( 'mo' , { lspace : '0.22em' , rspace : '0' } , '∃' ) ,
218+ h ( 'mi' , 'P' ) ,
219+ h ( 'mo' , { lspace : '0.22em' , rspace : '0' } , '∀' ) ,
220+ h ( 'mi' , 'B' ) ,
221+ h ( 'mspace' , { width : '0.17em' } ) ,
222+ h ( 'mrow' , [
223+ h ( 'mo' , '[' ) ,
224+ h ( 'mrow' , [
225+ h ( 'mi' , 'B' ) ,
226+ h ( 'mo' , '∈' ) ,
227+ h ( 'mi' , 'P' ) ,
228+ h ( 'mo' , { lspace : '0.28em' , rspace : '0.28em' } , '⟺' ) ,
229+ h ( 'mo' , { rspace : '0' } , '∀' ) ,
230+ h ( 'mi' , 'C' ) ,
231+ h ( 'mspace' , { width : '0.17em' } ) ,
232+ h ( 'mrow' , [
233+ h ( 'mo' , '(' ) ,
234+ h ( 'mrow' , [
235+ h ( 'mi' , 'C' ) ,
236+ h ( 'mo' , '∈' ) ,
237+ h ( 'mi' , 'B' ) ,
238+ h ( 'mo' , '⇒' ) ,
239+ h ( 'mi' , 'C' ) ,
240+ h ( 'mo' , '∈' ) ,
241+ h ( 'mi' , 'A' )
242+ ] ) ,
243+ h ( 'mo' , ')' )
244+ ] )
245+ ] ) ,
246+ h ( 'mo' , ']' )
247+ ] )
248+ )
249+ ]
250+ ) ,
196251 h ( 'h2' , 'xml:lang' ) ,
197252 h ( 'style' , ':lang(fr) { color: #0366d6; }' ) ,
198253 h ( 'p' , { xmlLang : 'fr' } , "C'est bleu ? Ensuite ça marche" )
0 commit comments