Skip to content

Commit

Permalink
use escaped comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
Roms1383 committed Jun 13, 2024
1 parent e94e9e4 commit 74a5b59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -643,7 +643,7 @@ where
let check = if checked { "x" } else { " " };
write!(formatter, "[{}] ", check)
}
InlineMath(ref text) if text.contains('$') && (text.starts_with('`').not() && text.ends_with('`').not()) => {
InlineMath(ref text) if text.contains(r"\$") && (text.starts_with('`').not() && text.ends_with('`').not()) => {
write!(formatter, "$`{}`$", text)
}
InlineMath(ref text) => write!(formatter, "${}$", text),
Expand Down

0 comments on commit 74a5b59

Please sign in to comment.