summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAge
* Make options work with test-pandoc.John MacFarlane2014-08-13
|
* Revised tests directory.John MacFarlane2014-08-13
| | | | | | | | | Renamed some tests, introducing subsidiary directories for fb2, docx, epub. Cleaned up tests in cabal file. Combined dokuwiki-writer and dokuwiki_inline_formatting tests.
* Removed special testHook from Setup.John MacFarlane2014-08-13
| | | | | | | | | This was just too fragile and dependent on a changing Cabal API (see #1526). Instead of passing the bulid directory to the test program, we now let the test program find itself (using executable-path) and then find the pandoc executable relative to itself.
* Merge pull request #1528 from mpickering/epubtitlepageJohn MacFarlane2014-08-12
|\ | | | | EPUB Reader: Ignores titlepage attribute
| * EPUB Tests: Added wasteland testMatthew Pickering2014-08-13
| | | | | | | | | | This epub contains many epub:type elements including footnotes and titlepage.
* | HTML writer: use 'uri' or 'email' class for autolinks.John MacFarlane2014-08-12
| | | | | | | | | | | | This allows them to be styled specially. Closes #1501.
* | Added mathml tests for docbook reader.John MacFarlane2014-08-12
| |
* | Markdown reader: Improved parsing of indented code in list items.John MacFarlane2014-08-12
|/ | | | | | | | Indented code at the beginning of a list item must be indented eight spaces from the margin (or from the edge of the container), or four spaces past the list marker, whichever is farther. Some examples in `tests/markdown-reader-more.txt`.
* Docx reader: combine inlines properly in dropcaps.Jesse Rosenthal2014-08-11
| | | | | Make sure that adjacent inlines are combined properly in dropcaps. This updates the test results as well.
* Docx: Add dropcap tests.Jesse Rosenthal2014-08-11
|
* Merge pull request #1521 from jkr/emptyEmphJohn MacFarlane2014-08-11
|\ | | | | Discard empty formatters
| * Docx reader test: Add an emphasized space to normalize test.Jesse Rosenthal2014-08-11
| | | | | | | | | | This should be ignored, so the output should be the same as the previous test.
* | Textile reader: list and HTML block parsing improvements.John MacFarlane2014-08-11
|/ | | | | | | | Closes #1513. Lists can now start without an intervening blank line. Also, html block-level tags that don't start a line are parsed as RawInline and don't interrupt paragraphs, as in RedCloth.
* Docx Parse: Updated testsMatthew Pickering2014-08-11
|
* Improved EPUB TestsMatthew Pickering2014-08-10
| | | | | | | | | | | | | Rewrote features test to remove all unimplemented features. There are now all three examples of where an image can be included in the test. 1. Cover image 2. As a spine elemnt 3. In the document Tests have also been added to make sure that the mediabag contains all these images after processing.
* Removed OMath module, depend on texmath >= 0.8.John MacFarlane2014-08-10
|
* Docx Tests: Updated for reading sym elementMatthew Pickering2014-08-09
|
* Added test for sym elementMatthew Pickering2014-08-09
|
* Updated EPUB testsMatthew Pickering2014-08-09
|
* Merge branch 'newbranch' of https://github.com/mpickering/pandoc into ↵John MacFarlane2014-08-08
|\ | | | | | | | | | | | | mpickering-newbranch Conflicts: src/Text/Pandoc/Readers/EPUB.hs
| * Added tests for collapseFilePathMatthew Pickering2014-08-08
| |
* | Plain writer: Use ALL CAPS for level 1 headers.John MacFarlane2014-08-08
|/
* Markdown writer: Respect -raw_html.John MacFarlane2014-08-08
| | | | | | | pandoc -t markdown-raw_html should not emit any raw HTML, even span and div tags that go with pandoc Span and Div elements. Cleaned up a bit of the logic with extensions and plain.
* Textile reader: fixed list parsing bug. Closes #1500.John MacFarlane2014-08-08
|
* EPUB test renaming.John MacFarlane2014-08-07
| | | | | | | | | Renamed epub test files so they're identified more clearly as epub: features.{epub,native} -> epub.features.{epub,native}, and similarly with formatting.{epub,native}. Added epub test files to cabal file, so they'll be included in the tarball.
* HTML reader: Really ignore DOCTYPE and xml declarations.John MacFarlane2014-08-07
| | | | | | | This actually does what d71b013841f3c9c8c595591e312a31df16a728cb said it did. Revised epub tests to remove the repeated DOCTYPE and xml tags.
* Merge pull request #1488 from mpickering/epubfixesJohn MacFarlane2014-08-07
|\ | | | | EPUB Reader: Improved image extraction
| * EPUB tests: Updated test fileMatthew Pickering2014-08-07
| |
* | Docx reader: Test inline image code.Jesse Rosenthal2014-08-07
|/
* Merge branch 'epubend' of https://github.com/mpickering/pandoc into ↵John MacFarlane2014-08-04
|\ | | | | | | | | | | | | mpickering-epubend Conflicts: pandoc.cabal
| * EPUB Reader: Added testsMatthew Pickering2014-07-31
| |
* | Correctly implement capitalisation.Artyom Kazak2014-08-03
| | | | | | | | | | | | | | | | Using `map toUpper` to capitalise text is wrong, as e.g. “Straße” should be converted to “STRASSE”, which is 1 character longer. This commit adds a `capitalize` function and replaces 2 identical implementations in different modules (`toCaps` and `capitalize`) with it.
* | Merge branch 'underline-option' of https://github.com/jkr/pandocJohn MacFarlane2014-07-31
|\ \
| * | Update docx test to interpret single underline as emph.Jesse Rosenthal2014-07-31
| |/
* | Remove now unneeded JSON test file.Jesse Rosenthal2014-07-31
| |
* | Docx tests: rewrite mediabag tests.Jesse Rosenthal2014-07-31
|/ | | | | | | | | | 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.
* New module, Text.Pandoc.MediaBag.John MacFarlane2014-07-31
| | | | | | | Moved `MediaBag` definition and functions from Shared: `lookupMedia`, `mediaDirectory`, `insertMedia`, `extractMediaBag`. Removed `emptyMediaBag`; use `mempty` instead, since `MediaBag` is a Monoid.
* Made MediaBag a newtype, and added mime type information to media.John MacFarlane2014-07-31
| | | | | | | | | | Shared now exports functions for interacting with a MediaBag: - `emptyMediaBag` - `lookuMedia` - `insertMedia` - `mediaDirectory` - `extractMediaBag`
* Docx test: Test image from media bag.Jesse Rosenthal2014-07-30
|
* Docx tests: Add test image.Jesse Rosenthal2014-07-30
| | | | This is the cow image extracted from `docx.image.docx`.
* Docx tests: Added media test comparison function.Jesse Rosenthal2014-07-30
| | | | | Also tell pandoc.cabal that we'll be needing base64, since we want to compare strings here.
* Updated RTF writer tests.John MacFarlane2014-07-30
|
* Docx reader: change tests to make use of media bag.Jesse Rosenthal2014-07-30
|
* LaTeX writer: use \(..\) instead of $..$ for inline math.John MacFarlane2014-07-29
| | | | Closes #1464.
* Merge pull request #1463 from jkr/metadataJohn MacFarlane2014-07-29
|\ | | | | Make metadata out of styled pars
| * Add and update docx tests in pandoc.cabal.Jesse Rosenthal2014-07-29
| |
| * Docx reader: Make metavalues out of styled paragraphs.Jesse Rosenthal2014-07-29
| | | | | | | | | | | | | | | | | | | | | | 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.
* | Markdown writer: More improvements to 'plain' output, updated tests.John MacFarlane2014-07-27
|/ | | | | | | | | Math now appears in unicode if possible, without the distracting italics around identifiers. Blank lines around headers are more consistent. Footnotes appear in regular [n] style.
* Txt2Tags Reader: Added testsMatthew Pickering2014-07-27
|
* Fixed runtime error with compactify'DL on certain lists.John MacFarlane2014-07-25
| | | | Closes #1452. Added test.