git.iko.soy/typeable/pandoc
on master help sign in
Fix parsing of `\'` in man/ms readers.

It was being parsed as a backtick. Closes #6175.

commit4faac2bf9b796cc3e04d0fcbfee6a5d2b0f0fe6d authorJohn MacFarlane <jgm@berkeley.edu> dateThu 5 Mar 2020, 19:29 (7 years ago) parent4eb0c1e
1 file changed+1−1
src/Text/Pandoc/Readers/Roff.hs+1−1
src/Text/Pandoc/Readers/Roff.hs+1−1
@@ -226,7 +226,7 @@ escapeNormal = do
226226 'X' -> escIgnore 'X' [quoteArg]
227227 'Y' -> escIgnore 'Y' [escapeArg, countChar 1 (satisfy (/='\n'))]
228228 'Z' -> escIgnore 'Z' [quoteArg]
229− '\'' -> return [RoffStr "`"]
229+ '\'' -> return [RoffStr "'"]
230230 '\n' -> return mempty -- line continuation
231231 '^' -> return [RoffStr "\x200A"] -- 1/12 em space
232232 '_' -> return [RoffStr "_"]