Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update MathJax CDN and Latex tips #18

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion _layouts/post.html
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ <h1>{{page.title}}</h1>
</div>
<button class="scroll-to-top" id="scroll-to-top"><i class="fa fa-chevron-up"></i></button>
</div>
<script type="text/javascript" async src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-MML-AM_CHTML"></script>
<script async src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-MML-AM_CHTML" type="text/javascript"></script>
<script>
document.getElementById("scroll-to-top").addEventListener("click", function() {
window.scrollTo({top: 0, left: 0, behavior: 'smooth'});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -235,15 +235,13 @@ But let's throw in a <b>tag</b>.
### Math expressions
---

You can write math expressions using the $$\LateX$$ [markup language](https://en.wikipedia.org/wiki/LaTeX) between double dollar signs : \$$...$$. They can be written inline or as a single block.
You can write math expressions using the $$LateX$$ [markup language](https://en.wikipedia.org/wiki/LaTeX) between double dollar signs : `$$...$$`. They can be written inline or as a single block.

For example,

\$$P(A|B) = \frac{P(B | A)\cdot P(A)}{P(B)}$$ will render as :
For example, `$$P(A|B) = \frac{P(B | A)\cdot P(A)}{P(B)}$$` will render as:

$$P(A|B) = \frac{P(B | A)\cdot P(A)}{P(B)}$$

Please note that for a math block to be displayed correctly, it needs to be separated by an empty line, above and below. Besides, the pipe character | may conflict with markdown : it is recommended to use \vert instead.
Please note that for a math block to be displayed correctly, it needs to be separated by an empty line, above and below. Besides, the pipe character `|` may conflict with markdown: it is recommended to use `\vert` instead.

{:#tables}
### Tables
Expand Down