aboutsummaryrefslogtreecommitdiff
path: root/test
AgeCommit message (Collapse)AuthorFilesLines
2018-10-05OpenDocument writer: Implement table caption numbering (#4949)Nils Carlson1-4/+6
Implement table caption numbering with a format "Table 1: <caption>". Translations are enabled and numbering is consecutive for captioned tables, uncaptioned tables are not enumerated. Captioned figures are now also numbered consecutively and uncaptioned figures are not enumerated.
2018-10-05Muse reader: allow table caption to contain "+"Alexander Krotov1-0/+8
2018-10-03OpenDocument writer: Implement figure numbering in captions (#4944)Nils Carlson1-1/+1
Figure captions are now numbered 1, 2, 3, ... The format in the caption is "Figure 1: <caption>" and so on. This is necessary in order for libreoffice to generate an Illustration Index (Table of Figures) for included figures.
2018-10-02OpenDocument writer: improve bullet/numbering alignment.John MacFarlane1-189/+567
This patch eliminates the large gap we used to have between bullet and text, and also ensures that numbers in numbered lists will be right-aligned. Closes #4385.
2018-09-30Implement `--ascii` (`writerPreferAscii`) in writers, not App.John MacFarlane1-0/+45
Now the `write*` functions for Docbook, HTML, ICML, JATS, Man, Ms, OPML are sensitive to `writerPreferAscii`. Previously the to-ascii translation was done in Text.Pandoc.App, and thus not available to those using the writer functions directly. In addition, the LaTeX writer is now sensitive to `writerPreferAscii` and to `--ascii`. 100% ASCII output can't be guaranteed, but the writer will use commands like `\"{a}` and `\l` whenever possible, to avoid emiting a non-ASCII character. A new unexported module, Text.Pandoc.Groff, has been added to store functions used in the different groff-based writers.
2018-09-29LaTeX reader: allow verbatim blocks ending with blank lines.John MacFarlane1-0/+30
Closes #4624.
2018-09-28Parse empty argument array in inline src blocks.leungbk1-0/+7
`enclosedByPair` alone does not the handle the empty array properly since it uses `many1Till`.
2018-09-27JATS writer: remove 'role' attribute on 'bold' and 'sc' elements.John MacFarlane1-7/+6
The JATS spec does not allow these. Closes #4937.
2018-09-27HTML, Muse reader tests: reduce time taken by round-trip test.John MacFarlane2-4/+6
2018-09-26Force inline code blocks to honor export options.leungbk1-0/+8
`exportsCode` is moved from `Blocks.hs` to `Shared.hs` and exported accordingly.
2018-09-25Add support for multiprenote and multipostnote arguments in LaTeX. (#4930)Brian Leung1-0/+48
* Add support for multiprenote and multipostnote arguments. The multiprenotes occur before the first prefix of a multicite, and the multipostnotes follow the last suffix. * Add test for multiprenote and multipostnote.
2018-09-24Use hslua v1.0.0Albert Krewinkel1-5/+5
2018-09-24Merge pull request #4921 from pyssling/masterJohn MacFarlane1-92/+92
ODT Writer: Improve table header row style handling
2018-09-23ODT Writer: Improve table header row style handlingNils Carlson1-92/+92
This changes the way styles for cells in the header row and normal rows are handled in ODT tables. Previously a new (but identical) style was generated for every table, specifying the style of the cells within the table. After this change there are two style definitions for table cells, one for the cells in the header row, one for all other cells. This doesn't change the actual styles, but makes post-processing changes to the table styles much simpler as it is no longer necessary to introduce new styles for header rows and there are now only two styles where there was previously one per table.
2018-09-22Muse reader tests: more testsAlexander Krotov1-0/+12
Check that indented blocks that end in self-terminating blocks (such as block tags and verse) can be terminated by paragraphs.
2018-09-21Muse reader: do not allow code markup to be followed by digitAlexander Krotov1-0/+4
2018-09-20RST reader: fix bug with internal link targets.John MacFarlane1-0/+14
They were gobbling up indented content underneath. Closes #4919.
2018-09-19Markdown reader: distinguish autolinks in the AST.John MacFarlane11-25/+61
With this change, autolinks are parsed as Links with the `uri` class. (The same is true for bare links, if the `autolink_bare_uris` extension is enabled.) Email autolinks are parsed as Links with the `email` class. This allows the distinction to be represented in the URI. Formerly the `uri` class was added to autolinks by the HTML writer, but it had to guess what was an autolink and could not distinguish `[http://example.com](http://example.com)` from `<http://example.com>`. It also incorrectly recognized `[pandoc](pandoc)` as an autolink. Now the HTML writer simply passes through the `uri` attribute if it is present, but does not add anything. The Textile writer has been modified so that the `uri` class is not explicitly added for autolinks, even if it is present. Closes #4913.
2018-09-19Lua filter tests: produce better error on test failureAlbert Krewinkel1-2/+2
2018-09-18parse rST inlines containing newlines closing #4912danse1-0/+3
this eliminates a regression error introduced after pandoc 2.1.1, affecting rST inline parsing. see the issue for details
2018-09-16Markdown reader: example_lists should work without startnum.John MacFarlane1-0/+16
Closes #4908.
2018-09-16Muse writer: replace newlines in strings with spacesAlexander Krotov1-0/+1
2018-09-15add test for --metadata-filemb212-0/+19
2018-09-15add test yaml-metadata-blocks.mdmb211-0/+48
2018-09-11Enable tables in HTML round trip testAlexander Krotov1-1/+0
2018-09-11HTML reader tests: accept Blocks in round trip testAlexander Krotov1-2/+2
2018-09-11Muse reader tests: accept Blocks instead of Block in round trip testAlexander Krotov1-2/+2
This way testcase can be shrinked better up to removing all blocks completely.
2018-09-11Muse writer: set envInsideBlock = True when rendering notesAlexander Krotov1-0/+7
2018-09-11HTML writer: always output <dt> element, even if it is emptyAlexander Krotov1-0/+5
Fixes #4883
2018-09-11Muse writer: check for whitespace in the beginning and end of Str'sAlexander Krotov1-0/+3
2018-09-11Muse writer: escape -, ; and > in the beginning of stringsAlexander Krotov1-0/+10
2018-09-11Muse writer: escape list markers in the beginning of notesAlexander Krotov1-0/+6
2018-09-11Muse writer: normalize inline list before testing if tags should be usedAlexander Krotov1-0/+1
2018-09-11Muse writer: use tags instead of lightweight markup for empty stringsAlexander Krotov1-0/+4
2018-09-10Make HTML5 header easier to style precisely in default template (#4767)J. B. Rainsberger1-1/+1
Add the `title-block-header` identifier to the `header` element, to make it easier to style precisely.
2018-09-10Remove RawBlock from HTML round trip testsAlexander Krotov1-0/+1
2018-09-10HTML reader: test round trip propertyAlexander Krotov1-0/+23
2018-09-09LaTeX reader: resolve `\ref` for figure numbers.John MacFarlane1-1/+44
2018-09-09Org writer: don't escape literal `_`, `^`.John MacFarlane1-4/+4
Org doesn't recognize these escapes. Closes #4882.
2018-09-07HTML reader: parse `<script type="math/tex` tags as math.John MacFarlane1-0/+13
These are used by MathJax. Closes #4877.
2018-09-06Org reader: respect export option `p` for planning infoAlbert Krewinkel2-0/+36
Inclusion of planning info (*DEADLINE*, *SCHEDULED*, and *CLOSED*) can be controlled via the `p` export option: setting the option to `t` will add all planning information in a *Plain* block below the respective headline.
2018-09-06Muse reader: close the </quote> in indented tag testAlexander Krotov1-1/+2
There is already a separate test for unclosed </quote>.
2018-09-05Org reader: strip planning info from outputAlbert Krewinkel1-0/+25
Planning info is parsed, but not included in the output (as is the default with Emacs Org-mode). Fixes: #4867
2018-09-04hlint Muse writer testsAlexander Krotov1-6/+6
2018-09-04Remove redundant $Alexander Krotov1-1/+1
2018-09-02Muse reader: autonumber sections in the correct orderAlexander Krotov1-0/+12
Parsing now stops at each section header to ensure the header is registered before parsing of the next section starts.
2018-09-02Muse writer: use lightweight markup when possibleAlexander Krotov2-50/+75
2018-09-02Muse reader: allow newline after opening "*" or "**"Alexander Krotov1-0/+8
Emacs Muse allows this.
2018-08-31Muse reader: parse <verse> tag in one passAlexander Krotov1-0/+6
instead of using parseFromString. This change makes it possible to have verbatim </verse> tag inside verse.
2018-08-30Fix a typo: s/afeter/after/Alexander Krotov1-1/+1