diff --git a/_config.yml b/_config.yml index 0f8ca018..e5913d3e 100644 --- a/_config.yml +++ b/_config.yml @@ -264,6 +264,15 @@ kramdown: +katex: + # js_path: "{{ Gem::lib_path }}/assets/js" # Path used to search for katex.min.js + js: "https://cdn.jsdelivr.net/npm/katex@0.16.8/dist/katex.min.js" + css: "https://cdn.jsdelivr.net/npm/katex@0.16.8/dist/katex.min.css" + rendering_options: + # Default KaTeX rendering options. See https://github.com/Khan/KaTeX#rendering-options + throw_error: true # throwOnError - set to false if you want rendering to output error as text rather than a build error + error_color: "#cc0000" # errorColor + plugins: - jekyll-feed @@ -271,5 +280,6 @@ plugins: - jekyll-sitemap - jekyll-paginate - jekyll-spaceship + - jekyll-katex