summaryrefslogtreecommitdiff
path: root/tests/Tests/Readers/Docx.hs
AgeCommit message (Collapse)Author
2017-02-04Moved tests/ -> test/.John MacFarlane
2017-01-30Fixed some compiler warnings in tests.John MacFarlane
2017-01-25Removed readerVerbosity and writerVerbosity.John MacFarlane
API change. Also added a verbosity parameter to makePDF.
2017-01-25Removed unneeded imports.John MacFarlane
2017-01-25Made `smart` extension default for pandoc markdown.John MacFarlane
Updated tests.
2017-01-25Added ReaderOptions parameter to readNative.John MacFarlane
This makes it similar to the other readers -- even though ReaderOptions is essentially ignored, the uniformity is nice.
2017-01-25Update all tests to use new readers and error structure.Jesse Rosenthal
2017-01-25Changed readNative to use PandocMonad.John MacFarlane
2017-01-25Update tests to work with runPure.John MacFarlane
2016-12-08Docx reader: Ensure one-row tables don't have header.Jesse Rosenthal
Tables in MS Word are set by default to have special first-row formatting, which pandoc uses to determine whether or not they have a header. This means that one-row tables will, by default, have only a header -- which we imagine is not what people want. This change ensures that a one-row table is not understood to be a header only. Note that this means that it is impossible to produce a header-only table from docx, even though it is legal pandoc. But we believe that in nearly all cases, it will be an accidental (and unwelcome) result Closes #3285.
2016-11-30Options: Removed writerStandalone, made writerTemplate a Maybe.John MacFarlane
Previously setting writerStandalone = True did nothing unless a template was provided in writerTemplate. Now a fragment will be generated if writerTemplate is Nothing; otherwise, the specified template will be used and standalone output generated. [API change]
2016-08-29Docx reader: test for nested anchor spans in headerJesse Rosenthal
This ensures that anchor spans in header with content (or with other anchor spans inside) will resolve to links to a header id properly.
2016-06-23Docx reader: add tests for commentsJesse Rosenthal
We test for comments, using all track-changes options. Note that we should only output comments if `--track-changes=all`. We also test for emitting warnings if there is complicated formatting.
2016-06-23Docx reader tests: Add tests for warnings.Jesse Rosenthal
We test to see if we emit any warnings.
2016-04-16Docx Reader: Tests for track-changes movingJesse Rosenthal
2016-03-16Docx reader: Add test for enumerated headers.Jesse Rosenthal
We don't want them to turn into a list.
2016-02-02Docx reader: Add tests for adjacent hyperlinks.Jesse Rosenthal
2015-11-18Docx reader: Add test cases for dummy list items.Jesse Rosenthal
2015-11-14Added test case for links in notes.Jesse Rosenthal
2015-11-09Revert "Use -XNoImplicitPrelude and 'import Prelude' explicitly."John MacFarlane
This reverts commit c423dbb5a34c2d1195020e0f0ca3aae883d0749b.
2015-11-08Use -XNoImplicitPrelude and 'import Prelude' explicitly.John MacFarlane
This is needed for ghci to work with pandoc, given that we now use a custom prelude. Closes #2503.
2015-10-04Docx Reader: Create special punctuation testOphir Lifshitz
2015-03-28Merge branch 'errortype' of https://github.com/mpickering/pandoc into ↵John MacFarlane
mpickering-errortype Conflicts: benchmark/benchmark-pandoc.hs src/Text/Pandoc/Readers/Markdown.hs src/Text/Pandoc/Readers/Org.hs src/Text/Pandoc/Readers/RST.hs tests/Tests/Readers/LaTeX.hs
2015-02-21Docx reader: add test for verbatim in sub/superscript.Jesse Rosenthal
2015-02-19Docx reader: Add tests for new list style parsing.Jesse Rosenthal
2015-02-18Update testsMatthew Pickering
2015-02-13Docx reader: test lists in table cells.Jesse Rosenthal
2015-01-21Docx Reader: Add test for VML images.Jesse Rosenthal
Since images are often visually (not structurally) placed on the page, people might not always get the results they're looking for here.
2014-10-25Docx test: Remove Danish header test.Jesse Rosenthal
Redundant, now that we're testing for a more generalized sort of internationalized blocks.
2014-10-25Docx reader: add tests for i18n headers.Jesse Rosenthal
This tests blockquotes and headers in Russian. Previous tests make sure that this doesn't produce a regression in en-us Header and Blockquotes.
2014-09-27Merge pull request #1601 from jkr/windowsfixJohn MacFarlane
Fix path-slashes inside archive for windows
2014-09-05Docx reader: Add test for polyglot headers.Jesse Rosenthal
Only Danish at the moment.
2014-09-04Docx Reader: Add tests for numbered headers.Jesse Rosenthal
2014-09-02Docx reader: Modify mediabag test accordingly.Jesse Rosenthal
2014-08-16Docx reader: Test for character styles.Jesse Rosenthal
2014-08-13Revised tests directory.John MacFarlane
Renamed some tests, introducing subsidiary directories for fb2, docx, epub. Cleaned up tests in cabal file. Combined dokuwiki-writer and dokuwiki_inline_formatting tests.
2014-08-11Docx: Add dropcap tests.Jesse Rosenthal
2014-08-07Docx reader: Test inline image code.Jesse Rosenthal
2014-07-31Docx tests: rewrite mediabag tests.Jesse Rosenthal
This will allow us to test the whole mediabag (making sure, for example, that images are added with the correct keys) instead of just individual extracted images. We compare each entry in the media bag to an image extracted on the fly from the docx. As a result, we only need one file to test with. The image in the current tests was also replaced with a smaller one.
2014-07-31New module, Text.Pandoc.MediaBag.John MacFarlane
Moved `MediaBag` definition and functions from Shared: `lookupMedia`, `mediaDirectory`, `insertMedia`, `extractMediaBag`. Removed `emptyMediaBag`; use `mempty` instead, since `MediaBag` is a Monoid.
2014-07-31Made MediaBag a newtype, and added mime type information to media.John MacFarlane
Shared now exports functions for interacting with a MediaBag: - `emptyMediaBag` - `lookuMedia` - `insertMedia` - `mediaDirectory` - `extractMediaBag`
2014-07-30Docx test: Test image from media bag.Jesse Rosenthal
2014-07-30Docx tests: Added media test comparison function.Jesse Rosenthal
Also tell pandoc.cabal that we'll be needing base64, since we want to compare strings here.
2014-07-30Docx reader: change tests to make use of media bag.Jesse Rosenthal
2014-07-29Add and update docx tests in pandoc.cabal.Jesse Rosenthal
2014-07-29Docx reader: Make metavalues out of styled paragraphs.Jesse Rosenthal
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 Rosenthal
Test auto ident header anchors with pandoc-generated pandoc.
2014-06-29Docx reader: Add tests for hanging indent handline.Jesse Rosenthal
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 Rosenthal
2014-06-25Docx reader: Add tests for basic track changesJesse Rosenthal
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.