bookshelf-doc/static/mathjax-config.js

42 lines
861 B
JavaScript
Raw Normal View History

/*
2022-02-22 04:40:14 +00:00
* This file is for configing MathJax behavior.
* See https://docs.mathjax.org/en/latest/web/configuration.html
*
* This configuration is copied from old doc-gen3
* https://github.com/leanprover-community/doc-gen
*/
2022-02-17 19:27:00 +00:00
MathJax = {
tex: {
2022-02-22 04:40:14 +00:00
inlineMath: [["$", "$"]],
displayMath: [["$$", "$$"]],
},
options: {
skipHtmlTags: [
2022-02-22 04:40:14 +00:00
"script",
"noscript",
"style",
"textarea",
"pre",
"code",
"annotation",
"annotation-xml",
"decl",
"decl_meta",
"attributes",
"decl_args",
"decl_header",
"decl_name",
"decl_type",
"equation",
"equations",
"structure_field",
"structure_fields",
"constructor",
"constructors",
"instances",
],
2022-02-22 04:40:14 +00:00
ignoreHtmlClass: "tex2jax_ignore",
processHtmlClass: "tex2jax_process",
},
2022-02-22 04:40:14 +00:00
};