diff options
author | John MacFarlane <jgm@berkeley.edu> | 2019-06-10 15:02:48 -0700 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2019-06-10 15:02:48 -0700 |
commit | 3febd81cbcadf7d36fd4686a5d323b31c44adf3a (patch) | |
tree | 21c5f5dc94417fafefbcbb31e633f4d29037f800 /test | |
parent | 59529e408b87274fb8e0375fa198a6636cb67a11 (diff) | |
download | pandoc-3febd81cbcadf7d36fd4686a5d323b31c44adf3a.tar.gz |
LaTeX writer: Use mbox to get proper behavior inside `\sout`.
Closes #5529.
Diffstat (limited to 'test')
-rw-r--r-- | test/Tests/Writers/LaTeX.hs | 2 | ||||
-rw-r--r-- | test/command/5529.md | 10 |
2 files changed, 11 insertions, 1 deletions
diff --git a/test/Tests/Writers/LaTeX.hs b/test/Tests/Writers/LaTeX.hs index 00150022f..4bf25fb1c 100644 --- a/test/Tests/Writers/LaTeX.hs +++ b/test/Tests/Writers/LaTeX.hs @@ -81,7 +81,7 @@ tests = [ testGroup "code blocks" , "struck out and not highlighted" =: strikeout (code "foo" <> space <> str "bar") =?> - "\\sout{\\texttt{foo} bar}" + "\\sout{\\mbox{\\texttt{foo}} bar}" , "single quotes" =: code "dog's" =?> "\\texttt{dog\\textquotesingle{}s}" , "backtick" =: diff --git a/test/command/5529.md b/test/command/5529.md new file mode 100644 index 000000000..fcecd9b1f --- /dev/null +++ b/test/command/5529.md @@ -0,0 +1,10 @@ +``` +% pandoc -t latex +~~`hello world`~~ + +~~_`hello world`_~~ +^D +\sout{\mbox{\texttt{hello\ world}}} + +\sout{\emph{\mbox{\texttt{hello\ world}}}} +``` |