diff options
author | John MacFarlane <jgm@berkeley.edu> | 2014-04-05 15:12:40 -0700 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2014-04-05 15:12:40 -0700 |
commit | 971dca588eea698c3a59a4da147180c138b16365 (patch) | |
tree | 7e279c164119e881c6f859171bb351fc54a4add8 /tests | |
parent | c0309a60bc48e347e4b9d621ee38b84a98d0c187 (diff) | |
parent | 652c781e375f3678a0ec821663240d4958f324de (diff) | |
download | pandoc-971dca588eea698c3a59a4da147180c138b16365.tar.gz |
Merge pull request #1219 from tarleb/org-images
Org-reader: support inline images, clean-up code, fix bugs
Diffstat (limited to 'tests')
-rw-r--r-- | tests/Tests/Readers/Org.hs | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/tests/Tests/Readers/Org.hs b/tests/Tests/Readers/Org.hs index 8c5982302..1088d6611 100644 --- a/tests/Tests/Readers/Org.hs +++ b/tests/Tests/Readers/Org.hs @@ -42,6 +42,10 @@ tests = "*Cider*" =?> para (strong "Cider") + , "Strong Emphasis" =: + "/*strength*/" =?> + para (emph . strong $ "strength") + , "Strikeout" =: "+Kill Bill+" =?> para (strikeout . spcSep $ [ "Kill", "Bill" ]) @@ -90,14 +94,22 @@ tests = , (strong ("is" <> space <> "not")) , "emph/" ]) + , "Image" =: + "[[./sunset.jpg]]" =?> + (para $ image "./sunset.jpg" "" "") + , "Explicit link" =: - "[[http://zeitlens.com/][pseudo-random nonsense]]" =?> + "[[http://zeitlens.com/][pseudo-random /nonsense/]]" =?> (para $ link "http://zeitlens.com/" "" - ("pseudo-random" <> space <> "nonsense")) + ("pseudo-random" <> space <> emph "nonsense")) , "Self-link" =: "[[http://zeitlens.com/]]" =?> (para $ link "http://zeitlens.com/" "" "http://zeitlens.com/") + + , "Image link" =: + "[[sunset.png][dusk.svg]]" =?> + (para $ link "sunset.png" "" (image "dusk.svg" "" "")) ] , testGroup "Meta Information" $ |