Skip to content

Commit

Permalink
MathJax requires double escape of wrapping
Browse files Browse the repository at this point in the history
  • Loading branch information
paulalesius committed Jan 1, 2024
1 parent becea62 commit c9b7abd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/batch-export.el
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
(let* ((is-block (and (string-prefix-p "$$\n" latex-fragment)
(string-suffix-p "\n$$" latex-fragment))))
(if is-block
(concat "\\[" (substring (substring latex-fragment 3) 0 -3) "\\]")
(concat "\\(" (substring (substring latex-fragment 1) 0 -1) "\\)")))))
(concat "\\\\[" (substring (substring latex-fragment 3) 0 -3) "\\\\]")
(concat "\\\\(" (substring (substring latex-fragment 1) 0 -1) "\\\\)")))))

(add-to-list 'org-export-filter-latex-fragment-functions
'my-md-export-latex-fragments)
Expand Down

0 comments on commit c9b7abd

Please sign in to comment.