mirror of
https://github.com/hugo-fixit/FixIt.git
synced 2026-08-24 15:28:57 +00:00
♻️ Refactor: mathematical formula render (#609)
* ✨ Feat: add support for math passthrough render hook * ✨ Feat: enable copy-tex extension for KaTeX server-side render * ✨ Feat: enhance mathematical rendering support with KaTeX and MathJax configurations * ✨ Feat: add KaTeX error handling and custom macros map config * ✨ Feat: add MathJax client-side rendering as an alternative math engine * ✨ Feat: update MathJax CDN configuration and enhance asset loading parameters * 🔥 Feat: remove unused KaTeX math rendering scripts and update KaTex * ✨ Feat: make \KaTeX command work in MathJax * ✨ Feat: update KaTeX CDN links for Twikoo integration * ⚡ Perf: Math in content encryption * 🐛 Fix: update class name from 'fi-row' to 'fi-raw' in raw.html shortcode * 🐛 Fix: correct MathJax math delimiters in load-mathjax.js * ✨ Feat: enhance MathJax configuration with additional tex parameters and update asset handling * 🐛 Fix: adjust KaTeX display overflow behavior
This commit is contained in:
@@ -1,3 +1,3 @@
|
||||
|
||||
{{- $tag := .Get "tag" | default (.Get 0) | default "div" -}}
|
||||
{{- printf `<%v class="fi-row">%v</%v>` $tag .Inner $tag | safeHTML -}}
|
||||
{{- printf `<%v class="fi-raw">%v</%v>` $tag .Inner $tag | safeHTML -}}
|
||||
|
||||
Reference in New Issue
Block a user