Skip to content

Commit 5bf964e

Browse files
Add latex fix for question mark over equals
1 parent 76b1356 commit 5bf964e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/data/serialize.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,8 @@ function latexFix(latex: string) {
6464
.replace(/\\lim_/g, '\\lim\\limits_')
6565
.replace(/\\int_{ }\^{ }(?=[A-Za-z])/g, '\\int ')
6666
.replace(/\\int_{ }\^{ }(?![A-Za-z])/g, '\\int')
67-
.replace(/\\mid_/g, '\\bigg\\rvert_');
67+
.replace(/\\mid_/g, '\\bigg\\rvert_')
68+
.replace(/(=|<|>|\\ne|\\ge|\\le)\^\?/g, '\\stackrel{?}{$1}');
6869
}
6970

7071
function documentToMarkdown(

0 commit comments

Comments
 (0)