mirror of
https://github.com/jgm/pandoc.git
synced 2026-08-22 00:06:48 +00:00
Docx reader: tests for removing unused anchors.
This commit is contained in:
@@ -175,6 +175,10 @@ tests = [ testGroup "inlines"
|
||||
"inlines inside of Structured Document Tags"
|
||||
"docx/sdt_elements.docx"
|
||||
"docx/sdt_elements.native"
|
||||
, testCompare
|
||||
"remove anchor spans with nothing pointing to them"
|
||||
"docx/unused_anchors.docx"
|
||||
"docx/unused_anchors.native"
|
||||
]
|
||||
, testGroup "blocks"
|
||||
[ testCompare
|
||||
|
||||
Binary file not shown.
@@ -0,0 +1,3 @@
|
||||
[Header 1 ("my-section",[],[]) [Str "My",Space,Str "Section"]
|
||||
,Para [Link ("",[],[]) [Str "Here",Space,Str "is",Space,Str "a",Space,Str "link."] ("#Bar","")]
|
||||
,Para [Span ("Bar",["anchor"],[]) [],Str "Here",Space,Str "is",Space,Str "the",Space,Str "target."]]
|
||||
Reference in New Issue
Block a user