aboutsummaryrefslogtreecommitdiff
path: root/tests/Tests/Readers/Docx.hs
AgeCommit message (Collapse)AuthorFilesLines
2014-07-29Docx reader: Make metavalues out of styled paragraphs.Jesse Rosenthal1-0/+15
This will make paragraphs styled with `Author`, `Title`, `Subtitle`, `Date`, and `Abstract` into pandoc metavalues, rather than text. The implementation only takes those elements from the beginning of the document (ignoring empty paragraphs). Multiple paragraphs in the `Author` style will be made into a metaList, one paragraph per item. Hard linebreaks (shift-return) in the paragraph will be maintained, and can be used for institution, email, etc.
2014-07-15Docx reader: Add testJesse Rosenthal1-0/+4
Test auto ident header anchors with pandoc-generated pandoc.
2014-06-29Docx reader: Add tests for hanging indent handline.Jesse Rosenthal1-0/+4
We want to treat it as a plain paragraph if the hanging amount is greater to or equal to the left indent---i.e., if the first line has zero indentation. But we still want it to be a block quote if it starts to the right of the margin. Someone might format verse with wrapping lines with a hanging indent, for example.
2014-06-25Track changes tests.Jesse Rosenthal1-4/+28
2014-06-25Docx reader: Add tests for basic track changesJesse Rosenthal1-0/+10
This is what seems like the sensible default: read in insertions, and ignore deletions. In the future, it would be good if options were available for either taking in deletions or keeping both in some scriptable format.
2014-06-24Docx Reader: add failing defintion list tests.Jesse Rosenthal1-0/+4
2014-06-24Docx reader: add failing tests for inline code and code blocks.Jesse Rosenthal1-0/+9
2014-06-23Add test for correctly trimming spaces in formatting.Jesse Rosenthal1-0/+4
This used to be fixed in the tree-walking. We need to make sure we're doing it right now.
2014-06-22Docx reader tests: add tests for normalization deep in blocks.Jesse Rosenthal1-0/+4
2014-06-22Add normalization test.Jesse Rosenthal1-0/+4
Add torture-test for new normalization functions. One problem that this test demonstrates is that word has a tendency to turn off formatting at a space, and then turn it back on after. I'm not sure yet whether this is something we should fix.
2014-06-20Docx reader tests: Introduce NoNormPandoc type.Jesse Rosenthal1-2/+27
This is just a wrapper around Pandoc that doesn't normalize with `toString`. We want to make sure that our own normalization process works. If, in the future, we are able to hook into the builder's normalization, this will be removed.
2014-06-19Add tabs tests.Jesse Rosenthal1-1/+6
2014-06-19Add ReaderOptions to the docx testsJesse Rosenthal1-8/+11
This will allow for testing different media embedding (in addition to any other applicable options.)
2014-06-16Naming: Use Docx instead of DocX.John MacFarlane1-0/+68
For consistency with the existing writer.