Skip to content

Commit

Permalink
comment out regex
Browse files Browse the repository at this point in the history
clashes with multiple indices in latex
  • Loading branch information
PandorasActorMS committed Jan 7, 2025
1 parent 88d2cc3 commit 84a5e66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion public/js/syntax_modifier.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@

// Replace only italic (*text* or _text_)
text = text.replace(/\*(.*?)\*/g, '<i>$1</i>');
text = text.replace(/_(.*?)_/g, '<i>$1</i>');
//text = text.replace(/_(.*?)_/g, '<i>$1</i>'); //clashes with latex

// Replace Strikethrough
text = text.replace(/~~(.*?)~~/g, '<del>$1</del>');
Expand Down

0 comments on commit 84a5e66

Please sign in to comment.