Skip to content

Instantly share code, notes, and snippets.

@meawoppl
Created December 14, 2020 06:43
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 meawoppl/d217e86e59a557faa850139ea4992172 to your computer and use it in GitHub Desktop.
Save meawoppl/d217e86e59a557faa850139ea4992172 to your computer and use it in GitHub Desktop.
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