File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 129129 " inlinemath" +
130130 ( mclass . includes ( "mml4p" ) ? " removeOnSave" : "" ) ) ;
131131 m . innerHTML = mmllist [ i ] . querySelector ( "pre" ) . textContent ;
132+ // echidna doesn't allow mathml a
133+ if ( mclass . includes ( "mathmla" ) ) {
134+ m . innerHTML = m . innerHTML
135+ . replace ( / a h r e f = " ( .* ) " / g, "mrow tabindex=\"0\" style=\"cursor:pointer\" onclick=\"document.location='$1'\"" )
136+ . replace ( / < \/ a > / g, "</mrow>" ) ;
137+ }
132138 var atext ;
133139 var aattrib = mmllist [ i ] . getAttribute ( "alttext" ) ;
134140 if ( aattrib ) {
Original file line number Diff line number Diff line change @@ -3833,16 +3833,16 @@ <h5 id="presm_grouping_sub_expressions_ex">Examples</h5>
38333833 < p > Hyperref links that are compatible with MathML Core may be specified by using the
38343834 < code class ="starttag "> <a></ code > element rather than
38353835 < code class ="starttag "> <mrow></ code > :</ p >
3836- < div class ="example mathml mmlcore ">
3836+ < div class ="mathmla example mathml mmlcore ">
38373837 < pre >
3838- <mrow href="https://openmath.org/cd/transc1.html#arccsch">
3838+ <a href="https://openmath.org/cd/transc1.html#arccsch">
38393839 <mi>arccsch</mi>
3840- <mrow>
3841- <mo>(</mo>
3842- <mi>z</mi>
3843- <mo>)</mo>
3844- </mrow>
3840+ <mrow>
3841+ <mo>(</mo>
3842+ <mi>z</mi>
3843+ <mo>)</mo>
38453844 </mrow>
3845+ </a>
38463846 </ pre >
38473847 </ div >
38483848
You can’t perform that action at this time.
0 commit comments