Skip to content

Instantly share code, notes, and snippets.

@kasimte
Created February 15, 2020 03:22
Show Gist options
  • Select an option

  • Save kasimte/3749c1d0b18bd2249b748fe7fd3abe87 to your computer and use it in GitHub Desktop.

Select an option

Save kasimte/3749c1d0b18bd2249b748fe7fd3abe87 to your computer and use it in GitHub Desktop.

Revisions

  1. kasimte revised this gist Feb 15, 2020. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions add_mathjax_to_jekyll_head.html
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,4 @@
    <!-- From https://github.com/fastai/fast_template/blob/6f72d2957a4e302e437f4437dd6a1e5a1f14274a/_includes/head.html -->
    {% if site.use_mathjax %}
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.11.1/dist/katex.min.css" integrity="sha384-zB1R0rpPzHqg7Kpt0Aljp8JPLqbXI3bhnPWROx27a9N0Ll6ZP/+DiW/UqRcLbRjq" crossorigin="anonymous">
    <script type="text/javascript" async src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-MML-AM_CHTML"> </script>
  2. kasimte created this gist Feb 15, 2020.
    17 changes: 17 additions & 0 deletions add_mathjax_to_jekyll_head.html
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,17 @@
    {% if site.use_mathjax %}
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.11.1/dist/katex.min.css" integrity="sha384-zB1R0rpPzHqg7Kpt0Aljp8JPLqbXI3bhnPWROx27a9N0Ll6ZP/+DiW/UqRcLbRjq" crossorigin="anonymous">
    <script type="text/javascript" async src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-MML-AM_CHTML"> </script>
    <script defer src="https://cdn.jsdelivr.net/npm/katex@0.11.1/dist/katex.min.js" integrity="sha384-y23I5Q6l+B6vatafAwxRu/0oK/79VlbSz7Q9aiSZUvyWYIYsd+qj+o24G5ZU2zJz" crossorigin="anonymous"></script>
    <script defer src="https://cdn.jsdelivr.net/npm/katex@0.11.1/dist/contrib/auto-render.min.js" integrity="sha384-kWPLUVMOks5AQFrykwIup5lo0m3iMkkHrD0uJ4H5cjeGihAutqP0yW0J6dpFiVkI" crossorigin="anonymous"></script>
    <script>
    document.addEventListener("DOMContentLoaded", function() {
    renderMathInElement( document.body, {
    delimiters: [
    {left: "$$", right: "$$", display: true},
    {left: "[%", right: "%]", display: true},
    {left: "$", right: "$", display: false}
    ]}
    );
    });
    </script>
    {% endif %}