aboutsummaryrefslogtreecommitdiff
path: root/test/Tests
AgeCommit message (Collapse)AuthorFilesLines
2019-05-20Improve output of Lua tests (#5499)Albert Krewinkel2-26/+37
This makes use of tasty-lua, a package to write tests in Lua and integrate the results into Tasty output. Test output becomes more informative: individual tests and test groups become visible in test output. Failures are reported with helpful error messages.
2019-05-16JATS writer: properly handle footnotes.John MacFarlane1-3/+1
"Best Practice: When footnotes are grouped at the end of an article, wrap them in a `<fn-group>` and use an `<xref>` element in the text, as usual, to tie each footnote in the list to a particular location in the text." Closes #5511.
2019-05-13Org reader: fix planning elements in headers level 3 and higherAlbert Krewinkel1-0/+24
Planning info is now always placed before the subtree contents. Previously, the planning info was placed after the content if the header's subtree was converted to a list, which happens with headers of level 3 and higher per default. Fixes: #5494
2019-05-13Org reader: omit, but warn about unknown export optionsAlbert Krewinkel1-0/+18
Unknown export options are properly ignored and omitted from the output.
2019-05-11FB2 reader: add notes parsing testAlexander Krotov1-0/+1
2019-05-05Org reader: prefer plain symbols over math symbolsAlbert Krewinkel1-3/+7
Symbols like `\alpha` are output plain and unemphasized, not as math. Fixes: #5483
2019-05-05Org reader: recognize emphasis after TODO/DONE keywordAlbert Krewinkel1-0/+7
Fixes: #5484
2019-05-04Lua: add `pandoc.system` module (#5468)Albert Krewinkel1-0/+5
The `system` Lua module provides utility functions to interact with the operating- and file system. E.g. print(pandoc.system.get_current_directory()) or pandoc.system.with_temporary_directory('tikz', function (dir) -- write and compile a TikZ file with pdflatex end)
2019-04-28Muse writer tests: compare Text without converting to [Char]Alexander Krotov1-6/+6
2019-04-02Actually run the xwiki writer tests.John MacFarlane1-1/+2
2019-03-31PowerPoint writer: add test for speaker notes after metadata.Jesse Rosenthal1-0/+4
2019-03-30Pptx writer: test for speaker notes after breaking header.Jesse Rosenthal1-0/+4
2019-03-25HTML reader: read `data-foo` attribute into `foo`.John MacFarlane1-1/+1
The HTML writer adds the `data-` prefix for HTML5 for nonstandard attributes. But the attributes are represented in the AST without the `data-` prefix, so we should strip this when reading HTML. Closes #5392.
2019-03-13Tests.Old: specify --data-dir=../data.John MacFarlane1-3/+2
Remove old pandoc_datadir environment variable, which doesn't do anything.
2019-03-09Include execution output in ipynb test.John MacFarlane1-2/+4
2019-02-18Docx reader: add tests for trimming last inline.Jesse Rosenthal1-0/+4
2019-02-18Muse reader: add secondary note supportAlexander Krotov1-0/+17
2019-02-18Muse writer: escape secondary notesAlexander Krotov1-0/+1
2019-02-12Docx reader: Add test for reading sdts in footnotes.Jesse Rosenthal1-0/+4
2019-02-10Use latest skylighting.John MacFarlane1-1/+1
2019-02-09Added simple ipynb reader/writer tests.John MacFarlane1-0/+6
Closes #5274.
2019-02-09Adds Asciidoctor sprcific writer and testsTG1-1/+1
2019-02-06Docx reader: Tests for alternate document.xmlJesse Rosenthal1-2/+7
2019-02-06Muse reader: test that block level markup does not break <verbatim>Alexander Krotov1-0/+7
2019-02-04Add missing copyright notices and remove license boilerplate (#5112)Albert Krewinkel33-1/+365
Quite a few modules were missing copyright notices. This commit adds copyright notices everywhere via haddock module headers. The old license boilerplate comment is redundant with this and has been removed. Update copyright years to 2019. Closes #4592.
2019-01-31Tests: avoid calling findPandoc multiple times.John MacFarlane2-190/+202
2019-01-31Old tests: remove need for temp files by using pipeProcess.John MacFarlane1-16/+6
2019-01-30Org reader: add support for #+SELECT_TAGS.leungbk1-0/+4
2019-01-26Improve writing metadata for docx, pptx and odt (#5252)Agustín Martín Barbero2-0/+18
* docx writer: support custom properties. Solves the writer part of #3024. Also supports additional core properties: `subject`, `lang`, `category`, `description`. * odt writer: improve standard properties, including the following core properties: `generator` (Pandoc/VERSION), `description`, `subject`, `keywords`, `initial-creator` (from authors), `creation-date` (actual creation date). Also fix date. * pptx writer: support custom properties. Also supports additional core properties: `subject`, `category`, `description`. * Includes golden tests. * MANUAL: document metadata support for docx, odt, pptx writers
2019-01-13data/pandoc.lua: auto-fix nested constructor argumentsAlbert Krewinkel1-4/+15
Incorrect types to pandoc element constructors are automatically converted to the correct types when possible. This was already done for most constructors, but conversions are now also done for nested types (like lists of lists).
2019-01-09RST reader: change treatment of `number-lines` directives. (#5207)Brian Leung1-2/+2
Directives of this type without numeric inputs should not have a `startFrom` attribute; with a blank value, the writers can produce extra whitespace.
2019-01-08Removed superfluous sourceCode class on code blocks.John MacFarlane2-8/+8
* These were added by the RST reader and, for literate Haskell, by the Markdown and LaTeX readers. There is no point to this class, and it is not applied consistently by all readers. See #5047. * Reverse order of `literate` and `haskell` classes on code blocks when parsing literate Haskell. Better if `haskell` comes first.
2019-01-07Asciidoc writer: shorter delimiters for tables, blockquotes.John MacFarlane1-4/+4
This matches asciidoctor reference docs. Closes #4364.
2019-01-07Org reader: handle `minlevel` option differently. (#5190)Brian Leung1-1/+6
When `minlevel` exceeds the original minimum level observed in the file to be included, every heading should be shifted rightward.
2019-01-06Add DokuWiki reader (#5108)Alexander1-0/+315
Closes #1792
2019-01-04Cleaned up findPandoc.John MacFarlane1-11/+5
2019-01-04Tests: Fix findPandoc to work with Windows.John MacFarlane1-0/+5
2019-01-04Fix findPandoc so it works with cabalv2.John MacFarlane1-8/+23
2019-01-01Org reader: fix self-link parsing regressionAlbert Krewinkel1-0/+4
Fixes a regression introduced by the previous commit.
2019-01-01Org reader: fix treatment of links to imagesAlbert Krewinkel1-13/+17
Links with descriptions which are pointing to images are no longer read as inline images, but as proper links. Fixes: #5191
2018-12-25Muse reader tests: test #cover directiveAlexander Krotov1-0/+5
2018-12-10Docx: add test for lists with level overrides.Jesse Rosenthal1-0/+4
2018-11-14Muse reader: trim whitespace before parsing grid table cellsAlexander Krotov1-0/+11
2018-11-14Muse reader: add grid tables supportAlexander Krotov1-0/+43
2018-11-14Muse writer: indent simple tables only on the top levelAlexander Krotov1-0/+6
2018-11-13Muse writer: output tables with one column as grid tablesAlexander Krotov1-0/+12
2018-11-06Use OverloadedStrings extension to simplify Muse writer testsAlexander Krotov1-201/+203
2018-11-05Muse writer: add support for --reference-location=Alexander Krotov1-3/+85
Address #107
2018-11-02table testsYan Pashkovsky1-0/+11
2018-10-30Roff reader: properly handle unknown backslash escapes.John MacFarlane1-0/+2
They are treated as regular characters, according to groff 7. Cloess #5034.