aboutsummaryrefslogtreecommitdiff
path: root/test/Tests/Writers
AgeCommit message (Collapse)AuthorFilesLines
2018-01-19hlint code improvements.John MacFarlane8-37/+34
2018-01-19in RST writer insert comment between lists and quotes, closes #4248danse1-0/+10
2018-01-19Muse writer: support definitions with multiple descriptionsAlexander Krotov1-2/+11
Muse reader does not support this syntax yet, but Emacs Muse parses it correctly.
2018-01-15ConTeXt writer: Use xtables instead of Tables (#4223)Henri Menke1-0/+55
- Default to xtables for context output. - Added `ntb` extension (affecting context writer only) to use Natural Tables instead. - Added `Ext_ntb` constructor to `Extension` (API change).
2018-01-03Powerpoint writer: Set default slidelevel correctly.Jesse Rosenthal1-1/+1
We had previously defaulted to slideLevel 2. Now we use the correct behavior of defaulting to the highest level header followed by content. We change an expected test result to match this behavior.
2017-12-29Powerpoint Writer tests: Add quickcheck tests for content types.Jesse Rosenthal1-14/+77
We want to make sure we always have an override for each xml file in the content types file.
2017-12-29Powerpoint writer test: more slide number testsJesse Rosenthal1-4/+9
Add test for custom slide-level header, and notes slides.
2017-12-28Powerpoint writer tests: use IO.John MacFarlane2-336/+18
Otherwise we can't find the data files when compiled with -embed_data_files.
2017-12-28Use insertInFileTree in powerpoint test.John MacFarlane1-2/+1
2017-12-28Fixed warning in powerpoint writer test.John MacFarlane1-3/+0
2017-12-28PowerPoint writer: Introduce beginning of testsJesse Rosenthal2-0/+423
This is the beginning of a test suite for the powerpoint writer. Initial tests are for the number of slides. Note that at the moment it does not test against corruption in Microsoft PowerPoint; it just tests that certain outcomes work as expected. More tests will be added. This test framework uses the PandocPure monad introduced with Pandoc 2.0.
2017-12-21Merge pull request #4177 from stencila/jats-xml-readerJohn MacFarlane1-1/+6
Add Basic JATS reader based on DocBook reader
2017-12-22Improve support for code language in JATSHamish Mackenzie1-1/+6
2017-12-21Muse reader: parse anchors immediately after headings as IDsAlexander Krotov1-0/+5
2017-12-13fig, table-wrap & caption Divs for JATS writerHamish Mackenzie1-0/+119
Support writing <fig> and <table-wrap> elements with <title> and <caption> inside them by using Divs with class set to on of fig, table-wrap or cation. The title is included as a Heading so the constraint on where Heading can occur is also relaxed. Also leaves out empty alt attributes on links.
2017-11-24Muse writer: test that inline math conversion result is normalizedAlexander Krotov1-0/+1
Without normalization this test produced <em>a</em><em>b</em><em>c</em>
2017-11-24Muse: move inline list normalization to writerAlexander Krotov1-0/+1
2017-11-22Muse writer: escape hash symbolAlexander Krotov1-0/+2
2017-11-22Muse writer: escape "----" to avoid accidental horizontal rulesAlexander Krotov1-0/+1
2017-11-22Muse writer: escape only </code> inside code tagAlexander Krotov1-2/+1
Additional <verbatim> is not needed as <code> is verbatim already.
2017-11-13Replace "emacs" extension with "amuse" extensionAlexander Krotov1-1/+3
It makes clear that extension is related to Muse markup.
2017-11-01FB2 writer: Add "unrecognised" genre to <title-info>Alexander Krotov1-1/+1
XML schema requires at least one genre.
2017-11-01FB2 writer: remove <annotation> from <body>Alexander Krotov1-1/+1
<annotation> is not allowed inside <body> according to FictionBook2 XML schema. Besides that, the same information is already placed inside <description>. Related bug: #2424
2017-10-28Add new style FB2 testsAlexander Krotov1-0/+34
2017-10-27Automatic reformating by stylish-haskell.John MacFarlane2-6/+6
2017-08-10Fixed writer tests not to use writerUserDataDir.John MacFarlane1-3/+3
2017-08-08Muse writer: insert two blanklines between lists of the same type (#3844)Alexander1-0/+73
2017-07-15Fix docx writer test for ghc 8.2.1.John MacFarlane1-1/+9
Workaround for different behavior of Data.Unique in different ghc versions.
2017-07-15Rearrange docx writer roundtrip test.John MacFarlane1-4/+4
I'm hoping this gives reproducible results on ghc 8.2.1.
2017-07-14Refactored compareOutput in docx writer testJohn MacFarlane1-7/+6
2017-07-12Muse writer: indent lists inside <quote> with at least one space (#3795)Alexander Krotov1-0/+11
2017-06-26Muse writer: fix hlint errors (#3764)Alexander Krotov1-2/+2
2017-06-11Switched Writer types to use Text.John MacFarlane8-13/+20
* XML.toEntities: changed type to Text -> Text. * Shared.tabFilter -- fixed so it strips out CRs as before. * Modified writers to take Text. * Updated tests, benchmarks, trypandoc. [API change] Closes #3731.
2017-06-10Changed all readers to take Text instead of String.John MacFarlane1-2/+4
Readers: Renamed StringReader -> TextReader. Updated tests. API change.
2017-05-07Muse writer: Indent tables with one space (#3649)Alexander Krotov1-9/+9
It is required to trigger Muse table rendering.
2017-03-14Removed unneeded import.John MacFarlane1-1/+0
2017-03-14Use tasty for tests rather than test-framework.John MacFarlane13-48/+51
2017-03-10Add Muse writer (#3489)Alexander Krotov1-0/+273
* Add Muse writer * Advertise new Muse writer * Muse writer: add regressions tests
2017-03-07Speed up Native writer quickcheck tests.John MacFarlane1-2/+4
2017-03-04Stylish-haskell automatic formatting changes.John MacFarlane11-36/+35
2017-03-01LaTeX writer: always add hypertarget when there's a non-empty identifier.John MacFarlane1-1/+1
Previously the hypertargets were only added when there was actually a link to that identifier. Closes #2719.
2017-02-12Add Org writer unit testsAlexander Krotov1-0/+25
2017-02-04Moved tests/ -> test/.John MacFarlane11-0/+1254