Instantly share code, notes, and snippets.

Embed
What would you like to do?
Prevent browser from displaying presentation MathML, but show annotation-xml[encoding="text/html"]
/* 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