aboutsummaryrefslogtreecommitdiff
path: root/test
AgeCommit message (Collapse)AuthorFilesLines
2019-07-28Update muse template to handle multiple authors better.John MacFarlane1-1/+1
2019-07-28Use doctemplates 0.3, change type of writerTemplate.John MacFarlane7-10/+21
* 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-24HTML writer: ensure TeX formulas are rendered correctly (#5658)Philip Pesca1-1/+1
The web service passed in to `--webtex` may render formulas using inline or display style by default. Prefixing formulas with the appropriate command ensures they are rendered correctly. This is a followup to the discussion in #5656.
2019-07-23HTML writer: render inline formulas correctly with --webtex (#5656)Philip Pesca1-0/+14
We add `\textstyle` to the beginning of the formula to ensure it will be rendered in inline style. Closes #5655.
2019-07-22Fix error introduced in change to test for 4669.John MacFarlane1-1/+1
2019-07-22LaTeX reader: support tex `\tt` command.John MacFarlane2-1/+7
Closes #5654.
2019-07-22Org reader: accept ATTR_LATEX in block attributesAlbert Krewinkel1-0/+7
Attributes for LaTeX output are accepted as valid block attributes; however, their values are ignored. Fixes: #5648
2019-07-20LaTeX writer: fix line breaks at start of paragraph.John MacFarlane1-0/+18
Previously we just omitted these. Now we render them using `\hfill\break` instead of `\\`. This is a revision of a PR by @sabine (#5591) who should be credited with the idea. Closes #3324.
2019-07-20LaTeX reader: search for image with list of extensions...John MacFarlane1-0/+6
like latex does, if an extension is not provided. Closes #4933.
2019-07-19Markdown: Ensure that expanded latex macros end with space if original did.John MacFarlane1-0/+9
Closes #4442.
2019-07-19Change order of ilvl and numId in document.xml (#5647)Agustín Martín Barbero4-0/+0
Workaround for Word Online shortcomming. Fixes #5645 Also, make list para properties go first. This reordering of properties shouldn't be necessary but it seems Word Online does not understand the docx correctly otherwise.
2019-07-18Markdown writer: prefer using raw_attribute when enabled.John MacFarlane5-14/+56
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-18HTML writer: ensure that line numbers in code blocks get id-prefix.John MacFarlane1-0/+22
Closes #5650.
2019-07-16Dokuwiki writer: handle mixed lists without HTML fallback.John MacFarlane1-0/+25
Closes #5107.
2019-07-15Customizable type of PDF/A for the ConTeXt writer (issue #5608) (#5610)Karl Pettersson2-2/+4
* Let the user choose type of PDF/A generated with ConTeXt (closes #5608) * Updated ConTeXt test documents for changes in tagging * Updated color profile settings in accordance with ConTeXt wiki * Made ICC profile and output intent for PDF/A customizable * Read pdfa variable from meta (and updated manual)
2019-07-14Update test for new skylighting.John MacFarlane2-14/+12
2019-07-14Muse: add RTL supportAlexander Krotov2-0/+10
Closes #5551
2019-07-13Fix #4499: add mbox and hbox handling to LaTeX reader (#5586)Vasily Alferov1-0/+87
When `+raw_tex` is enabled, these are passed through literally. Otherwise, they are handled in a way that emulates LaTeX's behavior.
2019-07-13Merge pull request #5589 from blmage/fix-3992John MacFarlane5-1/+33
Add support for EPUB2 covers (fix #3992)
2019-07-13Man writer: Improved definition list term output.John MacFarlane2-18/+18
Now we boldface code but not other things. This matches the most common style in man pages (particularly option lists). Also, remove a regression in the last commit in which 'nowrap' was removed.
2019-07-13Man writer: fixed boldfacing of definition terms.John MacFarlane2-17/+26
Previously the bold-facing would be interrupted by other formatting, because we used `.B`. Closes #5620.
2019-07-13Merge pull request #5606 from blmage/odt-framesJohn MacFarlane2-0/+2
Improve the parsing of frames in ODT documents
2019-07-13LaTeX reader: Properly handle \providecommand and environment...John MacFarlane1-0/+23
They are now ignored if the corresponding command or environment is already defined. Closes #5635.
2019-07-13fix filename and issue reference of previous commitmb211-0/+0
2019-07-12Pass through aria- attributes to HTML5.John MacFarlane1-0/+8
Also document addition of data- prefix to unknown attributes. Closes #5646.
2019-07-10RST reader: keep `name` property in `imgAttr`. (#5637)Brian Leung1-0/+10
Closes #5619.
2019-07-06Updating JATS template to v1.1dtd (#5632)Arfon Smith1-2/+2
* Updating JATS template to v1.1dtd * Update writer.jats
2019-07-06Markdown reader: handle inline code more eagerly within lists. (#5628)Brian Leung1-0/+83
Closes #5627.
2019-07-02Fix redundant constraint warnings. (#5625)Pete Ryland1-1/+1
2019-06-22add tests for EPUB2 and EPUB3 cover readermartinfrancois5-1/+33
2019-06-21Support epigraph command in LaTeX Reader.oquechy1-0/+31
Closes #3523.
2019-06-20Add a test for MathML formulas in ODT documentsblmage2-0/+2
2019-06-14Powerpoint code formatting is now context dependent (#5573)Jeroen de Haas6-0/+29
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-13Update test for skylighting 0.8.1.1.John MacFarlane1-2/+2
2019-06-12OpenDocument writer: Avoid duplicate attributes.John MacFarlane1-1/+1
We use the innermost attribute in nested cases. Closes #4634.
2019-06-12Lua: add a `clone()` method to all AST elements (#5572)Albert Krewinkel1-0/+38
Closes: #5568
2019-06-11LaTeX writer: Don't highlight code in headings.John MacFarlane1-0/+8
This causes compilation errors, and I don't know how to work around them. Closes #5574.
2019-06-11Revert "JATS template: don't include journal-meta unless 'journal'..."John MacFarlane1-0/+7
This reverts commit 193b5ccebaceeb7c0959d40136a1a4d2aeb00c95. journal-meta is required. Better to include it even if it doesn't validate through lack of required fields.
2019-06-11JATS template: don't include journal-meta unless 'journal'...John MacFarlane1-7/+0
...is set in metadata. Otherwise we get validation errors.
2019-06-11JATS writer: ensure validity of pub-date.John MacFarlane1-2/+4
We try to parse the date and convert to year, month, day, as expected in pub-date. We also add an iso-8601-date attribute if possible.
2019-06-11JATS writer: don't use break element for LineBreak.John MacFarlane1-1/+2
It's only allowed in a few special contexts, and not in p elements.
2019-06-11JATS writer: don't embed string-name in string.John MacFarlane1-4/+0
That's illegal with this DTD.
2019-06-11test/lua/module/pandoc.lua: fix non-determinism in testAlbert Krewinkel1-4/+11
2019-06-11data/pandoc.lua: fix deletion of nonexistent attributesAlbert Krewinkel1-0/+6
Fixes: #5569
2019-06-11Lua pandoc module: better tests for Attr and AttributeListAlbert Krewinkel1-0/+65
2019-06-11JATS writer: wrap elements with p when needed.John MacFarlane1-13/+21
The JATS spec restricts contents of certain elements (fn, list-item); this patch wraps elements that can't go in these contexts inside p elements with specific-use "wrapper", so the documents will conform. Closes #5570.
2019-06-10LaTeX writer: Use mbox to get proper behavior inside `\sout`.John MacFarlane2-1/+11
Closes #5529.
2019-06-10Asciidoc writer: use doubled ## when necessary for spans.John MacFarlane1-0/+6
Closes #5566.
2019-06-10Asciidoc writer: ensure correct nesting strong/emph.John MacFarlane1-0/+6
Closes #5565.
2019-06-09Muse reader: test that links inside image descriptions workAlexander Krotov1-0/+3