bookshelf-doc/static/mathjax-config.js

26 lines
761 B
JavaScript
Raw Normal View History

/*
* This file is for configing MathJax behavior.
* Seehttps://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: {
inlineMath: [['$', '$']],
displayMath: [['$$', '$$']]
},
options: {
skipHtmlTags: [
'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'
],
ignoreHtmlClass: 'tex2jax_ignore',
processHtmlClass: 'tex2jax_process',
},
2022-02-17 19:27:00 +00:00
};