Preprocess some unicode characters in MathJax (see #7)
This commit is contained in:
parent
98c6ac9a57
commit
e45cbe5c74
|
@ -287,12 +287,14 @@ EOTEX
|
||||||
(list (tex-addition tex-commands)
|
(list (tex-addition tex-commands)
|
||||||
'exact-chars)))
|
'exact-chars)))
|
||||||
|
|
||||||
|
;; TODO: handle delayed elements here instead of just flattening.
|
||||||
(define ($-mathjax strs)
|
(define ($-mathjax strs)
|
||||||
(elem #:style math-inline-style-mathjax strs))
|
(elem #:style math-inline-style-mathjax
|
||||||
|
(map katex-convert-unicode (flatten strs))))
|
||||||
|
|
||||||
(define ($-katex strs)
|
(define ($-katex strs)
|
||||||
(elem #:style math-inline-style-katex
|
(elem #:style math-inline-style-katex
|
||||||
(map katex-convert-unicode (flatten strs))))
|
(map katex-convert-unicode (flatten strs))))
|
||||||
|
|
||||||
(define ($$-mathjax strs)
|
(define ($$-mathjax strs)
|
||||||
(elem #:style math-display-style-mathjax strs))
|
(elem #:style math-display-style-mathjax strs))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user