Skip to content

Commit c7acaf6

Browse files
committed
Exempt a few more unicode characters from LaTeX escaping
1 parent 47cc9eb commit c7acaf6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/render_latex.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ function escapeIndex(value) {
6363
}
6464

6565
function escapeComplexScripts(string) {
66-
return string.replace(/[^\u0000-\u0600]+/g, m => {
66+
return string.replace(/[^\u0000-\u0600]+/g, m => {
6767
if (/[\u0600-\u06ff]/.test(m)) m = "\\textarab{" + m + "}"
6868
else if (/[\u4E00-\u9FA5]/.test(m)) m = "\\cjkfont{" + m + "}"
6969
return `$<${m}>$`

0 commit comments

Comments
 (0)