_layouts\post.html
에 다음의 MathJax Rendering 코드를 첨가한다.
- 원본 post.html
---
layout: default
---
<header>
<h1 class="post-title">{{ page.title }}</h1>
</header>
<div class="content">
{% include post-meta.html post=page %}
<div class="post-body">
{{ content }}
{% include post-tags.html post=page %}
</div>
{% include comments.html %}
{% include related_posts.html %}
</div>
- 다음의 MathJax Code 를...
<script type="text/x-mathjax-config">
MathJax.Hub.Config({tex2jax: {inlineMath: [['$','$'], ['\\(','\\)']]}});
</script>
<script type="text/javascript" async
src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-MML-AM_CHTML">
</script>
- 이렇게 삽입해야 한다.
---
layout: default
---
<header>
<h1 class="post-title">{{ page.title }}</h1>
</header>
<script type="text/x-mathjax-config">
MathJax.Hub.Config({tex2jax: {inlineMath: [['$','$'], ['\\(','\\)']]}});
</script>
<script type="text/javascript" async
src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-MML-AM_CHTML">
</script>
<div class="content">
{% include post-meta.html post=page %}
<div class="post-body">
{{ content }}
{% include post-tags.html post=page %}
</div>
{% include comments.html %}
{% include related_posts.html %}
</div>