summaryrefslogtreecommitdiff
path: root/test
AgeCommit message (Collapse)Author
2023-05-04Markdown reader: disallow escaping of `~` and `"` in markdown_strictAlbert Krewinkel
This matches the behavior of the legacy `markdown.pl` as well as what is described in the manual. Fixes: #8777
2023-05-04LaTeX reader: ignore args to column type in `\multicolumn`.Albert Krewinkel
The `\multicolumn` command takes the column type as the second argument. Types like `p` take an additional argument, which is now ignored and no longer causes the table parser to fail. Fixes: #8789
2023-05-01Writers.OpenDocument: handle row header column cells as header cellsMichael Stahl
The previous commit prevented header column cells from being dropped on the floor, this one changes the paragraph style to "Table_20_Heading". Note that for the test input, the result is not correct: the AnnotatedTable type cannot represent the HTML input properly, as it only has a concept of header rows and header columns, but HTML can have an individual cell that is a header (not 100% sure but they way i read https://html.spec.whatwg.org/#header-and-data-cell-semantics the <th> cell here is both a row header cell and a column header cell while the other cells in the row and column are not header cells), and header cells may even appear "in the middle" of a table (see example in https://html.spec.whatwg.org/#the-th-element). So while this appears like it's the right thing to do for Writer.OpenDocument, it's not clear if this is going to make things better or worse overall. Fixes: #8764
2023-05-01Writers.OpenDocument: handle row header column cells as ordinary cellsMichael Stahl
While ODF 1.3 part 3 does specify a 9.1.11 <table:table-header-columns> element, in practice it's only implemented by spreadsheet applications, not word processors. So simply treat the row header columns as ordinary table columns, at least they don't get lost then. Fixes: #8764
2023-05-01Writers.OpenDocument: fix invalid text:p inside text:p from metaMichael Stahl
The only element in meta for which data/templates/default.opendocument allows block element content appears to be "abstract", which is already filtered out of meta' at this point, so simply convert all blocks to linebreak-separated inlines. Fixes: #8256
2023-04-28Writers.ODT: stop validator complaints by producing ODF 1.3Michael Stahl
The ODF validator complains about an invalid attribute style:contextual-spacing in styles.xml, ultimately an implementation error in whatever old version of LibreOffice that produced the data/odt/styles.xml (should have put it into an extension namespace). Fortunately the attribute was added to ODF 1.3, which was released a couple years ago. So the easiest fix is to simply produce ODF 1.3 instead of 1.2; it's supposed to be fully backward compatible.
2023-04-05Typst writer: use `<..>` for labels, create internal links.John MacFarlane
Internal links to labels are now supported.
2023-04-05Add rowspan, colspan and alignment to cells in jats table reader (#8726)Noah Malmed
Partially addresses #8408
2023-04-05Remove links from inside links in mediawiki writer (#8739)wgevaert
Co-authored-by: Wout Gevaert <wout@wikibase.nl>
2023-04-05Org reader: treat `#+NAME` as synonym for `#+LABEL`.Albert Krewinkel
Closes: #8578
2023-04-01Org reader: require abstract environment to use lowercaseAlbert Krewinkel
2023-03-29styles.html: fix task-list styling in reveal.jsAlbert Krewinkel
Fixes: #8731
2023-03-29HTML writer: use first paragraph in task item as checkbox label.Albert Krewinkel
Closes: #8729
2023-03-27Typst writer: fix alignment issue in lists.John MacFarlane
It's an aesthetic issue only; the first line had an extra space indent after the list marker.
2023-03-27Typst: Use customized term instead of custom macro for def lists.John MacFarlane
2023-03-27Typst writer: support column aligns in tables.John MacFarlane
2023-03-26More Typst writer improvements.John MacFarlane
+ Update manual with variables for Typst. + Split `lang` metadata into separate `lang` and `region` for Typst. + Fix label positioning in Divs. + Fix text customizations (lang, region, font, size) so they actually work. + Update tests and man page.
2023-03-26Typst writer improvements.John MacFarlane
+ Fix non-decimal enumerated lists. + Fix endnotes ending with code blocks. + Improve default template to use a typst template. + Factor out definitions and typst template into partials. + Properly escape backslash and quote inside double quotes. + Update tests.
2023-03-26Moved a misplaced command test.John MacFarlane
2023-03-25Add typst writer.John MacFarlane
See #8713.
2023-03-22Org reader: Allow zero width space as an escape characterChristian Christiansen
Allow the character U+200B to be used as an escape character as described in the Org-mode documentation https://orgmode.org/manual/Escape-Character.html Closes issue #8716.
2023-03-22DocBook reader: handle "book" for xref referencesAndres Freund
This also adds a test xref to book and part. See also 4ea0508e6 / #8712.
2023-03-20HTML reader: fix behavior with `-native_spans-raw_html`.John MacFarlane
Previously with this configuration, `<span>`s were not treated as inline elements at all. Closes #8711.
2023-03-20Update latex writer tests for change to default template.John MacFarlane
2023-03-17Update docx golden tests for style changes.John MacFarlane
2023-03-17Docx writer: include abstract title.John MacFarlane
Closes #8702. Uses localized term for abstract.
2023-03-14HTML writer footnotes changes:John MacFarlane
When `--reference-location=section` or `=block`, use an `aside` element for the notes rather than a `section`. When `--reference-location=section`, include the `aside` element inside the section element, rather than outside. (In slide shows, this option causes footnotes on a slide to be displayed at the bottom of the slide.) Closes #8695.
2023-03-14Markdown writer: use implicit figures if there's a caption but no alt.Albert Krewinkel
Closes: #8689
2023-03-13Jira reader: add panel title as nested divAlbert Krewinkel
The title of a jira panel is added in a nested div as the first element of the div panel. Fixes: #8681
2023-03-05JATS reader: avoid generating duplicate figure captions.John MacFarlane
Closes #8669.
2023-03-05DocBook reader: parse `figure` as a Figure element in the AST.John MacFarlane
Closes #8668.
2023-03-03Asciidoc writer: Properly escape `|` in table cells.John MacFarlane
Closes #8665.
2023-03-01Make sure TSV reader doesn't gobble tabs as whitespace.John MacFarlane
Closes #8661.
2023-03-01Org reader: accept empty tablesAlbert Krewinkel
Fixes: #8659
2023-02-24RST reader: align with spec in syntax for role names.John MacFarlane
In particular, we now allow colons in row names. Closes #8653.
2023-02-22LaTeX writer: do not use longtable foot with BeamerAlbert Krewinkel
The table foot is made part of the table body, as otherwise it won't show up in the output. The root cause for this is that longtable cannot detect page breaks in Beamer. Fixes: #8638
2023-02-18JATS writer: include alt-text in `<graphic>`, `<inline-graphic>` elementsAlbert Krewinkel
Closes: #8631
2023-02-15fixed <xref> references to tables in DocBook filesPavol Otto
Closes #8626.
2023-02-12URL style in ConTeXt (#8612)Thomas Hodgson
Previously, a URL like this would be in monospace text: `\useURL[url1][https://example.com]`. Now, it will match the main text unless the `linkstyle` variable is set, which controls the styling of all links. Closes #8602. Added documentation for `urlstyle` variable in the ConTeXt template, and added detail to its documentation in the LaTeX template.
2023-02-09Citeproc: Fix bug in metaValueToReference.John MacFarlane
This bug caused us to get some repeated content when converting MetaBlock to Inlines. Closes #8611.
2023-02-05LaTeX writer: include short figure/table caption if one is given.Albert Krewinkel
Short captions are used by LaTeX when generating a the list of figures or list of tables. Adding a short caption will now overwrite the full caption in these lists.
2023-02-01Handle % in biblatex doi field.John MacFarlane
Closes #8595.
2023-02-01Add some diagnostics to newif test.John MacFarlane
2023-01-29Add support for Textile footnote backlinks (#8585)Stephen Altamirano
Backlinking from footnotes is already the behavior of `Note` values when writing HTML. This adds parsing support for the explicit backlinking syntax in Textile as described here: https://textile-lang.com/doc/footnotes Previously, these lines would be interpreted as a new paragraph beginning with "fn3^." in text.
2023-01-29ODT reader: fix blockquote indent detectionDaniel Kessler
The ODT reader is supposed to detect blockquotes by checking a paragraph style's indentation level. But it's broken for two reasons: * The parser fails on non-integers. So "1in" will get read as 25mm, but "1.0in" fails. By default, the Quotations style is "0.3937in". * The reader doesn't check indentation levels of parent styles. In my test documents, LibreOffice often creates child styles for individual paragraphs, so it's important to check parents (ODT files created by the Pandoc ODT writer don't have this issue though). I added a new test "blockquote2" whose ODT file is generated directly from the corresponding Markdown file with pandoc. Fixes #3437.
2023-01-25Ensure that automatically set variables ...John MacFarlane
`pandoc-version`, `outputfile`, `title-prefix`, `epub-cover-image`, `curdir`, `dzslides-core` can be overridden by `--variable` on the command line. Previously they would create lists in the template Context, which is not desirable.
2023-01-23LaTeX reader: Fix bug in macro resolution for environments.John MacFarlane
This is a regression in pandoc 3.0 that affects environments with arguments. Closes #8573.
2023-01-20HTML writer: don't omit newlines in task lists.John MacFarlane
2023-01-20HTML writer: don't disable checkboxes in task lists.John MacFarlane
Closes #8562.
2023-01-16Add tests for org tagsAlbert Krewinkel
These were intended to be part of commit 0cc908519.