git.iko.soy/typeable/pandoc
on master help sign in
Docx reader: add test for verbatim in sub/superscript.
9654514Jesse Rosenthal
tests/Tests/Readers/Docx.hs+4
@@ -145,6 +145,10 @@ tests = [ testGroup "inlines"
145 "inline code (with VerbatimChar style)"
145 "inline code (with VerbatimChar style)"
146 "docx/inline_code.docx"
146 "docx/inline_code.docx"
147 "docx/inline_code.native"
147 "docx/inline_code.native"
148+ , testCompare
149+ "inline code in subscript and superscript"
150+ "docx/verbatim_subsuper.docx"
151+ "docx/verbatim_subsuper.native"
148 ]
152 ]
149 , testGroup "blocks"
153 , testGroup "blocks"
150 [ testCompare
154 [ testCompare
tests/docx/verbatim_subsuper.docxnew file

Binary file not shown.

tests/docx/verbatim_subsuper.nativenew file+8
@@ -0,0 +1,8 @@
1+[Para [Str "m",Superscript [Str "2"]]
2+,Para [Str "m",Superscript [Code ("",[],[]) "2"]]
3+,Para [Code ("",[],[]) "m",Superscript [Str "2"]]
4+,Para [Code ("",[],[]) "m",Superscript [Code ("",[],[]) "2"]]
5+,Para [Str "m",Subscript [Str "2"]]
6+,Para [Str "m",Subscript [Code ("",[],[]) "2"]]
7+,Para [Code ("",[],[]) "m",Subscript [Str "2"]]
8+,Para [Code ("",[],[]) "m",Subscript [Code ("",[],[]) "2"]]]