Skip to content

Commit 0280259

Browse files
committed
Escape emdashes in code
Since latex appears to, for some reason, reorder characters around them.
1 parent 2aebd55 commit 0280259

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)