diff options
author | Albert Krewinkel <albert@zeitkraut.de> | 2016-01-31 19:44:45 +0100 |
---|---|---|
committer | Albert Krewinkel <albert@zeitkraut.de> | 2016-01-31 23:23:09 +0100 |
commit | 92e6ae47f6cf8e0753d282dcc9020f88044d6101 (patch) | |
tree | 224b63c06f561785f6286443cc7cdd4434c8090c /tests/Tests/Readers | |
parent | a02c26d9f46aceda695bd357cdcd85d705aaf14c (diff) | |
download | pandoc-92e6ae47f6cf8e0753d282dcc9020f88044d6101.tar.gz |
Org reader: Refactor link-target processing
Cleanup of the code for link target handling. Most notably, the
canonicalization of a link is handled by a separate function.
This fixes #2684.
Diffstat (limited to 'tests/Tests/Readers')
-rw-r--r-- | tests/Tests/Readers/Org.hs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/Tests/Readers/Org.hs b/tests/Tests/Readers/Org.hs index bb3bffe22..8e255160f 100644 --- a/tests/Tests/Readers/Org.hs +++ b/tests/Tests/Readers/Org.hs @@ -190,6 +190,10 @@ tests = "[[./sunset.jpg]]" =?> (para $ image "./sunset.jpg" "" "") + , "Image with explicit file: prefix" =: + "[[file:sunrise.jpg]]" =?> + (para $ image "sunrise.jpg" "" "") + , "Explicit link" =: "[[http://zeitlens.com/][pseudo-random /nonsense/]]" =?> (para $ link "http://zeitlens.com/" "" |