summaryrefslogtreecommitdiff
path: root/test/command
AgeCommit message (Collapse)Author
2020-02-17Revert "Allow specifying string value in metadata using `!!literal` tag."John MacFarlane
This reverts commit 3493d6afaa6586c46898cf8bdb0c45bb70d31f28. This might be worth considering in the future, but let's not do it yet...the additional complexity needs a better justification.
2020-02-17Allow specifying string value in metadata using `!!literal` tag.John MacFarlane
This is experimental. Normally metadata values are interpreted as markdown, but if the !!literal tag is used they will be interpreted as plain strings. We need to consider whether this can still be implemented if we switch back from HsYAML to yaml for performance reasons.
2020-02-14Fixes: group biblatex citations even with prefix and suffix (#6058)Ethan Riley
Closes #5849. Previously biblatex citations were only grouped if there was no prefix. This patch allows them to be grouped in subgroups split by prefixes and suffixes, which allows better citation sorting.
2020-02-12LaTeX reader: improve caption and label parsing.John MacFarlane
- Don't emit empty Span elements for labels. - Put tables with labels in a surrounding Div.
2020-02-11LaTeX reader: resolve `\ref` to table numbers.John MacFarlane
Closes #6137.
2020-02-10Fix spurious dots in markdown_mmd metadata outputJohn MacFarlane
Closes #6133 (regression).
2020-02-08reveal.js: ensure that pauses work even in title slides.John MacFarlane
Closes #5819.
2020-02-05MediaWiki writer: prevent triple `[[[`.John MacFarlane
This confuses mediawiki's parser. So we insert a `<nowiki/>` no-op between a literal `[` and a link. Closes #6119.
2020-02-05LaTeX reader: skip comments in more places where this is needed.John MacFarlane
Closes #6114.
2020-02-03Fix duplicate frame classes in LaTeX/Beamer output.John MacFarlane
Close #6107.
2020-01-31csv reader: allow empty cells.John MacFarlane
2020-01-31Add Text.Pandoc.Readers.CSV (readCSV).John MacFarlane
This adds csv as an input format. The CSV table is converted into a pandoc simple table. Closes #6100.
2020-01-12HTML writer: fix duplicate attributes on headings.John MacFarlane
Another regression from 2.7.x. Closes #6062.
2020-01-10LaTeX reader: allow beamer overlays for all commands in all raw tex.John MacFarlane
This affecs parsing of raw tex in LaTeX and in Markdown and other formats. Closes #6043.
2020-01-08LaTeX reader: improve parsing of raw environments.John MacFarlane
If parsing fails in a raw environment (e.g. due to special characters like unescaped `_`), try again as a verbatim environment, which is less sensitive to special characters. This allows us to capture special environments that change catcodes as raw tex when `-f latex+raw_tex` is used. Closes #6034.
2020-01-07Fix regression in handling of columns in beamer slides.John MacFarlane
Columns in title slides were causing problems with slide division. Closes #6033.
2020-01-07Reveal.js writer: restore old behavior for 2D nesting.John MacFarlane
The fix to #6030 actually changed behavior, so that the 2D nesting occurred at slide level N-1 and N, instead of at the top-level section. This commit restores the 2.7.3 behavior. If there are more than 2 levels, the top level is horizontal and the rest are collapsed to vertical. Closes #6032.
2020-01-05Fix regression in beamer slide structure with certain slide levels.John MacFarlane
Closes #6030.
2020-01-05Fix revealjs slide structure regression with certain slide levels.John MacFarlane
Partially addresses #6030.
2019-12-27Fix parsing bug affected indented code after raw HTML.John MacFarlane
Closes #6009, #5360.
2019-12-18Org reader: wrap named table in div, using name as idAlbert Krewinkel
Closes: #5984
2019-12-17Adjust test to work with Windows (I hope).John MacFarlane
2019-12-17Improved --toc generation.John MacFarlane
2019-12-17Improved makeSections so we don't get doubled attributes.John MacFarlane
Closes #5986.
2019-12-17Added test for #5986.John MacFarlane
2019-12-17Add section-divs command test (failing).John MacFarlane
2019-12-13Org reader: add table labels to caption if both are presentAlbert Krewinkel
The table `#+NAME:` or `#+LABEL:` is added to the table's caption in the form of an empty span with the label set as the span's ID. Closes: #5984
2019-12-07Fix --toc-depth regression in 2.8.John MacFarlane
Closes #5967.
2019-12-05Roll back part of of `--shift-heading-level-by` change.John MacFarlane
With positive heading shifts, starting in 2.8 this option caused metadata titles to be removed and changed to regular headings. This behavior is incompatible with the old behavior of `--base-header-level` and breaks old workflows, so with this commit we are rolling back this change. Now, there is an asymmetry in positive and negative heading level shifts: + With positive shifts, the metadata title stays the same and does not get changed to a heading in the body. + With negative shifts, a heading can be converted into the metadata title. I think this is a desirable combination of features, despite the asymmetry. One might, e.g., want to have a document with level-1 section headigs, but render it to HTML with level-2 headings, retaining the metadata title (which pandoc will render as a level-1 heading with the default template). Closes #5957. Revises #5615.
2019-12-05HTML writer: add task-list class to ul if all elements are task list items.John MacFarlane
This will allow styling unordered task lists in a way that omits the bullet.
2019-12-05Fix makeSections so it doesn't turn column divs into sections.John MacFarlane
2019-11-25RST writers: Use grid tables for 1-column tables.John MacFarlane
With simple tables, we have a clash with heading syntax. Closes #5936.
2019-11-19Improve markdown escaping in list items.John MacFarlane
Closes #5918.
2019-11-15RST writer: Improve spacing for tables with no width information.John MacFarlane
If a simple table would be too wide, we use a grid table. The code for generating grid tables has been adjusted to give more intelligent column widths when widths aren't given. (This also affects the markdown writer.) Closes #5899.
2019-11-14Change optInputFiles to a `Maybe [FilePath]`.John MacFarlane
`Nothing` means: nothing specified. `Just []` means: an empty list specified (e.g. in defaults). Potentially these could lead to different behavior: see #5888.
2019-11-14Allow combining `-Vheader-includes` and `--include-in-header`.John MacFarlane
Closes #5904.
2019-11-14Fixed some test locations and put test data files in extra-source-files.John MacFarlane
2019-11-14Fix regression preventing header-includes from being set using -V.John MacFarlane
See #5904.
2019-11-13Add test for #5881.John MacFarlane
2019-11-13Ensure there's a blank line before RST tables.John MacFarlane
Closes #5898.
2019-11-11Markdown reader: fix small super/subscript issue.John MacFarlane
Superscripts and subscripts cannot contain spaces, but newlines were previously allowed (unintentionally). This led to bad interactions in some cases with footnotes. E.g. ``` foo^[note] bar^[note] ``` With this change newlines are also not allowed inside super/subscripts. Closes #5878.
2019-11-11Change the implementation of `htmlSpanLikeElements` and implement `<dfn>` ↵Florian Beeres
(#5882) * Add HTML Reader support for `<dfn>`, parsing this as a Span with class `dfn`. * Change `htmlSpanLikeElements` implementation to retain classes, attributes and inline content.
2019-11-07DocBook reader: Fix bug with entities in mathphrase element.John MacFarlane
Closes #5885.
2019-11-07Change merge behavior for metadata.John MacFarlane
Previously, if a document contained two YAML metadata blocks that set the same field, the conflict would be resolved in favor of the first. Now it is resolved in favor of the second (due to a change in pandoc-types). This makes the behavior more uniform with other things in pandoc (such as reference links and `--metadata-file`).
2019-11-03Place caption before table in OpenDocument format. (#5869)Dmitry Pogodin
Closes #5681.
2019-11-02LaTeX reader: Fixed dollar-math parsing...John MacFarlane
...to ensure that space is left between a control seq and a following word that would otherwise change its meaning. Closes #5836.
2019-11-02Add test for #5836.John MacFarlane
2019-11-02Test for macro definitions in LaTeX preamble.John MacFarlane
2019-11-02Add test case for #5845.John MacFarlane
2019-10-29T.P.W.Shared: Changed gridTables so it does better at...John MacFarlane
...keeping the widths of columns. See #4320. Adjust test case for #4320.