aboutsummaryrefslogtreecommitdiff
path: root/test/command
AgeCommit message (Collapse)AuthorFilesLines
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.
2019-12-17Added test for #5986.John MacFarlane1-0/+16
2019-12-17Add section-divs command test (failing).John MacFarlane1-0/+25
2019-12-13Org reader: add table labels to caption if both are presentAlbert Krewinkel1-1/+1
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 MacFarlane1-0/+15
Closes #5967.
2019-12-05Roll back part of of `--shift-heading-level-by` change.John MacFarlane1-3/+2
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 MacFarlane1-4/+4
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 MacFarlane1-0/+28