git.iko.soy/typeable/pandoc
on master help sign in
Docx reader: Add test
643435fJesse Rosenthal
pandoc.cabal+2
@@ -188,6 +188,8 @@ Extra-Source-Files:
188 tests/fb2.math.fb2,
188 tests/fb2.math.fb2,
189 tests/fb2.test-small.png,
189 tests/fb2.test-small.png,
190 tests/fb2.test.jpg,
190 tests/fb2.test.jpg,
191+ tests/docx.already_auto_ident.native,
192+ tests/docx.already_auto_ident.docx,
191 tests/docx.block_quotes.docx,
193 tests/docx.block_quotes.docx,
192 tests/docx.block_quotes_parse_indent.native,
194 tests/docx.block_quotes_parse_indent.native,
193 tests/docx.headers.docx,
195 tests/docx.headers.docx,
tests/Tests/Readers/Docx.hs+4
@@ -96,6 +96,10 @@ tests = [ testGroup "inlines"
96 "headers"
96 "headers"
97 "docx.headers.docx"
97 "docx.headers.docx"
98 "docx.headers.native"
98 "docx.headers.native"
99+ , testCompare
100+ "headers already having auto identifiers"
101+ "docx.already_auto_ident.docx"
102+ "docx.already_auto_ident.native"
99 , testCompare
103 , testCompare
100 "lists"
104 "lists"
101 "docx.lists.docx"
105 "docx.lists.docx"
tests/docx.already_auto_ident.docxnew file

Binary file not shown.

tests/docx.already_auto_ident.nativenew file+2
@@ -0,0 +1,2 @@
1+[Header 1 ("anchor-header",[],[]) [Str "Anchor",Space,Str "Header"]
2+,Para [Str "A",Space,Link [Str "link"] ("#anchor-header","")]]