feat(katex): add KaTeX
This commit is contained in:
parent
03235504ba
commit
c8d3493884
@ -11,6 +11,25 @@
|
|||||||
<link rel="canonical" href="{{ page.url | replace:'index.html','' | prepend: site.baseurl | prepend: site.url }}">
|
<link rel="canonical" href="{{ page.url | replace:'index.html','' | prepend: site.baseurl | prepend: site.url }}">
|
||||||
<link rel="alternate" type="application/rss+xml" title="{{ site.title }}" href="{{ "/feed.xml" | prepend: site.baseurl | prepend: site.url }}" />
|
<link rel="alternate" type="application/rss+xml" title="{{ site.title }}" href="{{ "/feed.xml" | prepend: site.baseurl | prepend: site.url }}" />
|
||||||
|
|
||||||
|
{% if page.math %}
|
||||||
|
<link rel='stylesheet' href='{{ "/css/katex.min.css" | prepend: site.baseurl }}'>
|
||||||
|
<script rel='stylesheet' src='{{ "/js/katex.min.js" | prepend: site.baseurl }}'></script>
|
||||||
|
<script rel='stylesheet' src='{{ "/js/auto-render.min.js" | prepend: site.baseurl }}'></script>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
document.addEventListener("DOMContentLoaded", function() {
|
||||||
|
renderMathInElement(document.body, {
|
||||||
|
delimiters: [
|
||||||
|
{left: "$$", right: "$$", display: true},
|
||||||
|
{left: "\\[", right: "\\]", display: true},
|
||||||
|
{left: "\\(", right: "\\)", display: false},
|
||||||
|
{left: "$", right: "$", display: false},
|
||||||
|
],
|
||||||
|
});
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
<!--<script src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML" type="text/javascript"></script>-->
|
<!--<script src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML" type="text/javascript"></script>-->
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
BIN
css/fonts/KaTeX_AMS-Regular.eot
Normal file
BIN
css/fonts/KaTeX_AMS-Regular.eot
Normal file
Binary file not shown.
BIN
css/fonts/KaTeX_AMS-Regular.ttf
Normal file
BIN
css/fonts/KaTeX_AMS-Regular.ttf
Normal file
Binary file not shown.
BIN
css/fonts/KaTeX_AMS-Regular.woff
Normal file
BIN
css/fonts/KaTeX_AMS-Regular.woff
Normal file
Binary file not shown.
BIN
css/fonts/KaTeX_AMS-Regular.woff2
Normal file
BIN
css/fonts/KaTeX_AMS-Regular.woff2
Normal file
Binary file not shown.
BIN
css/fonts/KaTeX_Caligraphic-Bold.eot
Normal file
BIN
css/fonts/KaTeX_Caligraphic-Bold.eot
Normal file
Binary file not shown.
BIN
css/fonts/KaTeX_Caligraphic-Bold.ttf
Normal file
BIN
css/fonts/KaTeX_Caligraphic-Bold.ttf
Normal file
Binary file not shown.
BIN
css/fonts/KaTeX_Caligraphic-Bold.woff
Normal file
BIN
css/fonts/KaTeX_Caligraphic-Bold.woff
Normal file
Binary file not shown.
BIN
css/fonts/KaTeX_Caligraphic-Bold.woff2
Normal file
BIN
css/fonts/KaTeX_Caligraphic-Bold.woff2
Normal file
Binary file not shown.
BIN
css/fonts/KaTeX_Caligraphic-Regular.eot
Normal file
BIN
css/fonts/KaTeX_Caligraphic-Regular.eot
Normal file
Binary file not shown.
BIN
css/fonts/KaTeX_Caligraphic-Regular.ttf
Normal file
BIN
css/fonts/KaTeX_Caligraphic-Regular.ttf
Normal file
Binary file not shown.
BIN
css/fonts/KaTeX_Caligraphic-Regular.woff
Normal file
BIN
css/fonts/KaTeX_Caligraphic-Regular.woff
Normal file
Binary file not shown.
BIN
css/fonts/KaTeX_Caligraphic-Regular.woff2
Normal file
BIN
css/fonts/KaTeX_Caligraphic-Regular.woff2
Normal file
Binary file not shown.
BIN
css/fonts/KaTeX_Fraktur-Bold.eot
Normal file
BIN
css/fonts/KaTeX_Fraktur-Bold.eot
Normal file
Binary file not shown.
BIN
css/fonts/KaTeX_Fraktur-Bold.ttf
Normal file
BIN
css/fonts/KaTeX_Fraktur-Bold.ttf
Normal file
Binary file not shown.
BIN
css/fonts/KaTeX_Fraktur-Bold.woff
Normal file
BIN
css/fonts/KaTeX_Fraktur-Bold.woff
Normal file
Binary file not shown.
BIN
css/fonts/KaTeX_Fraktur-Bold.woff2
Normal file
BIN
css/fonts/KaTeX_Fraktur-Bold.woff2
Normal file
Binary file not shown.
BIN
css/fonts/KaTeX_Fraktur-Regular.eot
Normal file
BIN
css/fonts/KaTeX_Fraktur-Regular.eot
Normal file
Binary file not shown.
BIN
css/fonts/KaTeX_Fraktur-Regular.ttf
Normal file
BIN
css/fonts/KaTeX_Fraktur-Regular.ttf
Normal file
Binary file not shown.
BIN
css/fonts/KaTeX_Fraktur-Regular.woff
Normal file
BIN
css/fonts/KaTeX_Fraktur-Regular.woff
Normal file
Binary file not shown.
BIN
css/fonts/KaTeX_Fraktur-Regular.woff2
Normal file
BIN
css/fonts/KaTeX_Fraktur-Regular.woff2
Normal file
Binary file not shown.
BIN
css/fonts/KaTeX_Main-Bold.eot
Normal file
BIN
css/fonts/KaTeX_Main-Bold.eot
Normal file
Binary file not shown.
BIN
css/fonts/KaTeX_Main-Bold.ttf
Normal file
BIN
css/fonts/KaTeX_Main-Bold.ttf
Normal file
Binary file not shown.
BIN
css/fonts/KaTeX_Main-Bold.woff
Normal file
BIN
css/fonts/KaTeX_Main-Bold.woff
Normal file
Binary file not shown.
BIN
css/fonts/KaTeX_Main-Bold.woff2
Normal file
BIN
css/fonts/KaTeX_Main-Bold.woff2
Normal file
Binary file not shown.
BIN
css/fonts/KaTeX_Main-Italic.eot
Normal file
BIN
css/fonts/KaTeX_Main-Italic.eot
Normal file
Binary file not shown.
BIN
css/fonts/KaTeX_Main-Italic.ttf
Normal file
BIN
css/fonts/KaTeX_Main-Italic.ttf
Normal file
Binary file not shown.
BIN
css/fonts/KaTeX_Main-Italic.woff
Normal file
BIN
css/fonts/KaTeX_Main-Italic.woff
Normal file
Binary file not shown.
BIN
css/fonts/KaTeX_Main-Italic.woff2
Normal file
BIN
css/fonts/KaTeX_Main-Italic.woff2
Normal file
Binary file not shown.
BIN
css/fonts/KaTeX_Main-Regular.eot
Normal file
BIN
css/fonts/KaTeX_Main-Regular.eot
Normal file
Binary file not shown.
BIN
css/fonts/KaTeX_Main-Regular.ttf
Normal file
BIN
css/fonts/KaTeX_Main-Regular.ttf
Normal file
Binary file not shown.
BIN
css/fonts/KaTeX_Main-Regular.woff
Normal file
BIN
css/fonts/KaTeX_Main-Regular.woff
Normal file
Binary file not shown.
BIN
css/fonts/KaTeX_Main-Regular.woff2
Normal file
BIN
css/fonts/KaTeX_Main-Regular.woff2
Normal file
Binary file not shown.
BIN
css/fonts/KaTeX_Math-BoldItalic.eot
Normal file
BIN
css/fonts/KaTeX_Math-BoldItalic.eot
Normal file
Binary file not shown.
BIN
css/fonts/KaTeX_Math-BoldItalic.ttf
Normal file
BIN
css/fonts/KaTeX_Math-BoldItalic.ttf
Normal file
Binary file not shown.
BIN
css/fonts/KaTeX_Math-BoldItalic.woff
Normal file
BIN
css/fonts/KaTeX_Math-BoldItalic.woff
Normal file
Binary file not shown.
BIN
css/fonts/KaTeX_Math-BoldItalic.woff2
Normal file
BIN
css/fonts/KaTeX_Math-BoldItalic.woff2
Normal file
Binary file not shown.
BIN
css/fonts/KaTeX_Math-Italic.eot
Normal file
BIN
css/fonts/KaTeX_Math-Italic.eot
Normal file
Binary file not shown.
BIN
css/fonts/KaTeX_Math-Italic.ttf
Normal file
BIN
css/fonts/KaTeX_Math-Italic.ttf
Normal file
Binary file not shown.
BIN
css/fonts/KaTeX_Math-Italic.woff
Normal file
BIN
css/fonts/KaTeX_Math-Italic.woff
Normal file
Binary file not shown.
BIN
css/fonts/KaTeX_Math-Italic.woff2
Normal file
BIN
css/fonts/KaTeX_Math-Italic.woff2
Normal file
Binary file not shown.
BIN
css/fonts/KaTeX_Math-Regular.eot
Normal file
BIN
css/fonts/KaTeX_Math-Regular.eot
Normal file
Binary file not shown.
BIN
css/fonts/KaTeX_Math-Regular.ttf
Normal file
BIN
css/fonts/KaTeX_Math-Regular.ttf
Normal file
Binary file not shown.
BIN
css/fonts/KaTeX_Math-Regular.woff
Normal file
BIN
css/fonts/KaTeX_Math-Regular.woff
Normal file
Binary file not shown.
BIN
css/fonts/KaTeX_Math-Regular.woff2
Normal file
BIN
css/fonts/KaTeX_Math-Regular.woff2
Normal file
Binary file not shown.
BIN
css/fonts/KaTeX_SansSerif-Bold.eot
Normal file
BIN
css/fonts/KaTeX_SansSerif-Bold.eot
Normal file
Binary file not shown.
BIN
css/fonts/KaTeX_SansSerif-Bold.ttf
Normal file
BIN
css/fonts/KaTeX_SansSerif-Bold.ttf
Normal file
Binary file not shown.
BIN
css/fonts/KaTeX_SansSerif-Bold.woff
Normal file
BIN
css/fonts/KaTeX_SansSerif-Bold.woff
Normal file
Binary file not shown.
BIN
css/fonts/KaTeX_SansSerif-Bold.woff2
Normal file
BIN
css/fonts/KaTeX_SansSerif-Bold.woff2
Normal file
Binary file not shown.
BIN
css/fonts/KaTeX_SansSerif-Italic.eot
Normal file
BIN
css/fonts/KaTeX_SansSerif-Italic.eot
Normal file
Binary file not shown.
BIN
css/fonts/KaTeX_SansSerif-Italic.ttf
Normal file
BIN
css/fonts/KaTeX_SansSerif-Italic.ttf
Normal file
Binary file not shown.
BIN
css/fonts/KaTeX_SansSerif-Italic.woff
Normal file
BIN
css/fonts/KaTeX_SansSerif-Italic.woff
Normal file
Binary file not shown.
BIN
css/fonts/KaTeX_SansSerif-Italic.woff2
Normal file
BIN
css/fonts/KaTeX_SansSerif-Italic.woff2
Normal file
Binary file not shown.
BIN
css/fonts/KaTeX_SansSerif-Regular.eot
Normal file
BIN
css/fonts/KaTeX_SansSerif-Regular.eot
Normal file
Binary file not shown.
BIN
css/fonts/KaTeX_SansSerif-Regular.ttf
Normal file
BIN
css/fonts/KaTeX_SansSerif-Regular.ttf
Normal file
Binary file not shown.
BIN
css/fonts/KaTeX_SansSerif-Regular.woff
Normal file
BIN
css/fonts/KaTeX_SansSerif-Regular.woff
Normal file
Binary file not shown.
BIN
css/fonts/KaTeX_SansSerif-Regular.woff2
Normal file
BIN
css/fonts/KaTeX_SansSerif-Regular.woff2
Normal file
Binary file not shown.
BIN
css/fonts/KaTeX_Script-Regular.eot
Normal file
BIN
css/fonts/KaTeX_Script-Regular.eot
Normal file
Binary file not shown.
BIN
css/fonts/KaTeX_Script-Regular.ttf
Normal file
BIN
css/fonts/KaTeX_Script-Regular.ttf
Normal file
Binary file not shown.
BIN
css/fonts/KaTeX_Script-Regular.woff
Normal file
BIN
css/fonts/KaTeX_Script-Regular.woff
Normal file
Binary file not shown.
BIN
css/fonts/KaTeX_Script-Regular.woff2
Normal file
BIN
css/fonts/KaTeX_Script-Regular.woff2
Normal file
Binary file not shown.
BIN
css/fonts/KaTeX_Size1-Regular.eot
Normal file
BIN
css/fonts/KaTeX_Size1-Regular.eot
Normal file
Binary file not shown.
BIN
css/fonts/KaTeX_Size1-Regular.ttf
Normal file
BIN
css/fonts/KaTeX_Size1-Regular.ttf
Normal file
Binary file not shown.
BIN
css/fonts/KaTeX_Size1-Regular.woff
Normal file
BIN
css/fonts/KaTeX_Size1-Regular.woff
Normal file
Binary file not shown.
BIN
css/fonts/KaTeX_Size1-Regular.woff2
Normal file
BIN
css/fonts/KaTeX_Size1-Regular.woff2
Normal file
Binary file not shown.
BIN
css/fonts/KaTeX_Size2-Regular.eot
Normal file
BIN
css/fonts/KaTeX_Size2-Regular.eot
Normal file
Binary file not shown.
BIN
css/fonts/KaTeX_Size2-Regular.ttf
Normal file
BIN
css/fonts/KaTeX_Size2-Regular.ttf
Normal file
Binary file not shown.
BIN
css/fonts/KaTeX_Size2-Regular.woff
Normal file
BIN
css/fonts/KaTeX_Size2-Regular.woff
Normal file
Binary file not shown.
BIN
css/fonts/KaTeX_Size2-Regular.woff2
Normal file
BIN
css/fonts/KaTeX_Size2-Regular.woff2
Normal file
Binary file not shown.
BIN
css/fonts/KaTeX_Size3-Regular.eot
Normal file
BIN
css/fonts/KaTeX_Size3-Regular.eot
Normal file
Binary file not shown.
BIN
css/fonts/KaTeX_Size3-Regular.ttf
Normal file
BIN
css/fonts/KaTeX_Size3-Regular.ttf
Normal file
Binary file not shown.
BIN
css/fonts/KaTeX_Size3-Regular.woff
Normal file
BIN
css/fonts/KaTeX_Size3-Regular.woff
Normal file
Binary file not shown.
BIN
css/fonts/KaTeX_Size3-Regular.woff2
Normal file
BIN
css/fonts/KaTeX_Size3-Regular.woff2
Normal file
Binary file not shown.
BIN
css/fonts/KaTeX_Size4-Regular.eot
Normal file
BIN
css/fonts/KaTeX_Size4-Regular.eot
Normal file
Binary file not shown.
BIN
css/fonts/KaTeX_Size4-Regular.ttf
Normal file
BIN
css/fonts/KaTeX_Size4-Regular.ttf
Normal file
Binary file not shown.
BIN
css/fonts/KaTeX_Size4-Regular.woff
Normal file
BIN
css/fonts/KaTeX_Size4-Regular.woff
Normal file
Binary file not shown.
BIN
css/fonts/KaTeX_Size4-Regular.woff2
Normal file
BIN
css/fonts/KaTeX_Size4-Regular.woff2
Normal file
Binary file not shown.
BIN
css/fonts/KaTeX_Typewriter-Regular.eot
Normal file
BIN
css/fonts/KaTeX_Typewriter-Regular.eot
Normal file
Binary file not shown.
BIN
css/fonts/KaTeX_Typewriter-Regular.ttf
Normal file
BIN
css/fonts/KaTeX_Typewriter-Regular.ttf
Normal file
Binary file not shown.
BIN
css/fonts/KaTeX_Typewriter-Regular.woff
Normal file
BIN
css/fonts/KaTeX_Typewriter-Regular.woff
Normal file
Binary file not shown.
BIN
css/fonts/KaTeX_Typewriter-Regular.woff2
Normal file
BIN
css/fonts/KaTeX_Typewriter-Regular.woff2
Normal file
Binary file not shown.
1
css/katex.min.css
vendored
Normal file
1
css/katex.min.css
vendored
Normal file
File diff suppressed because one or more lines are too long
1
js/auto-render.min.js
vendored
Normal file
1
js/auto-render.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
6
js/katex.min.js
vendored
Normal file
6
js/katex.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user