mirror of
https://github.com/writefreely/writefreely
synced 2024-11-24 09:33:11 +00:00
fix issue with fonts and not rendering
This commit is contained in:
parent
aad4768aed
commit
84d7ac35d3
3 changed files with 15 additions and 13 deletions
File diff suppressed because one or more lines are too long
1
static/js/mathjax/tex-svg-full.js
Normal file
1
static/js/mathjax/tex-svg-full.js
Normal file
File diff suppressed because one or more lines are too long
|
@ -76,18 +76,20 @@
|
|||
|
||||
<!-- Include mathjax configuration -->
|
||||
{{define "mathjax"}}
|
||||
<script type="text/x-mathjax-config">
|
||||
MathJax.Hub.Config({
|
||||
extensions: ["tex2jax.js"],
|
||||
jax: ["input/TeX", "output/HTML-CSS"],
|
||||
tex2jax: {
|
||||
inlineMath: [ ['$','$'], ["\\(","\\)"] ],
|
||||
displayMath: [ ['$$','$$'], ["\\[","\\]"] ],
|
||||
processEscapes: true
|
||||
},
|
||||
"HTML-CSS": { fonts: ["TeX"] }
|
||||
});
|
||||
<script>
|
||||
MathJax = {
|
||||
tex: {
|
||||
inlineMath: [
|
||||
["\\(", "\\)"],
|
||||
['$', '$'],
|
||||
],
|
||||
displayMath: [
|
||||
['$$', '$$'],
|
||||
['\\[', '\\]'],
|
||||
],
|
||||
},
|
||||
};
|
||||
</script>
|
||||
<script type="text/javascript" id="MathJax-script" src="/js/mathjax-tex-mml-chtml.js" async>
|
||||
<script type="text/javascript" id="MathJax-script" src="/js/mathjax/tex-svg-full.js" async>
|
||||
</script>
|
||||
{{end}}
|
||||
|
|
Loading…
Reference in a new issue