Skip to content

Commit

Permalink
取消$作为行间公式界定,避免与货币含义冲突。
Browse files Browse the repository at this point in the history
  • Loading branch information
jmxhyz committed Aug 14, 2015
1 parent a946d80 commit ddd43e9
Showing 1 changed file with 8 additions and 21 deletions.
29 changes: 8 additions & 21 deletions template/markdown.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -108,29 +108,16 @@ MixJS.loadJS('highlight/hljs-0.8.js',function(){
});
</script>
<%- files %>
<% if (usemathjax !== ''){ %>
<% if (usemathjax == 'yes'){ %>
<!-- MathJax -->
<script type="text/x-mathjax-config">
// based on http://jsfiddle.net/keithphw/Dwpbb/13/
MathJax.Hub.Config({
config: ["TeX-MML-AM_HTMLorMML-full.js"],
tex2jax: {inlineMath: [['$','$'], ['\\(','\\)']]},
skipStartupTypeset: true,
lazytex2jax: {
displayMath: [['$$','$$'], ['\\[','\\]']],
inlineMath: [['$','$'], ['\\(','\\)']],
},
});
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
config: ["TeX-AMS-MML_HTMLorMML.js"],
tex2jax: {inlineMath: [['\\(','\\)']]}});
//['$','$'], 避免货币价格冲突
</script>
<script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js">
//本地 src="/js/MathJax/MathJax.js"
</script>
<script src="https://raw.githubusercontent.com/Dashed/mathjax-lazyload/master/dist/mathjax-lazyload.min.js">
//本地 src="/js/MathJax/mathjax-lazyload.js"
// https://github.com/Dashed/mathjax-lazyload
</script>
<script src="http://libs.baidu.com/jquery/1.10.2/jquery.min.js">
//本地 src="/js/MathJax/jquery.min.js"
<script type="text/javascript" src="/js/MathJax/MathJax.js">
// src="http://cdn.mathjax.org/mathjax/latest/MathJax.js"
</script>
<% } %>
<!--placeholder-->
Expand Down

0 comments on commit ddd43e9

Please sign in to comment.