aboutsummaryrefslogtreecommitdiff
path: root/test/Tests/Writers
AgeCommit message (Collapse)AuthorFilesLines
2019-09-20Preserve built-in styles in DOCX with custom style (#5670)Ben Steinberg1-0/+4
This commit prevents custom styles on divs and spans from overriding styles on certain elements inside them, like headings, blockquotes, and links. On those elements, the "native" style is required for the element to display correctly. This change also allows nesting of custom styles; in order to do so, it removes the default "Compact" style applied to Plain blocks, except when inside a table.
2019-08-27PowerPoint writer: Start numbering at appopriate numbers.Jesse Rosenthal1-0/+4
Starting numbers for ordered lists were previously ignored. Now we specify the number if it is something other than 1. Closes: #5709
2019-07-28Use doctemplates 0.3, change type of writerTemplate.John MacFarlane2-5/+16
* Require recent doctemplates. It is more flexible and supports partials. * Changed type of writerTemplate to Maybe Template instead of Maybe String. * Remove code from the LaTeX, Docbook, and JATS writers that looked in the template for strings to determine whether it is a book or an article, or whether csquotes is used. This was always kludgy and unreliable. To use csquotes for LaTeX, set `csquotes` in your variables or metadata. It is no longer sufficient to put `\usepackage{csquotes}` in your template or header includes. To specify a book style, use the `documentclass` variable or `--top-level-division`. * Change template code to use new API for doctemplates.
2019-07-18Markdown writer: prefer using raw_attribute when enabled.John MacFarlane1-1/+1
The `raw_attribute` will be used to mark raw bits, even HTML and LaTeX, and even when `raw_html` and `raw_tex` are enabled, as they are by default. To get the old behavior, disable `raw_attribute` in the writer. Closes #4311.
2019-07-14Muse: add RTL supportAlexander Krotov1-0/+7
Closes #5551
2019-06-14Powerpoint code formatting is now context dependent (#5573)Jeroen de Haas1-0/+8
This commit alters the way in which the Powerpoint writer treats inline code and code blocks. - Inline code is now formatted at the same size as the surrounding text. - Code blocks are now given a margin and font size according to their level. - Furthermore this commit allows changing the font with which code is formatted via the `monofont` option. Tested in - PowerPoint 365 for Windows - 1808 (Build 10730.20344 Click-to-Run) - PowerPoint 365 for Mac - 16.26 (19060901)
2019-06-10LaTeX writer: Use mbox to get proper behavior inside `\sout`.John MacFarlane1-1/+1
Closes #5529.
2019-05-25Muse writer: do not escape empty line after <br>Alexander Krotov1-0/+1
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-04-28Muse writer tests: compare Text without converting to [Char]Alexander Krotov1-6/+6
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-02-18Muse writer: escape secondary notesAlexander Krotov1-0/+1
2019-02-10Use latest skylighting.John MacFarlane1-1/+1
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-07Asciidoc writer: shorter delimiters for tables, blockquotes.John MacFarlane1-4/+4
This matches asciidoctor reference docs. Closes #4364.
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-10-23Muse writer: do not insert newline before listsAlexander Krotov1-0/+1
2018-10-21Muse writer: use lightweight markup after </em> tagAlexander Krotov1-0/+3
2018-10-20Powerpoint tests: test raw openxmlJesse Rosenthal1-1/+4
Output files confirmed not to be corrupt, and with content as expected, on PowerPoint 2013 on Windows 10 (virtualbox on linux).
2018-09-16Muse writer: replace newlines in strings with spacesAlexander Krotov1-0/+1
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-04hlint Muse writer testsAlexander Krotov1-6/+6
2018-09-02Muse writer: use lightweight markup when possibleAlexander Krotov1-11/+39
2018-08-01RST writer: use `titleblock` instead of `title` variable for title blockFrancesco Occhipinti1-0/+8
Closes #4803 After this commit use `$titleblock$` in order to get what was contained in `$title$` before, that is a title and subtitle rendered according to the official rST method: http://docutils.sourceforge.net/docs/user/rst/quickstart.html#document-title-subtitle. from With this commit, the `$title$` and `$subtitle$` metadata are available and they simply carry the metadata values. This opens up more possibilities in templates.
2018-05-11Removed inadvertently added .orig files from repository.John MacFarlane17-2222/+0
These were added by https://github.com/schrieveslaach/pandoc/commit/96d10c72cc95e56c9e49db3e6db7118e89d1f1e0 Closes #4648.
2018-05-07Muse writer: add support for left-align and right-align classesAlexander Krotov1-0/+6
Address issue #4542
2018-04-27RST writer: preserve empty inline parents in flatten (#4603)Francesco Occhipinti1-0/+3
2018-04-26Merge branch 'fb2-hrblankline' of https://github.com/labdsf/pandoc into ↵John MacFarlane1-2/+2
labdsf-fb2-hrblankline
2018-04-26RST reader: flatten nested inlines, closes #4368 (#4554)Francesco Occhipinti1-0/+24
nested inlines are not valid RST syntax, so we flatten them following some readability criteria discussed in #4368.
2018-04-19RST writer: use more consistent indentation.John MacFarlane1-9/+9
Previously we used an odd mix of 3- and 4-space indentation. Now we use 3-space indentation, except for ordered lists, where indentation must depend on the width of the list marker. Closes #4563.
2018-04-16Muse writer: escape definition list terms starting with list markersAlexander Krotov1-0/+9
2018-04-15Muse writer: escape strings starting with spaceAlexander Krotov1-0/+9
2018-04-14Man writer: Don't escape U+2019 as '.John MacFarlane17-0/+2222
Closes #4550.
2018-04-10Muse writer: escape > less oftenAlexander Krotov1-0/+1
> should be escaped only when it can start verse, i.e., at the beginning of the line.
2018-04-09Muse writer: don't break headers, line blocks and tables with line breaksAlexander Krotov1-0/+2
2018-04-09Muse writer: correctly output empty headingsAlexander Krotov1-0/+1
2018-04-05Changes to tests to accommodate changes in pandoc-types.John MacFarlane1-2/+4
In https://github.com/jgm/pandoc-types/pull/36 we changed the table builder to pad cells. This commit changes tests (and two readers) to accord with this behavior.
2018-04-05FB2 writer: represent HorizontalRule as empty lineAlexander Krotov1-2/+2
HorizontalRule corresponds to <hr> element in the default output format, HTML. Current HTML standard defines <hr> element as "paragraph-level thematic break". In typography it is often represented by extra space or centered asterism ("⁂"), but since FB2 does not support text centering, empty line (similar to extra space) is the only solution. Line breaks, on the other hand, don't generate <empty-line /> anymore. Previously line breaks generated <empty-line /> element inside paragraph, which is not allowed. So, this commit addresses issue #2424 ("FB2 produced by pandoc doesn't validate"). FB2 does not have a way to represent line breaks inside paragraphs. They are replaced with LF character, which is not rendered by FB2 readers, but at least preserves some information.
2018-04-05Muse writer: escape horizontal rule only if at the beginning of the lineAlexander Krotov1-1/+3
2018-04-02Muse writer: place header IDs before headerAlexander Krotov1-2/+2
See https://github.com/melmothx/text-amuse/issues/39