Skip to content

Commit

Permalink
Fix escape char condition
Browse files Browse the repository at this point in the history
  • Loading branch information
thetarnav committed Feb 25, 2024
1 parent 378df63 commit 693cc7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mds.js
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ export function write(s, chunk) {
/*
Escape character
*/
if (in_token & CODE &&
if (in_token ^ CODE &&
last_txt_char === '\\' &&
last_last_src_char !== '\\' &&
('\\' === char || '*' === char || '_' === char || '`' === char)
Expand Down

0 comments on commit 693cc7c

Please sign in to comment.