aboutsummaryrefslogtreecommitdiff
path: root/test/command
AgeCommit message (Collapse)AuthorFilesLines
2020-08-31Fix tests for skylighting 0.10Albert Krewinkel2-8/+8
2020-08-14Change SIRange to SIrange (#6617)Emerson Harkin1-9/+9
2020-07-23Minimal support for SIRange in LaTeX reader (#6418)Emerson Harkin1-0/+59
Add support for `\SIRange{firstnumber}{secondnumber}{unit}` provided by siunitx. An en-dash is used instead of localized "to".
2020-07-23Further improvements to ams theorem support, and a test.John MacFarlane1-0/+41
See #1608.
2020-07-21RST reader: fix csv tables with multiline cells.John MacFarlane2-0/+30
Closes #6549.
2020-07-19Remove use of cmark-gfm for commonmark/gfm rendering.John MacFarlane4-7/+7
Instead rely on the markdown writer with appropriate extensions. Export writeCommonMark variant from Markdown writer. This changes a few small things in rendering markdown, e.g. w/r/t requiring backslashes before spaces inside super/subscripts.
2020-07-01HTML writer: improve alt-text/caption handling for HTML5Albert Krewinkel4-6/+6
Screen readers read an image's `alt` attribute and the figure caption, both of which come from the same source in pandoc. The figure caption is hidden from screen readers with the `aria-hidden` attribute. This improves accessibility. For HTML4, where `aria-hidden` is not allowed, pandoc still uses an empty `alt` attribute to avoid duplicate contents. Closes: #6491
2020-06-23LaTeX reader: Retain the Div around tables with attributes.John MacFarlane1-25/+26
We'll need this to store table attributes until all writers are adjusted to react to attributes on the Table element.
2020-06-23Add test for #6481.John MacFarlane1-0/+38
2020-05-20Add "summary" to list of block-level HTML tags.John MacFarlane1-0/+18
Closes #6385. (The summary element needs to be the first child of details and should not be enclosed by p tags.) NOTE: you need to include a blank line before the closing `</details>`, if you want the last part of the content to be parsed as a paragraph.
2020-05-18Use CSS in favor of <br> for display math (#6372)Lila1-2/+2
Some CSS to ensure that display math is displayed centered and on a new line is now included in the default HTML-based templates; this may be overridden if the user wants a different behavior.
2020-05-12LaTeX writer: create hypertarget for links with identifier.John MacFarlane1-0/+6
Closes #6360.
2020-05-12Use latest skylighting.John MacFarlane2-8/+8
This adds `aria-hidden="true"` to the empty a elements, which helps people who use screen readers.
2020-05-02LaTeX Writer: Add support for customizable alignment of columns in beamer ↵andrebauer1-0/+40
(#6331) Add support for customizable alignment of columns in beamer. Closes #4805, closes #4150.
2020-04-24RST writer: properly handle images with same alt text.John MacFarlane1-0/+14
Previously we created duplicate references for these in rendering RST. Closes #6194.
2020-04-22AsciiDoc writer: add blank line after Div.John MacFarlane1-0/+18
Closes #6308.
2020-04-17Markdown writer: avoid unnecessary escapes before intraword `_`John MacFarlane1-0/+14
when `intraword_underscores` extension is enabled. Closes #6296.
2020-04-17LaTeX reader: don't put surrounding Div around Table.John MacFarlane1-26/+25
This reverts a change in the last release; the Div is no longer needed, because we can now put the id right in the Table's attributes. However, writers may still need to be modified to do something with the id in a Table (e.g. create an anchor), so in the short term we may lose the ability to link to tables in some writers.
2020-04-15Use the new builders, modify readers to preserve empty headersdespresc8-44/+8
The Builder.simpleTable now only adds a row to the TableHead when the given header row is not null. This uncovered an inconsistency in the readers: some would unconditionally emit a header filled with empty cells, even if the header was not present. Now every reader has the conditional behaviour. Only the XWiki writer depended on the header row being always present; it now pads its head as necessary.
2020-04-15Adapt to the removal of the RowSpan, ColSpan, RowHeadColumns accessorsdespresc20-205/+205
2020-04-15Adapt to the newest Table type, fix some previous adaptation issuesdespresc20-421/+593
- Writers.Native is now adapted to the new Table type. - Inline captions should now be conditionally wrapped in a Plain, not a Para block. - The toLegacyTable function now lives in Writers.Shared.
2020-04-15Implement the new Table typedespresc20-215/+520
2020-04-15JATS reader: handle "label" element in section title.John MacFarlane1-0/+8
Closes #6288.
2020-04-11LaTeX writer: ensure that `-M csquotes` works even in fragment mode.John MacFarlane1-0/+6
Closes #6265.
2020-04-11HTML reader: support <bdo> (#6271)Tristan de Cacqueray1-0/+21
See https://developer.mozilla.org/en-US/docs/Web/HTML/Element/bdo Closes #5794
2020-04-07LaTeX reader: better handling of `\lettrine`.John MacFarlane1-2/+2
- SmallCaps instead of Span for the part after the initial capital. - Ensure that both arguments are parsed, so that in Markdown both are treated as raw LateX. (Closes #6258.)
2020-02-17Revert "Allow specifying string value in metadata using `!!literal` tag."John MacFarlane1-10/+0
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 MacFarlane1-0/+10
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 Riley1-0/+32
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 MacFarlane3-16/+17
- 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 MacFarlane1-0/+31
Closes #6137.
2020-02-10Fix spurious dots in markdown_mmd metadata outputJohn MacFarlane1-0/+12
Closes #6133 (regression).
2020-02-08reveal.js: ensure that pauses work even in title slides.John MacFarlane1-0/+18
Closes #5819.
2020-02-05MediaWiki writer: prevent triple `[[[`.John MacFarlane1-0/+10
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 MacFarlane1-0/+7
Closes #6114.
2020-02-03Fix duplicate frame classes in LaTeX/Beamer output.John MacFarlane1-0/+27
Close #6107.
2020-01-31csv reader: allow empty cells.John MacFarlane1-1/+5
2020-01-31Add Text.Pandoc.Readers.CSV (readCSV).John MacFarlane1-0/+17
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 MacFarlane1-0/+6
Another regression from 2.7.x. Closes #6062.
2020-01-10LaTeX reader: allow beamer overlays for all commands in all raw tex.John MacFarlane1-0/+8
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 MacFarlane1-0/+11
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 MacFarlane1-0/+91
Columns in title slides were causing problems with slide division. Closes #6033.
2020-01-07Reveal.js writer: restore old behavior for 2D nesting.John MacFarlane1-1/+19
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 MacFarlane1-0/+43
Closes #6030.
2020-01-05Fix revealjs slide structure regression with certain slide levels.John MacFarlane1-0/+35
Partially addresses #6030.
2019-12-27Fix parsing bug affected indented code after raw HTML.John MacFarlane2-0/+37
Closes #6009, #5360.
2019-12-18Org reader: wrap named table in div, using name as idAlbert Krewinkel1-9/+10
Closes: #5984
2019-12-17Adjust test to work with Windows (I hope).John MacFarlane1-1/+1
2019-12-17Improved --toc generation.John MacFarlane1-0/+56
2019-12-17Improved makeSections so we don't get doubled attributes.John MacFarlane2-4/+4
Closes #5986.