aboutsummaryrefslogtreecommitdiff
path: root/tests/Tests
diff options
context:
space:
mode:
authorJesse Rosenthal <jrosenthal@jhu.edu>2016-08-29 08:35:59 -0400
committerJesse Rosenthal <jrosenthal@jhu.edu>2016-08-29 08:35:59 -0400
commitfcbb37c8f3b28ae0889041030f37e7c730751bcd (patch)
treedfeef9f662f2da6c896b52601ed17d57b1905bd0 /tests/Tests
parent95734b2951e54f9e92f06df1deff79f5fe6f790a (diff)
downloadpandoc-fcbb37c8f3b28ae0889041030f37e7c730751bcd.tar.gz
Docx reader: test for nested anchor spans in header
This ensures that anchor spans in header with content (or with other anchor spans inside) will resolve to links to a header id properly.
Diffstat (limited to 'tests/Tests')
-rw-r--r--tests/Tests/Readers/Docx.hs4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/Tests/Readers/Docx.hs b/tests/Tests/Readers/Docx.hs
index a9a9094f1..8ae0532e4 100644
--- a/tests/Tests/Readers/Docx.hs
+++ b/tests/Tests/Readers/Docx.hs
@@ -182,6 +182,10 @@ tests = [ testGroup "inlines"
"docx/already_auto_ident.docx"
"docx/already_auto_ident.native"
, testCompare
+ "nested anchor spans in header"
+ "docx/nested_anchors_in_header.docx"
+ "docx/nested_anchors_in_header.native"
+ , testCompare
"single numbered item not made into list"
"docx/numbered_header.docx"
"docx/numbered_header.native"