2025-2-26-fixed
This commit is contained in:
8
themes/next/layout/_third-party/math/katex.swig
vendored
Normal file
8
themes/next/layout/_third-party/math/katex.swig
vendored
Normal file
@ -0,0 +1,8 @@
|
||||
{%- set katex_uri = theme.vendors.katex or '//cdn.jsdelivr.net/npm/katex@0/dist/katex.min.css' %}
|
||||
<link rel="stylesheet" href="{{ katex_uri }}">
|
||||
{%- if theme.math.katex.copy_tex %}
|
||||
{%- set copy_tex_js_uri = theme.vendors.copy_tex_js or '//cdn.jsdelivr.net/npm/katex@0/dist/contrib/copy-tex.min.js' %}
|
||||
{%- set copy_tex_css_uri = theme.vendors.copy_tex_css or '//cdn.jsdelivr.net/npm/katex@0/dist/contrib/copy-tex.min.css' %}
|
||||
<script src="{{ copy_tex_js_uri }}"></script>
|
||||
<link rel="stylesheet" href="{{ copy_tex_css_uri }}">
|
||||
{%- endif %}
|
||||
Reference in New Issue
Block a user