Last active
January 5, 2016 12:35
-
-
Save janmarthedal/1c4d0db7be01053c408b to your computer and use it in GitHub Desktop.
Prevent browser from displaying presentation MathML, but show annotation-xml[encoding="text/html"]
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* From Chrome user agent stylesheet */ | |
math { | |
display: inline; | |
} | |
math[display="block"] { | |
display: block; | |
text-align: center; | |
} | |
semantics > mi, semantics > mn, semantics > mo, semantics > mtext, semantics > mspace, semantics > ms, semantics > maligngroup, semantics > malignmark, semantics > mrow, semantics > mfrac, semantics > msqrt, semantics > mroot, semantics > mstyle, semantics > merror, semantics > mpadded, semantics > mphantom, semantics > mfenced, semantics > menclose, semantics > msub, semantics > msup, semantics > msubsup, semantics > munder, semantics > mover, semantics > munderover, semantics > mmultiscripts, semantics > mtable, semantics > mstack, semantics > mlongdiv, semantics > maction { | |
display: none; | |
} | |
/* Additional styles */ | |
annotation, annotation-xml { | |
display: none; | |
} | |
annotation-xml[encoding="text/html"] { | |
display: inline-block; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment