Skip to content

Commit

Permalink
Update KaTeX
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Warrick <kwpolska@gmail.com>
  • Loading branch information
Kwpolska committed Nov 16, 2015
1 parent b37e110 commit dbb28e9
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion nikola/conf.py.in
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -835,7 +835,7 @@ PRETTY_URLS = ${PRETTY_URLS}
# it's faster and the output looks better. # it's faster and the output looks better.
# If you set USE_KATEX to True, you also need to add an extra CSS file # If you set USE_KATEX to True, you also need to add an extra CSS file
# like this: # like this:
# EXTRA_HEAD_DATA = """<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/KaTeX/0.3.0/katex.min.css">""" # EXTRA_HEAD_DATA = """<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/KaTeX/0.5.1/katex.min.css">"""
# USE_KATEX = False # USE_KATEX = False


# Do you want to customize the nbconversion of your IPython notebook? # Do you want to customize the nbconversion of your IPython notebook?
Expand Down
4 changes: 2 additions & 2 deletions nikola/data/themes/base-jinja/templates/index_helper.tmpl
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
{% macro mathjax_script(posts) %} {% macro mathjax_script(posts) %}
{% if posts|selectattr("is_mathjax")|list %} {% if posts|selectattr("is_mathjax")|list %}
{% if use_katex %} {% if use_katex %}
<script src="//cdnjs.cloudflare.com/ajax/libs/KaTeX/0.3.0/katex.min.js"></script> <script src="//cdnjs.cloudflare.com/ajax/libs/KaTeX/0.5.1/katex.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/KaTeX/0.3.0/contrib/auto-render.min.js"></script> <script src="//cdnjs.cloudflare.com/ajax/libs/KaTeX/0.5.1/contrib/auto-render.min.js"></script>
<script> <script>
renderMathInElement(document.body); renderMathInElement(document.body);
</script> </script>
Expand Down
4 changes: 2 additions & 2 deletions nikola/data/themes/base-jinja/templates/post_helper.tmpl
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -87,8 +87,8 @@
{% macro mathjax_script(post) %} {% macro mathjax_script(post) %}
{% if post.is_mathjax %} {% if post.is_mathjax %}
{% if use_katex %} {% if use_katex %}
<script src="//cdnjs.cloudflare.com/ajax/libs/KaTeX/0.3.0/katex.min.js"></script> <script src="//cdnjs.cloudflare.com/ajax/libs/KaTeX/0.5.1/katex.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/KaTeX/0.3.0/contrib/auto-render.min.js"></script> <script src="//cdnjs.cloudflare.com/ajax/libs/KaTeX/0.5.1/contrib/auto-render.min.js"></script>
<script> <script>
renderMathInElement(document.body); renderMathInElement(document.body);
</script> </script>
Expand Down
4 changes: 2 additions & 2 deletions nikola/data/themes/base/templates/index_helper.tmpl
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
<%def name="mathjax_script(posts)"> <%def name="mathjax_script(posts)">
%if any(post.is_mathjax for post in posts): %if any(post.is_mathjax for post in posts):
%if use_katex: %if use_katex:
<script src="//cdnjs.cloudflare.com/ajax/libs/KaTeX/0.3.0/katex.min.js"></script> <script src="//cdnjs.cloudflare.com/ajax/libs/KaTeX/0.5.1/katex.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/KaTeX/0.3.0/contrib/auto-render.min.js"></script> <script src="//cdnjs.cloudflare.com/ajax/libs/KaTeX/0.5.1/contrib/auto-render.min.js"></script>
<script> <script>
renderMathInElement(document.body); renderMathInElement(document.body);
</script> </script>
Expand Down
4 changes: 2 additions & 2 deletions nikola/data/themes/base/templates/post_helper.tmpl
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -87,8 +87,8 @@
<%def name="mathjax_script(post)"> <%def name="mathjax_script(post)">
%if post.is_mathjax: %if post.is_mathjax:
%if use_katex: %if use_katex:
<script src="//cdnjs.cloudflare.com/ajax/libs/KaTeX/0.3.0/katex.min.js"></script> <script src="//cdnjs.cloudflare.com/ajax/libs/KaTeX/0.5.1/katex.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/KaTeX/0.3.0/contrib/auto-render.min.js"></script> <script src="//cdnjs.cloudflare.com/ajax/libs/KaTeX/0.5.1/contrib/auto-render.min.js"></script>
<script> <script>
renderMathInElement(document.body); renderMathInElement(document.body);
</script> </script>
Expand Down

0 comments on commit dbb28e9

Please sign in to comment.