Improve mathjax integration

This commit is contained in:
Augusto Gunsch 2022-01-16 18:38:52 -03:00
parent 51fcdf9f94
commit b8d51191ab
No known key found for this signature in database
GPG Key ID: F7EEFE29825C72DC
2 changed files with 2 additions and 6 deletions

View File

@ -106,7 +106,7 @@ class File:
# self.content = markdowner.convert(f.read()) # self.content = markdowner.convert(f.read())
self.content = subprocess.check_output(['pandoc', '-f', 'latex', '-t', 'html', self.content = subprocess.check_output(['pandoc', '--mathjax=templates/mathjax/es5/tex-mml-chtml.js', '-f', 'latex', '-t', 'html',
'%s/%s' % (root, name)]).decode() '%s/%s' % (root, name)]).decode()
def expand_html(self): def expand_html(self):

View File

@ -6,13 +6,9 @@
<link rel="stylesheet" href="${root}stylesheet.css"/> <link rel="stylesheet" href="${root}stylesheet.css"/>
<script> <script>
window.MathJax = { window.MathJax = {
tex: {
inlineMath: [['$', '$'], ['\\(', '\\)']]
},
options: { options: {
enableMenu: false, enableMenu: false,
enableEnrichment: false, enableEnrichment: false
makeCollapsible: false
} }
}; };
</script> </script>