summaryrefslogtreecommitdiff
path: root/tests/Tests
Commit message (Collapse)AuthorAge
* Merge pull request #1746 from shelf/dw-ext-imagesMatthew Pickering2014-12-08
|\ | | | | DokuWiki writer: fix external images
| * DokuWiki writer: add external_images testTimothy Humphries2014-11-09
| | | | | | | | Add test for #1739.
* | parse RST class directivesDaniel Bergey2014-12-01
| | | | | | | | | | | | | | | | | | | | | | | | The class directive accepts one or more class names, and creates a Div value with those classes. If the directive has an indented body, the body is parsed as the children of the Div. If not, the first block folowing the directive is made a child of the Div. This differs from the behavior of rst2xml, which does not create a Div element. Instead, the specified classes are applied to each child of the directive. However, most Pandoc Block constructors to not take an Attr argument, so we can't duplicate this behavior.
* | parse RST quoted literal blocksDaniel Bergey2014-12-01
| | | | | | | | | | | | | | | | | | | | | | closes #65 RST quoted literal blocks are the same as indented literal blocks (which pandoc already supports) except that the quote character is preserved in each line. This includes test cases for the quoted literal block, as well as additional tests for line blocks and indented literal blocks, to verify that these are unaffected by the changes.
* | Fixed bug in org with bulleted lists:John MacFarlane2014-11-13
| | | | | | | | | | | | | | | | | | | | - a - b * c was being parsed as a list, even though an unindented `*` should make a heading. See <http://orgmode.org/manual/Plain-lists.html#fn-1>.
* | Merge pull request #1645 from neongreen/issue1636John MacFarlane2014-11-12
|\ \ | |/ |/| Fix 'Ext_lists_without_preceding_blankline' bug.
| * Fix 'Ext_lists_without_preceding_blankline' bug.Artyom2014-09-26
| | | | | | | | | | * Fixes #1636. * Adds a test.
* | Org reader: allow empty links for gitit interopAlbert Krewinkel2014-11-05
| | | | | | | | | | | | | | | | While empty links are not allowed in Emacs org-mode, Pandoc org-mode should support them: gitit relies on empty links as they are used to create wiki links. Fixes jgm/gitit#471
* | Org reader: absolute, relative paths in linksAlbert Krewinkel2014-11-05
| | | | | | | | | | | | | | | | | | The org reader was to restrictive when parsing links, some relative links and links to files given as absolute paths were not recognized correctly. The org reader's link parsing function was amended to handle such cases properly. This fixes #1741
* | TWiki Reader: add basic syntax testAlexander Sulfrian2014-10-30
| |
* | Docx test: Remove Danish header test.Jesse Rosenthal2014-10-25
| | | | | | | | | | Redundant, now that we're testing for a more generalized sort of internationalized blocks.
* | Docx reader: add tests for i18n headers.Jesse Rosenthal2014-10-25
| | | | | | | | | | This tests blockquotes and headers in Russian. Previous tests make sure that this doesn't produce a regression in en-us Header and Blockquotes.
* | Org reader: parse LaTeX-style MathML entitiesAlbert Krewinkel2014-10-20
| | | | | | | | | | | | | | | | | | Org supports special symbols which can be included using LaTeX syntax, but are actually MathML entities. Examples for this are `\nbsp` (non-breaking space), `\Aacute` (the letter A with accent acute) or `\copy` (the copyright sign ©). This fixes #1657.
* | Merge pull request #1680 from shelf/masterJohn MacFarlane2014-10-18
|\ \ | | | | | | Respect indent when parsing Org bullet lists
| * | Fix indent issue for definition listsTimothy Humphries2014-10-17
| | | | | | | | | | | | | | | Tidy up fix for #1650, #1698 as per comments in #1680. Fix same issue for definition lists with the same method.
| * | Respect indent when parsing Org bullet listsTimothy Humphries2014-10-12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes issue with top-level bullet list parsing. Previously we would use `many1 spaceChars` rather than respecting the list's indent level. We also permitted `*` bullets on unindented lists, which should unambiguously parse as `header 1`. Combined, this meant headers at a different indent level were being unwittingly slurped into preceding bullet lists, as per Issue #1650.
* | | Merge pull request #1700 from tarleb/org-emphasis-fixJohn MacFarlane2014-10-18
|\ \ \ | | | | | | | | Org reader: fix rules for emphasis recognition
| * | | Org reader: fix rules for emphasis recognitionAlbert Krewinkel2014-10-18
| |/ / | | | | | | | | | | | | | | | | | | | | | Things like `/hello,/` or `/hi'/` were falsy recognized as emphasised strings. This is wrong, as `,` and `'` are forbidden border chars and may not occur on the inner border of emphasized text. This patch enables the reader to matches the reference implementation in that it reads the above strings as plain text.
* / / Org reader: Drop COMMENT document treesAlbert Krewinkel2014-10-18
|/ / | | | | | | | | | | | | | | Document trees under a header starting with the word `COMMENT` are comment trees and should not be exported. Those trees are dropped silently. This closes #1678.
* | Merge pull request #1601 from jkr/windowsfixJohn MacFarlane2014-09-27
|\ \ | | | | | | Fix path-slashes inside archive for windows
| * | Docx reader: Modify mediabag test accordingly.Jesse Rosenthal2014-09-02
| | |
* | | Update tests for #1649Matthew Pickering2014-09-27
| | |
* | | EPUB Tests: Seperating image testing from other featuresmpickering2014-09-25
| | |
* | | Shared: Make collapseFilePath OS-agnosticmpickering2014-09-25
| |/ |/|
* | LaTeX writer: Test for protecting images in header.Jesse Rosenthal2014-09-09
| |
* | Docx reader: Add test for polyglot headers.Jesse Rosenthal2014-09-05
| | | | | | | | Only Danish at the moment.
* | Org reader: Update TestsJesse Rosenthal2014-09-04
| | | | | | | | Test for markup after blank line.
* | Docx Reader: Add tests for numbered headers.Jesse Rosenthal2014-09-04
|/
* Merge pull request #1594 from jkr/itemFixJohn MacFarlane2014-08-31
|\ | | | | Item fix
| * LaTeX writer: Add tests for header-in-item.Jesse Rosenthal2014-08-31
| |
* | Markdown reader: better handling of paragraph in div.John MacFarlane2014-08-31
|/ | | | | | | | | | | | | | | Previously text that ended a div would be parsed as Plain unless there was a blank line before the closing div tag. Test case: <div class="first"> This is a paragraph. This is another paragraph. </div> Closes #1591.
* Dokuwiki writer: Add a test for multiblock table cells.Jesse Rosenthal2014-08-30
| | | | | We have to add a new file, because the original table tests don't look for this.
* Txt2Tags reader: Header is now parsed only if standalone flag is setmpickering2014-08-20
|
* Docx reader: Test for character styles.Jesse Rosenthal2014-08-16
|
* Old tests: better path for test program.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.
* EPUB Tests: Added wasteland testMatthew Pickering2014-08-13
| | | | | This epub contains many epub:type elements including footnotes and titlepage.
* Docx: Add dropcap tests.Jesse Rosenthal2014-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.
* Added tests for collapseFilePathMatthew Pickering2014-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.
* 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.
* | 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
|