summaryrefslogtreecommitdiff
path: root/test
AgeCommit message (Collapse)Author
2022-03-14LaTeX template: Fix regression with code in footnotes...John MacFarlane
...due to moving hyperref later in the template. Closes #7964.
2022-03-13Remove special redefinition of `\sout`.John MacFarlane
This used to be necessary to avoid problems with hyperref, when headings contain strikeout text, but it does not seem to be necessary any more (tested).
2022-03-13LaTeX template: Move `\sout` correction after hyperref.John MacFarlane
This fixes the previous change the default.latex.
2022-03-13LaTeX template: move hyperref near end of preamble.John MacFarlane
It now comes after header-includes and right before title, author, date, abstract. The hyperref documentation says: “Make sure it comes last of your loaded packages”. The reason is that it redefines many LaTeX commands. For example, loading it after titlesec (which might be loaded in header-includes) causes links in the table of contents to point to the wrong page (#7960). Closes #5811. Note: Users who presuppose hyperref in their header-includes will now have to add `\usepackage{hyperref}` to their header-includes to make it available there. (The redundant `\usepackage` will do no harm in this case.)
2022-03-11Org writer: stop indenting property drawers, quote blocksAlbert Krewinkel
This follows the current default org-mode behavior. Closes: #3245
2022-03-09LaTeX reader: allow inline groups starting with `\bgroup`.John MacFarlane
Closes #7953.
2022-03-08Add tests for idempotency of makeSections.John MacFarlane
See #7950.
2022-03-07Markdown writer: update escaping rules for `\`.John MacFarlane
We now escape `\` only if `raw_tex` is enabled or it is followed by a non-alphanumeric.
2022-03-01RST writer: support all standard metadata ("bibliographic") fields.John MacFarlane
2022-02-28DocBook reader: improve info parsing.John MacFarlane
Simplify metadata parsing code. Handle abstract as block-level content. Report skipped info elements with `--verbose`. See #7747.
2022-02-27LaTeX reader: rudimentary support for vbox.John MacFarlane
Closes #7939.
2022-02-26Markdown writer: don't produce redundant header identifier...John MacFarlane
when the `gfm_auto_identifiers` extension is set. Closes #7941.
2022-02-23Markdown reader: remove restriction on identifiers...John MacFarlane
so they no longer need to begin with a letter. Closes #7920.
2022-02-23Tests: improve location reporting of failing testsAlbert Krewinkel
2022-02-22Fix typos (#7934)Dimitris Apostolou
2022-02-21Org reader: More flexible LaTeX environmentsLucas V. R
Looking at the definition of `org-element-latex-environment-parser`, one sees that Org allows arbitrary arguments to LaTeX environments. In fact, it parses every char just after `\begin{xxx}` until `\end{xxx}` as content for the environment, so all the following examples are valid environments: ```org \begin{equation} e = mc^2 \end{equations} ``` ```org \begin{tikzcd}[ampersand replacement=\&] A \& B \\ C \& D \arrow[from=1-1, to=1-2] \arrow["f", from=2-1, to=2-2] \end{tikzcd} ```
2022-02-19LaTeX reader: Handle `\label` and `\ref` for footnotes.John MacFarlane
Closes #7930.
2022-02-13Add tests for #7919.John MacFarlane
Together with the update in commonmark-hs and previous changes, this closes #7919.
2022-02-13Markdown reader: allow one-column pipe tables with pipe on right.John MacFarlane
See #7919. We still need to implement this for gfm (commonmark). This must be done via changes in commonmark-hs.
2022-02-12JATS reader: improve handling of fn-group elements (#7914)Albert Krewinkel
Footnotes in `<fn-group>` elements are collected and re-inserted into the document as proper footnotes in the place where they are referenced. Fixes: #6348
2022-02-11Put id attributes on TOC entries #7907 (#7913)damon-sava-stanley
Naming scheme of id is "toc-" + id of linked to header/section. In Shared, will effect HTML, Markdown, Powerpoint, and RTF.
2022-02-11RST reader: fix treatment of headerless simple tables.John MacFarlane
We were producing a header with blank cells rather than no header. Closes #7902.
2022-02-11Add DokuWiki table alignment for #5202 (#7908)damon-sava-stanley
Closes #5202. Within each cell, determine the cell alignment as per https://www.dokuwiki.org/wiki:syntax#tables. The current approach, as per the issue treats the first row's alignment as determining that of the entire column. Given this, it wastes some work in determining an alignment for every cell.
2022-02-09Add command test for #7884.John MacFarlane
2022-02-09Fix parsing of epub footnotes.John MacFarlane
Closes #7884.
2022-02-06Docbook writer: Interpret links without contents as cross-references (#7360)Jan Tojnar
Links without text contents are converted to `<xref>` elements. DocBook processors will generate appropriate cross-reference text when presented with an xref element.
2022-02-05RIS reader: support ID and DO fields.John MacFarlane
2022-02-05Add RIS bibliography format reader.John MacFarlane
New module, Text.Pandoc.Readers.RIS, exporting readRIS. New input format `ris`. Closes #7894.
2022-02-04EndNote reader: add nocite as the other bib format readers do.John MacFarlane
2022-02-04Docx zotero/mendeley/endnote: add comma before locator in suffix.John MacFarlane
2022-02-04Add endnotexml reader test.John MacFarlane
2022-02-04Add mendeley citation tests.John MacFarlane
2022-02-03Docx reader: add bibliographic entries for zotero ADDIN.John MacFarlane
Bibliographic data embedded in citation items is added to the `references` metadata field. Closes #7840.
2022-02-03Add zoreto test with +citations.John MacFarlane
So far, though, we still don't include the references in the metadata.
2022-02-03Add zotero citation test with docx-citations.John MacFarlane
2022-01-31Custom writer: default to single quotes for stringsAlbert Krewinkel
Makes the code more consistent and makes it easier to use double quotes in strings, which is the usual quoting style used for HTML attributes. Closes: #7487
2022-01-29Use `[x]` not `[X]` for asciidoctor checklists.John MacFarlane
See #7798.
2022-01-28HTML writer: avoid duplicate "style" attributes on table cellsAlbert Krewinkel
Fixes: #7871
2022-01-28Don't read files outside of user data directoryEven Brenden
If a file path does not exist relative to the working directory, but it does exist relative to the user data directory, and it exists outside of the user data directory, do not read it. This applies to readDataFile and readMetadataFile in PandocMonad and, by extension, any module that uses these by passing them relative paths.
2022-01-23CommonMark reader: fix source position after YAML metadata.John MacFarlane
Closes #7863.
2022-01-21Fix compiler warnings.John MacFarlane
2022-01-21Update command tests to distinguish stderr and test exit status.John MacFarlane
2022-01-21Search for metadata files in $DATADIR/metadata (#7851)Even Brenden
If files specified with `--metadata-file` are not found in the working directory, look in `$DATADIR/metadata`. Expose new `readMetadataFile` function from Text.Pandoc.Class [API change]. Expose new `PandocCouldNotFindMetadataFileError` constructor for `PandocError` from Text.Pandoc.Error [API change]. Closes #5876.
2022-01-20Avoid putting a frame around speaker notes in beamer.John MacFarlane
If speaker notes (a Div with class 'notes') occur right after a section heading, but above slide level, the resulting `\note{..}` caommand should not be wrapped in a frame, as that will cause a spurious blank slide. Closes #7857.
2022-01-20HTML writer: don't break lines inside code elements.John MacFarlane
With the new (default) line wrapping of HTML, in conjunction with the default CSS which includes `code { whitespace: pre-wrap; }`, spurious line breaks could be introduced into inline code. Closes #7858.
2022-01-19Markdown writer: handle explicit column widths with pipe tables.John MacFarlane
If a table has explicit column width information *and* the content extends beyond the `--columns` width, we need to adjust the widths of the pipe separators to encode this width information. Closes #7847.
2022-01-19Remove unused file test/command/jats.cslAlbert Krewinkel
2022-01-18Docx writer: Separate tables even with RawBlocks between (#7844)Michael Hoffmann
Adjacent docx tables need to be separated by an empty paragraph. If there's a RawBlock between tables which renders to nothing, be sure to still insert the empty paragraph so that they will not collapse together. Fixes #7724
2022-01-16Support checklists in asciidoctor writer (#7832)Nikolai Korobeinikov
The checklist syntax (similar to `task_list` in markdown) seems to be an asciidoctor-only addition. Co-authored-by: ricnorr <ricnorr@yandex-tream.ru>
2022-01-16CSS in HTML template: adjust #TOC and h1 on mobile (#7835)Mauro Bieg