summaryrefslogtreecommitdiff
path: root/tests/Tests/Old.hs
AgeCommit message (Collapse)Author
2017-02-04Moved tests/ -> test/.John MacFarlane
2017-01-26Split writeDocbook into writeDocbook4, writeDocbook5.John MacFarlane
Removed writerDocbookVersion in WriterOptions. Renamed default.docbook template to default.docbook4. Allow docbook4 as an output format. But alias docbook = docbook4.
2017-01-25Provide explicit separate functions for HTML 4 and 5.John MacFarlane
* Text.Pandoc.Writers.HTML: removed writeHtml, writeHtmlString, added writeHtml4, writeHtml4String, writeHtml5, writeHtml5String. * Removed writerHtml5 from WriterOptions. * Renamed default.html template to default.html4. * "html" now aliases to "html5"; to get the old HTML4 behavior, you must now specify "-t html4".
2017-01-25Made `smart` extension default for pandoc markdown.John MacFarlane
Updated tests.
2017-01-25Removed readerSmart and the --smart option; added Ext_smart extension.John MacFarlane
Now you will need to do -f markdown+smart instead of -f markdown --smart This change opens the way for writers, in addition to readers, to be sensitive to +smart, but this change hasn't yet been made. API change. Command-line option change. Updated manual.
2017-01-25Removed `--normalize` option and normalization functions from Shared.John MacFarlane
* Removed normalize, normalizeInlines, normalizeBlocks from Text.Pandoc.Shared. These shouldn't now be necessary, since normalization is handled automatically by the Builder monoid instance. * Remove `--normalize` command-line option. * Don't use normalize in tests. * A few revisions to readers so they work well without normalize.
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-25Added a `--quiet` option to suppress warnings.John MacFarlane
Use this also in Tests.Old.
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-07Fixed tests with dynamic linking.John MacFarlane
Closes #2709.
2016-06-30Added Zim Wiki writer, template and tests.Alex Ivkin
2016-04-29Add docbook5 writer supportIvo Clarysse
2016-04-10Markdown reader: Fix pandoc title blocks with lines ending in 2 spaces.John MacFarlane
Closes #2799. Also added -s to markdown-reader-more test.
2016-01-21Added old-style tests for TEI writer (tests/tables.tei, tests/writer.tei).John MacFarlane
2015-12-12Fixed tests.John MacFarlane
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-19Merge pull request #2458 from mb21/lang-inlinesJohn MacFarlane
LaTeX and ConTeXt writers: support lang attribute on divs and spans
2015-10-18Tests: Unset `pandoc-version` so we don't get the comment...John MacFarlane
in the man writer test. Otherwise this needs updating every version bump.
2015-10-18Added writers-lang-and-dir test, fixed ConTeXt writer testmb21
The writers-lang-and-dir testGroup tests LaTeX and ConTeXt writers' language and directionality output
2015-09-24Added proper support for DocBook 'xref' elementsFrerich Raabe
'xref' is used to create cross references to other parts of the document. It is an empty element - the cross reference text depends on various attributes. Quoting 'DocBook: The Definitive Guide': 1. If the endterm attribute is specified on xref, the content of the element pointed to by endterm will be used as the text of the cross-reference. 2. Otherwise, if the object pointed to has a specified XRefLabel, the content of that attribute will be used as the cross-reference text.
2015-02-18Update testsMatthew Pickering
2014-11-09DokuWiki writer: add external_images testTimothy Humphries
Add test for #1739.
2014-10-30TWiki Reader: add basic syntax testAlexander Sulfrian
2014-08-30Dokuwiki writer: Add a test for multiblock table cells.Jesse Rosenthal
We have to add a new file, because the original table tests don't look for this.
2014-08-20Txt2Tags reader: Header is now parsed only if standalone flag is setmpickering
2014-08-13Old tests: better path for test program.John MacFarlane
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-13Removed special testHook from Setup.John MacFarlane
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-13EPUB Tests: Added wasteland testMatthew Pickering
This epub contains many epub:type elements including footnotes and titlepage.
2014-08-07EPUB test renaming.John MacFarlane
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-07-31EPUB Reader: Added testsMatthew Pickering
2014-07-27Txt2Tags Reader: Added testsMatthew Pickering
2014-07-02DokuWiki writer: Add new test showing that span swallows content.Clare Macrae
2014-06-29Merge remote-tracking branch 'jgm/master' into dokuwikiClare Macrae
2014-06-18Added haddock writer tests.John MacFarlane
2014-02-28InDesign ICML Writermb21
2013-10-20Pass the buildDir as first argument to test suite.John MacFarlane
Allows test suite to work with cabal sandboxes. Previously we hard-coded the build directory.
2013-08-26Added markdown citation parsing test.John MacFarlane
2013-08-24Removed dependency on citeproc-hs.John MacFarlane
Going forward we'll use pandoc-citeproc, as an external filter. The `--bibliography`, `--csl`, and `--citation-abbreviation` fields have been removed. Instead one must include `bibliography`, `csl`, or `csl-abbrevs` fields in the document's YAML metadata. The filter can then be used as follows: pandoc --filter pandoc-citeproc The `Text.Pandoc.Biblio` module has been removed. Henceforth, `Text.CSL.Pandoc` from pandoc-citations can be used by library users. The Markdown and LaTeX readers now longer format bibliographies and citations. That must be done using `processCites` or `processCites'` from Text.CSL.Pandoc. All bibliography-related fields have been removed from `ReaderOptions` and `WriterOptions`: `writerBiblioFiles`, `readerReferences`, `readerCitationStyle`. API change.
2013-08-20Create Cite element even if no matching reference in the biblio.John MacFarlane
* Add ??? as fallback text for non-resolved citations. * Biblio: Put references (including a header at the end of the document, if one exists) inside a Div with class "references". This gives some control over styling of references, and allows scripts to manipulate them. * Markdown writer: Print markdown citation codes, and disable printing of references, if `citations` extension is enabled. NOTE: It would be good to improve what citeproc-hs does for a nonexistent key.
2013-08-17Add extra pair of test files for dokuwiki writer (#386)claremacrae
I've found some incorrect behaviours with the dokuwiki output, for which extra test cases will be needed - that aren't covered by the standard pandoc test input files.
2013-07-14Initial work to create dokuwiki writer (#386)Clare Macrae
In this first version, all dokuwiki files are straight copies of the media wiki counterparts.
2013-03-28Added stubs for haddock reader tests.John MacFarlane
Modify tests/haddock-reader.haddock and tests/haddock-reader.native.
2013-03-20Added OPML template, tests.John MacFarlane
Minor fixes to OPML writer. Improved OPML reader tests.
2013-03-19Added Text.Pandoc.Readers.OPML, exporting readOPML.John MacFarlane
The _note attribute is supported. This is unofficial, but used e.g. in OmniOutliner and supported by multimarkdown. We treat the contents as markdown blocks under a section header. Added to documentation and tests.
2013-03-17Markdown writer: New approach for citations.John MacFarlane
* Reverts 1.11 change that caused citations to be rendered as markdown citations, even if `--biblio` was specified, unless `citation` extension is disabled. Now, formatted citations are always printed if `--biblio` was specified. If you want to reformat markdown keeping pandoc markdown citations intact, just don't specify `--biblio`. * Reverted now unnecessary changes to Text.Pandoc.Biblio adding the raw block to mark the bibliography, and to Text.Pandoc.Writers.Markdown to remove the bibliography if `citations` not specified. * If the content of a `Cite` inline is a `RawInline "latex"`, which means that a LaTeX citation command was parsed and `--biblio` wasn't specified, then render it as a pandoc markdown citation. This means that `pandoc -f latex -t markdown`, without `--biblio`, will convert LaTeX citation commands to pandoc markdown citations.
2013-03-17Revert "LaTeX reader: citation handling changes."John MacFarlane
This reverts commit f7229b147314042f946dfded3b441ab0fae260a0.