Skip to content

Commit

Permalink
Use Mathjax to support Latex notation equations
Browse files Browse the repository at this point in the history
  • Loading branch information
mrmanc committed Nov 4, 2022
1 parent c2d6d23 commit 0596707
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
3 changes: 3 additions & 0 deletions _includes/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,7 @@
{% if page.typescript-syntax %}
<link rel="stylesheet" href="{{ '/assets/css/typescript-syntax-highlighting.css' | relative_url }}">
{% endif %}

<script src="https://polyfill.io/v3/polyfill.min.js?features=es6"></script>
<script id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"></script>
</head>
6 changes: 5 additions & 1 deletion _posts/2018-07-02-sample-blog-post.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,8 @@ Cras nec enim aliquam, dignissim urna feugiat, finibus metus. Fusce felis enim,

Curabitur justo ex, blandit eu ex a, ullamcorper porta nisl. Ut volutpat mi eu nisi pellentesque, sit amet tincidunt sapien posuere. Vivamus rutrum, elit non ornare maximus, orci enim volutpat nisi, non porta ante nunc sed lacus. Vestibulum eu luctus felis. Curabitur semper, tortor id lacinia mollis, tortor dui scelerisque lacus, sed interdum ligula dolor sit amet mi. Vestibulum tempus ante non viverra egestas. Sed feugiat eu ante vel vulputate. Etiam id facilisis lacus. Praesent vel feugiat lectus. In consequat sem ut quam blandit euismod. Phasellus eu pellentesque mi, vitae pharetra turpis. Aenean ut gravida risus, mattis maximus neque. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Ut justo mauris, pulvinar eu tincidunt in, interdum ut lectus. Pellentesque aliquet tristique magna at vehicula.

**This should be bold** whereas *this should be italic*.
**This should be bold** whereas *this should be italic*.

This should be an equation:

$$ x = y^2 $$

0 comments on commit 0596707

Please sign in to comment.