Commit fd1f484c authored by Matthieu Boileau's avatar Matthieu Boileau
Browse files

Merge branch 'dev-calendar' into 'master'

Add support for KaTeX

Closes #3

See merge request !15
parents 1d4765c6 19edac8f
Pipeline #19465 passed with stages
in 18 seconds
__version__ = '0.3.10'
__version__ = '0.4.0'
......@@ -13,6 +13,29 @@
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet" />
<link href="{{ 'css/materialize.css'|url }}" type="text/css" rel="stylesheet" media="screen,projection" />
<link href="{{ 'css/style.css'|url }}" type="text/css" rel="stylesheet" media="screen,projection" />
{% if site.katex %}
<!-- KaTeX -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.16.0/dist/katex.min.css" integrity="sha384-Xi8rHCmBmhbuyyhbI88391ZKP2dmfnOl4rT9ZfRI7mLTdk1wblIUnrIq35nqwEvC" crossorigin="anonymous">
<script defer src="https://cdn.jsdelivr.net/npm/katex@0.16.0/dist/katex.min.js" integrity="sha384-X/XCfMm41VSsqRNQgDerQczD69XqmjOOOwYQvr/uuC+j4OPoNhVgjdGFwhvN02Ja" crossorigin="anonymous"></script>
<script defer src="https://cdn.jsdelivr.net/npm/katex@0.16.0/dist/contrib/auto-render.min.js" integrity="sha384-+XBljXPPiv+OzfbB3cVmLHf4hdUFHlWNZN5spNQ7rmHTXpd7WvJum6fIACpNNfIR" crossorigin="anonymous"></script>
<script>
document.addEventListener("DOMContentLoaded", function() {
renderMathInElement(document.body, {
// customised options
// • auto-render specific keys, e.g.:
delimiters: [
{left: '$$', right: '$$', display: true},
{left: '$', right: '$', display: false},
{left: '\\(', right: '\\)', display: false},
{left: '\\[', right: '\\]', display: true}
],
// • rendering keys, e.g.:
throwOnError : false
});
});
</script>
<!-- End KaTeX -->
{% endif %}
{% if site.matamocloud -%}
<!-- Matomo -->
<script>
......
......@@ -70,4 +70,5 @@ site:
- href: /pages/legal-notice.html
name: Legal notice
matamocloud: my-domain
katex: true
today: 2019-05-01
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment