Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Add MathJax to JavaDoc in Gradle
javadoc {
configure(options) {
options.addBooleanOption("-allow-script-in-comments",true)
options.header = "<script type=\"text/javascript\" async" +
" src=\"https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.7/MathJax.js?config=TeX-MML-AM_CHTML\">" +
"</script>"
}
}
// Then just use $$ e^{/pi i} + 1 == 0 $$ wherever the mood so strikes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment