aboutsummaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)AuthorFilesLines
2014-08-20Txt2Tags reader: Header is now parsed only if standalone flag is setmpickering3-2/+3
2014-08-16HTML reader: Parse appropriately styled span as SmallCaps.John MacFarlane2-0/+2
2014-08-16Docx reader: Test for character styles.Jesse Rosenthal3-0/+8
2014-08-14Markdown reader: Better handle quote characters in inline links.John MacFarlane2-2/+5
This was previously failing to be recognized as a link: [Test](http://en.wikipedia.org/wiki/Ward's_method) Closes #1534.
2014-08-14Make `raw_tex` extension non-default for textile reader, writer.John MacFarlane2-15/+0
Enable `raw_tex` extension in textile writer. Closes #1532.
2014-08-13Old tests: better path for test program.John MacFarlane1-2/+4
2014-08-13Make options work with test-pandoc.John MacFarlane1-4/+3
2014-08-13Revised tests directory.John MacFarlane81-83/+82
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-13Removed special testHook from Setup.John MacFarlane1-7/+12
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.
2014-08-12Merge pull request #1528 from mpickering/epubtitlepageJohn MacFarlane3-0/+11
EPUB Reader: Ignores titlepage attribute
2014-08-13EPUB Tests: Added wasteland testMatthew Pickering3-0/+11
This epub contains many epub:type elements including footnotes and titlepage.
2014-08-12HTML writer: use 'uri' or 'email' class for autolinks.John MacFarlane1-5/+5
This allows them to be styled specially. Closes #1501.
2014-08-12Added mathml tests for docbook reader.John MacFarlane2-0/+50
2014-08-12Markdown reader: Improved parsing of indented code in list items.John MacFarlane2-0/+25
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`.
2014-08-11Docx reader: combine inlines properly in dropcaps.Jesse Rosenthal1-2/+2
Make sure that adjacent inlines are combined properly in dropcaps. This updates the test results as well.
2014-08-11Docx: Add dropcap tests.Jesse Rosenthal3-4/+10
2014-08-11Merge pull request #1521 from jkr/emptyEmphJohn MacFarlane1-0/+0
Discard empty formatters
2014-08-11Docx reader test: Add an emphasized space to normalize test.Jesse Rosenthal1-0/+0
This should be ignored, so the output should be the same as the previous test.
2014-08-11Textile reader: list and HTML block parsing improvements.John MacFarlane2-6/+13
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.
2014-08-11Docx Parse: Updated testsMatthew Pickering2-1/+1
2014-08-10Improved EPUB TestsMatthew Pickering4-334/+40
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.
2014-08-10Removed OMath module, depend on texmath >= 0.8.John MacFarlane1-1/+1
2014-08-09Docx Tests: Updated for reading sym elementMatthew Pickering2-1/+1
2014-08-09Added test for sym elementMatthew Pickering2-1/+1
2014-08-09Updated EPUB testsMatthew Pickering1-10/+10
2014-08-08Merge branch 'newbranch' of https://github.com/mpickering/pandoc into ↵John MacFarlane1-1/+23
mpickering-newbranch Conflicts: src/Text/Pandoc/Readers/EPUB.hs
2014-08-08Plain writer: Use ALL CAPS for level 1 headers.John MacFarlane1-15/+15
2014-08-08Added tests for collapseFilePathMatthew Pickering1-1/+23
2014-08-08Markdown writer: Respect -raw_html.John MacFarlane1-1/+1
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.
2014-08-08Textile reader: fixed list parsing bug. Closes #1500.John MacFarlane2-0/+10
2014-08-07EPUB test renaming.John MacFarlane5-2/+2
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.
2014-08-07HTML reader: Really ignore DOCTYPE and xml declarations.John MacFarlane2-25/+0
This actually does what d71b013841f3c9c8c595591e312a31df16a728cb said it did. Revised epub tests to remove the repeated DOCTYPE and xml tags.
2014-08-07Merge pull request #1488 from mpickering/epubfixesJohn MacFarlane1-19/+19
EPUB Reader: Improved image extraction
2014-08-07EPUB tests: Updated test fileMatthew Pickering1-19/+19
2014-08-07Docx reader: Test inline image code.Jesse Rosenthal3-1/+7
2014-08-04Merge branch 'epubend' of https://github.com/mpickering/pandoc into ↵John MacFarlane5-1/+942
mpickering-epubend Conflicts: pandoc.cabal
2014-08-03Correctly implement capitalisation.Artyom Kazak2-0/+23
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.
2014-07-31Merge branch 'underline-option' of https://github.com/jkr/pandocJohn MacFarlane1-1/+1
2014-07-31Update docx test to interpret single underline as emph.Jesse Rosenthal1-1/+1
2014-07-31EPUB Reader: Added testsMatthew Pickering5-1/+942
2014-07-31Remove now unneeded JSON test file.Jesse Rosenthal1-1/+0
2014-07-31Docx tests: rewrite mediabag tests.Jesse Rosenthal5-21/+43
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 MacFarlane1-1/+1
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 MacFarlane1-2/+3
Shared now exports functions for interacting with a MediaBag: - `emptyMediaBag` - `lookuMedia` - `insertMedia` - `mediaDirectory` - `extractMediaBag`
2014-07-30Docx test: Test image from media bag.Jesse Rosenthal1-0/+7
2014-07-30Docx tests: Add test image.Jesse Rosenthal1-0/+0
This is the cow image extracted from `docx.image.docx`.
2014-07-30Docx tests: Added media test comparison function.Jesse Rosenthal1-0/+19
Also tell pandoc.cabal that we'll be needing base64, since we want to compare strings here.
2014-07-30Updated RTF writer tests.John MacFarlane1-2/+2
2014-07-30Docx reader: change tests to make use of media bag.Jesse Rosenthal2-2/+3
2014-07-29LaTeX writer: use \(..\) instead of $..$ for inline math.John MacFarlane2-7/+7
Closes #1464.