Skip to content

Commit

Permalink
Preprocess some unicode characters in MathJax (see #7)
Browse files Browse the repository at this point in the history
  • Loading branch information
SuzanneSoy committed Jul 10, 2017
1 parent 98c6ac9 commit e45cbe5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions dollar.rkt
Original file line number Diff line number Diff line change
Expand Up @@ -287,12 +287,14 @@ EOTEX
(list (tex-addition tex-commands)
'exact-chars)))

;; TODO: handle delayed elements here instead of just flattening.
(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)
(elem #:style math-inline-style-katex
(map katex-convert-unicode (flatten strs))))
(map katex-convert-unicode (flatten strs))))

(define ($$-mathjax strs)
(elem #:style math-display-style-mathjax strs))
Expand Down

0 comments on commit e45cbe5

Please sign in to comment.