fix(post): fix mathjax tutorial
parent
9ebc7c2b27
commit
9e98116b0c
|
@ -128,6 +128,8 @@ widgets:
|
||||||
avatar:
|
avatar:
|
||||||
# Email address for the Gravatar to be shown in the profile widget
|
# Email address for the Gravatar to be shown in the profile widget
|
||||||
gravatar:
|
gravatar:
|
||||||
|
# Whether to show avatar image rounded or square
|
||||||
|
avatar_rounded: false
|
||||||
# Path or URL for the follow button
|
# Path or URL for the follow button
|
||||||
follow_link: 'http://github.com/ppoffice'
|
follow_link: 'http://github.com/ppoffice'
|
||||||
# Links to be shown on the bottom of the profile widget
|
# Links to be shown on the bottom of the profile widget
|
||||||
|
|
|
@ -20,15 +20,14 @@ plugins:
|
||||||
mathjax: true # options: true, false
|
mathjax: true # options: true, false
|
||||||
```
|
```
|
||||||
<!-- more -->
|
<!-- more -->
|
||||||
For further MathJax configurations, please edit `<theme folder>/layout/plugin/scripts.ejs`:
|
For further MathJax configurations, please edit `<theme folder>/layout/plugin/mathjax.ejs`:
|
||||||
```html
|
|
||||||
<% if (theme.plugins.mathjax) { %>
|
```js
|
||||||
<!-- Edit here -->
|
document.addEventListener('DOMContentLoaded', function () {
|
||||||
<script type="text/x-mathjax-config">
|
MathJax.Hub.Config({
|
||||||
MathJax.Hub.Config({ tex2jax: { inlineMath: [['$','$'], ['\\(','\\)']] } });
|
// Edit here
|
||||||
</script>
|
});
|
||||||
<%- js('https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-MML-AM_CHTML') %>
|
});
|
||||||
<% } %>
|
|
||||||
```
|
```
|
||||||
|
|
||||||
### TeX and LaTeX input
|
### TeX and LaTeX input
|
||||||
|
|
Loading…
Reference in New Issue