FIX 解决KE编辑器导致Latex公式显示不正常的bug -MathJax

This commit is contained in:
Jasder 2019-11-01 16:14:26 +08:00
parent da73c34c5a
commit 21dfac44ab
1 changed files with 15 additions and 1 deletions

View File

@ -14,6 +14,20 @@
<%= heads_for_theme %> <%= heads_for_theme %>
<%= call_hook :view_layouts_base_html_head %> <%= call_hook :view_layouts_base_html_head %>
<%= yield :header_tags -%> <%= yield :header_tags -%>
<!-- MathJax的配置 -->
<script type="text/javascript"
src="/javascripts/MathJax/MathJax.js?config=TeX-AMS-MML_HTMLorMML">
</script>
<!-- 配置 在生成的公式图片上去掉Math定义的右键菜单$$ $$ \( \) \[ \] 中的公式给予显示-->
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
showMathMenu: false,
showMathMenuMSIE: false,
tex2jax: {inlineMath: [['$','$'], ['\\(','\\)']]}
});
</script>
</head> </head>
<body onload="prettyPrint();"> <body onload="prettyPrint();">
<div class="pageContainer"> <div class="pageContainer">
@ -42,4 +56,4 @@
</div> </div>
</div> </div>
</body> </body>
</html> </html>