Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Support markdown math] hexo feature
- Loading branch information
Li, Yuankun
committed
Apr 15, 2020
1 parent
f29033c
commit 71e6f7a
Showing
6 changed files
with
53 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,4 +5,5 @@ db.json | |
node_modules/ | ||
public/ | ||
.deploy*/ | ||
.drawio-chrome*/ | ||
landscape/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<% if(theme.mathjax.enable) { %> | ||
<% if (!theme.mathjax.per_page || (page.total || page.mathjax)) { %> | ||
<script type="text/x-mathjax-config"> | ||
MathJax.Hub.Config({ | ||
tex2jax: { | ||
inlineMath: [ ['$','$'], ["\\(","\\)"] ], | ||
processEscapes: true, | ||
skipTags: ['script', 'noscript', 'style', 'textarea', 'pre', 'code'] | ||
} | ||
}); | ||
</script> | ||
<script type="text/x-mathjax-config"> | ||
MathJax.Hub.Queue(function() { | ||
var all = MathJax.Hub.getAllJax(), i; | ||
for (i=0; i < all.length; i += 1) { | ||
all[i].SourceElement().parentNode.className += ' has-jax'; | ||
} | ||
}); | ||
</script> | ||
<script type="text/javascript" src="<%= theme.mathjax.cdn%>"></script> | ||
<% } %> | ||
<% } %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters