diff options
author | John MacFarlane <jgm@berkeley.edu> | 2012-09-22 13:00:59 -0700 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2012-09-22 13:00:59 -0700 |
commit | 1038606036a800b8edfd54f96cb8841bf7998872 (patch) | |
tree | c4e701efdce447cff269b35ec428e8f0932bddcd /tests | |
parent | 93c35cbf148dff486c9ccc88c5e78cce55538ffd (diff) | |
download | pandoc-1038606036a800b8edfd54f96cb8841bf7998872.tar.gz |
LaTeX reader: Added a 'try' in rawLaTeXBlock.
This allows the markdown reader to treat '\begin' (not followed
by an argument) as a raw string rather than erroring out when
it doesn't find a '{'.
Closes #622.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/Tests/Readers/Markdown.hs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/Tests/Readers/Markdown.hs b/tests/Tests/Readers/Markdown.hs index 8d0b567e9..9a79f12f4 100644 --- a/tests/Tests/Readers/Markdown.hs +++ b/tests/Tests/Readers/Markdown.hs @@ -44,6 +44,10 @@ tests = [ testGroup "inline code" "`*` {.haskell .special x=\"7\"}" =?> para (codeWith ("",["haskell","special"],[("x","7")]) "*") ] + , testGroup "raw LaTeX" + [ "in URL" =: + "\\begin\n" =?> para (text "\\begin") + ] , testGroup "backslash escapes" [ "in URL" =: "[hi](/there\\))" |