Skip to content

Instantly share code, notes, and snippets.

@janmarthedal
Last active January 5, 2016 12:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save janmarthedal/1c4d0db7be01053c408b to your computer and use it in GitHub Desktop.
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"]
/* 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