summaryrefslogtreecommitdiff
path: root/test/Tests
Commit message (Collapse)AuthorAge
* _avoid_missing_filesDebian Haskell Group2018-04-24
| | | Gbp-Pq: Name 2001_avoid_missing_files.patch
* Muse reader: fix indentation requirements for footnote continuationsAlexander Krotov2018-03-03
|
* Muse reader: enable <literal> tags even if amuse extension is enabledAlexander Krotov2018-03-02
| | | | | | Amusewiki disables <literal> tags for security reasons. If user wants similar behavior in pandoc, RawBlocks and RawInlines can be removed or replaced with filters.
* Muse writer: join strings during inline normalizationAlexander Krotov2018-03-02
|
* Muse reader: do not consume whitespace while looking for closing end tagAlexander Krotov2018-03-02
| | | | Fix for a bug caught by round-trip test.
* Muse reader: convert alphabetical list markers to decimal in round-trip testAlexander Krotov2018-03-02
| | | | | | Alphabetical lists are an addition of Text::Amuse. They are not present in Emacs Muse and can be ambiguous when list starts with "i.", "c." etc.
* Docx reader: Handle nested sdt tags.Jesse Rosenthal2018-02-28
| | | | | | | Previously we had only unwrapped one level of sdt tags. Now we recurse if we find them. Closes: #4415
* Muse reader: add test for verse tag with one empty lineAlexander Krotov2018-02-28
|
* Muse writer: change verse markupAlexander Krotov2018-02-28
| | | | Use "> " instead of <verse> tag
* Muse writer: remove empty strings during inline normalizationAlexander Krotov2018-02-28
|
* Muse reader: allow <quote> and other tags to be indentedAlexander Krotov2018-02-28
|
* Powerpoint writer: use `trim` from SharedJesse Rosenthal2018-02-27
| | | | Instead of writing my own.
* Powerpoint writer: add test for table and list syntaxJesse Rosenthal2018-02-27
| | | | | | | These were never added when the tests were first created. Output files checked in MS PowerPoint 2013 (Windows 10, VBox). No corruption, and output as expected.
* Powerpoint writer: Remove empty slidesJesse Rosenthal2018-02-27
| | | | | | | | | | | | Make sure there are no empty slides in the pptx output. Because of the way that slides were split, these could be accidentally produced by comments after images. When animations are added, there will be a way to add an empty slide with either incremental lists or pauses. Test outputs checked with MS PowerPoint (Office 2013, Windows 10, VBox). Both files have expected output and are not corrupted.
* Org reader tests: move citation tests to separate moduleAlbert Krewinkel2018-02-26
|
* Tests/Lua: fix tests on windowsAlbert Krewinkel2018-02-25
|
* Lua: register script name in global variableAlbert Krewinkel2018-02-24
| | | | | | | | The name of the Lua script which is executed is made available in the global Lua variable `PANDOC_SCRIPT_FILE`, both for Lua filters and custom writers. Closes: #4393
* Muse reader: allow single colon in definition list termAlexander Krotov2018-02-24
|
* Muse writer: don't indent nested definition listsAlexander Krotov2018-02-23
|
* Muse reader: improve verse parsingAlexander Krotov2018-02-23
| | | | | Now verse marked up with ">" (in contrast to <verse> tag) can be placed inside lists.
* Docx reader tests: test custom style extension.Jesse Rosenthal2018-02-22
|
* Org reader: allow changing emphasis syntaxAlbert Krewinkel2018-02-21
| | | | | | | | | | | | | | | | The characters allowed before and after emphasis can be configured via `#+pandoc-emphasis-pre` and `#+pandoc-emphasis-post`, respectively. This allows to change which strings are recognized as emphasized text on a per-document or even per-paragraph basis. The allowed characters must be given as (Haskell) string. #+pandoc-emphasis-pre: "-\t ('\"{" #+pandoc-emphasis-post: "-\t\n .,:!?;'\")}[" If the argument cannot be read as a string, the default value is restored. Closes: #4378
* Powerpoint writer tests: Test everything with template as wellJesse Rosenthal2018-02-19
| | | | | | | | | | | | | | Modify the PowerPoint tests to run all the tests with template (--reference-doc) as well. Because there are so many interlocking pieces, bugs can pop up in weird places when using templates, since it changes how the writer builds its output file. For example, I recently discovered a bug in which speaker notes worked fine and templating worked fine elsewhere, but templating with speaker notes produced a file that would crash MS PowerPoint. That particular bug was fixed, but this will forces us to check for that with each new change.
* Move manyUntil to Text.Pandoc.Parsing and use it in Txt2Tags readerAlexander Krotov2018-02-19
|
* Powerpoint writer: Add tests for speaker notes.Jesse Rosenthal2018-02-18
|
* Muse reader: prioritize lists with roman numerals over alphabetical listsAlexander Krotov2018-02-16
| | | | | This is to make sure "i." starts a roman numbered list, instead of a list with letter "i" (followed by "j", "k", ...").
* Docx reader: Pick table width from the longest row or headerdanse2018-02-15
| | | | | | | This change is intended to preserve as much of the table content as possible Closes #4360
* Muse reader: fix directive parsingAlexander Krotov2018-02-15
| | | | This fixes bugs introduced in commit 4bfab8f04c105f111d8d4e1c3ed7f7b5c75dbd19.
* Muse writer: use unicode quotes for quoted textAlexander Krotov2018-02-15
|
* Muse reader: parse definition lists with multiple descriptionsAlexander Krotov2018-02-13
|
* Muse reader: refactor to avoid reparsingAlexander Krotov2018-02-12
| | | | | | | | | Lists are parsed in linear instead of exponential time now. Contents of block tags, such as <quote>, is parsed directly, without storing it in a string and parsing with parseFromString. Fixed a bug: headers did not terminate lists.
* Muse reader: paragraph indentation does not indicate nested quoteAlexander Krotov2018-02-12
| | | | | | | | | | Muse allows indentation to indicate quotation or alignment, but only on the top level, not within a <quote> or list. This patch also simplifies the code by removing museInQuote and museInList fields from the state structure. Headers and indented paragraphs are attempted to be parsed only at the topmost level, instead of aborting parsing with guards.
* Muse reader: test empty quote tagAlexander Krotov2018-02-11
|
* Muse reader: require that block tags are on separate linesAlexander Krotov2018-02-11
| | | | | | | | Text::Amuse already explicitly requires it anyway. Supporting block tags on the same line as contents makes it hard to combine closing tag parsers with indentation parsers. Being able to combine parsers is required for no-reparsing refactoring of Muse reader.
* Muse reader: test that two blank lines after verse can separate list itemsAlexander Krotov2018-02-05
| | | | | Unlike paragraph and <quote> tag parsers, verse parser consumes newline. For this reason only three or more blank lines can separate list items.
* Muse reader: test that lists can be separated with two blanklines after ↵Alexander Krotov2018-02-05
| | | | | | blockquote Existing tests only checked this for paragraphs.
* Muse writer: write image width specified in percent in Text::Amuse modeAlexander Krotov2018-02-03
|
* Muse writer: don't wrap displayMath into <verse>Alexander Krotov2018-01-30
| | | | | | <verse> is a block tag and displayMath is an inline element. Writing <verse> around displayMath could result in nested <verse> tags.
* Muse writer: escape nonbreaking space ("~~")Alexander Krotov2018-01-29
|
* Muse reader: fix parsing of trailing whitespaceAlexander Krotov2018-01-28
| | | | | Newline after whitespace now results in softbreak instead of space.
* Docx writer tests: correct test name.Jesse Rosenthal2018-01-27
|
* Docx writer tests: Add tests for custom stylesJesse Rosenthal2018-01-27
|
* Docx writer tests: Use new golden frameworkJesse Rosenthal2018-01-27
| | | | | | | | | | | | | | These are based off the reader tests, with some removed (where the reader output was identical, based on different docx inputs). There are still more to be added. In particular, tests for custom-styles need to be added. All golden docx files have been checked in MS Word 2013 (windows). There is no corruption. There is questionable output in the `tables` test: the three tables seemed to be joined. This will be addressed in a future commit, and the golden docx file will be changed.
* Tests: Abstract powerpoint tests out to OOXML tests.Jesse Rosenthal2018-01-25
| | | | | | | There is very little pptx-specific in these tests, so we abstract out the basic testing function so it can be used for docx as well. This should allow us to catch some errors in the docx writer that slipped by the roundtrip testing.
* ConTeXt writer: new section syntax and --section-divs (#4295)Henri Menke2018-01-25
| | | | | | | | Fixes #2609. This PR introduces the new-style section headings: `\section[my-header]{My Header}` -> `\section[title={My Header},reference={my-header}]`. On top of this, the ConTeXt writer now supports the `--section-divs` option to write sections in the fenced style, with `\startsection` and `\stopsection`.
* Muse reader: fix matching of closing inline tagsAlexander Krotov2018-01-24
|
* Powerpoint writer tests: hlint cleanups.Jesse Rosenthal2018-01-23
|
* ConTeXt writer: xtables: correct wrong usage of captionHenri Menke2018-01-23
|
* Powerpoint writer tests: add tests for two-column layout and imagesJesse Rosenthal2018-01-22
| | | | Powerpoint output checked in MS PowerPoint 2013 (Windows)
* Powerpoint writer: Add further testsJesse Rosenthal2018-01-22
| | | | | | | | | | Tests added for: - table of contents - endnotes - endnotes with table of contents Powerpoint output checked in MS PowerPoint 2013 (Windows)