summaryrefslogtreecommitdiff
path: root/test
AgeCommit message (Collapse)Author
2022-07-30Support rowspans and colspans in grid tables (#8202)Albert Krewinkel
* Add tests for zero-width and fullwidth chars in grid tables * T.P.Parsing: simplify `gridTableWith'`, `gridTableWith` [API Change] The functions `gridTableWith` and `gridTableWith'` no longer takes a boolean argument that toggles whether a table head should be parsed: both, tables with heads and without heads, are always accepted now. * Support colspans, rowspans, and multirow headers in grid tables. Grid tables in Markdown, reStructuredText, and Org can now contain cells spanning over multiple columns and/or multiple rows; table headers containing multiple rows are supported as well. Note: the markdown writer does not yet support these more complex grid table features.
2022-07-30Add tests for zero-width and fullwidth chars in grid tablesAlbert Krewinkel
2022-07-28MediaWiki reader: allow HTML comment after row start.John MacFarlane
Closes #8110.
2022-07-28DokuWiki reader: support latex plugin and math.John MacFarlane
The `tex_math_dollars` extension is now supported for `dokuwiki` (but off by default). Content inside `<latex>...</latex>` is parsed as raw LaTeX inline, and inside `<LATEX>..</LATEX>` as raw LaTeX block. In addition, this commit changes the behavior of `<php>...</php>` so that instead of producing a code block, it produces raw HTML with `<?php ... ?>`. Closes #8178.
2022-07-25HTML writer: Allow "spanlike" classes to be combined.John MacFarlane
Previously classes like "underline" and "marked" had to be the first class in a span in order for the span to be interpreted as a "ul" or "mark" element. This commit allows these special classes to be "stacked," e.g. `[test]{.mark .underline}`; in addition, the special classes are no longer required to come first in the list of classes. See #8194 for context.
2022-07-25Test for #5795: remove redundant 'dfn' classesJohn MacFarlane
2022-07-18Unescape characters in `\lstinline` inside `\passthrough`.John MacFarlane
For full motivation, see #1629 ; this improves on 99e24cf18337b0b460005bf77e367783c34b75e7. Closes #8179.
2022-07-16RST writer: Fix missing spaces with nested inlines.John MacFarlane
Previously spaces around links inside italics were omitted. Closes #8182.
2022-07-12ms template: redefine rather than removing .CH macro.John MacFarlane
This responds to feedback in #8175.
2022-07-11Use latest dev citeprocJohn MacFarlane
2022-07-07RTF reader: support `\nosupersub`.John MacFarlane
Closes #8170.
2022-07-06Use `formatCode` from #7525 in HTML and MediaWiki (#8162)Elliot Bobrow
Move formatting from inside inline code elements to the outside in order to retain formatting.
2022-07-04Ensure that Nulls are ignored in creating slide shows.John MacFarlane
Also ensure that Nulls are ignored in sectionification by `makeSections`. Closes #8155.
2022-07-03Remove Muse reader round-trip tests.John MacFarlane
These are nondeterministic and have repeatedly failed on strange edge cases. The Muse reader's maintainer has not been active, and it isn't worth developer time to chase down these problems.
2022-06-23Remove extra soft break for tasklist (#8142)black-desk
Browser will display the extra newline character between checkbox and text as a space, which make tasklist items cannot be aligned. I just remove it.
2022-06-22Ensure that metadata values w/o trailing newlines are...John MacFarlane
parsed as inlines, as the manual states. Previously, they were parsed as inlines if they would otherwise have been a single Plain or Para, but otherwise left unchanged. This led to some quirky results (e.g. #8143). We now use the general function `blocksToInlines` from T.P.Shared.
2022-06-21ConTeXt writer: support complex table structures. (#8116)Albert Krewinkel
The following table feature are now supported in ConTeXt: - colspans, - rowspans, - multiple bodies, - row headers, and - multi-row table head and foot. The wrapping `placetable` environment is also given a `reference` option with the table identifier, enabling referencing of the table from within the document.
2022-06-20LaTeX: Handle formatted text inside code inline (#8129)Elliot Bobrow
Add `formatCode` function to Text.Pandoc.Shared [API change]. Use this in the LaTeX reader so that e.g. `\texttt{\textbf{bold code}}` is parsed as `Strong [Code ("",[],[]) "bold code"]`.
2022-06-13LaTeX reader: improve mathEnvWith.John MacFarlane
When converting e.g. an align environment to an aligned environment inside a Math element, we need to include a newline before the `\end{aligned}`, since the previous line might end in a comment. Closes #8122.
2022-06-10TikiWiki: support underlined textAlbert Krewinkel
2022-06-06ConTeXt writer: use "sectionlevel" environment for headings (#8106)Albert Krewinkel
The document hierarchy is now conveyed using the `\startsectionlevel`/`\stopsectionlevel` by default. This makes it easy to include pandoc-generated snippets in documents at arbitrary levels. The more semantic environments "chapter", "section", "subsection", etc. are used if the `--top-level-division` command line parameter is set to a non-default value. Closes: #5539
2022-06-06Muse tests: do no try to roundtrip strings containing \DEL charAlbert Krewinkel
Fixes: #8108
2022-06-04ConTeXt writer: unify link handling (#8096)Albert Krewinkel
Autolinks, i.e. links with content that's the same as the linked URL, are now marked with the `\url` command. All other links, both internal and external, are created with the `\goto` command, leading to shorter, slightly more idiomatic code. As before, autolinks can still be styled via `\setupurl`, other links via `\setupinteraction`.
2022-06-02makeSections: don't make a section for a div with class "fragments".John MacFarlane
Closes #8098.
2022-06-02HTML writer: fix bug with `--number-offset`.John MacFarlane
This formerly caused section divs to be produced, even when `--section-divs` was not specified. Closes #8097.
2022-06-01LaTeX writer: Improve grouping with autocites.John MacFarlane
Closes #8088.
2022-06-01Fix LaTeX tests for tables with colspansAlbert Krewinkel
2022-05-31Require skylighting 0.12.3.1 and update tests.John MacFarlane
2022-05-20Org reader: support line selection in INCLUDE directives. (#8060)Brian Leung
2022-05-18ICML writer: support custom-style attribute on Table.John MacFarlane
Closes #8079.
2022-05-16AsciiDoc writer: fix commas in link text.John MacFarlane
Commas in link text trigger interpretation of attributes. To block this, we replace them with numeric entities. Closes #8070.
2022-05-11Improved reading <xref> elements in DocBook files (#8065)Frerich Raabe
<xref> elements can also be used to link to <figure> elements. Alas, the DocBook reader was not aware of this and thus generated a link text which just said 'figure_title'. https://tdg.docbook.org/tdg/4.5/figure.html explains that <figure> elements can contain <title> elements, so let's try to use that if it is available.
2022-05-03RIS reader: get right order of names.John MacFarlane
Closes #8055.
2022-05-02Org reader: allow attrs for Org tables. (#8049)Brian Leung
Tables with attributes are no longer wrapped in Div elements; attributes are added directly to the table element.
2022-04-28HTML writer: avoid doubled style attribute...John MacFarlane
when height and width are added to style because of an image, but the image already has a style attribute. Closes #8047.
2022-04-26HTML writer: Add 'footnotes' identifier to footnotes section.John MacFarlane
Closes #8043.
2022-04-26Fix tests after changes to JATS templateAlbert Krewinkel
2022-04-21HTML writer: do not include the deprecated doc-endnote role.John MacFarlane
doc-endnote was deprecated in DPUB-ARIA 1.1. Closes #8030.
2022-04-20Don't parse inline notes with blank lines inside.John MacFarlane
Previously we parsed them but discarded part of the content. Closes #8028.
2022-04-08Commonmark/markua/gfm writers: avoid excessive indentation...John MacFarlane
on bullet lists. They are now nested by 2 spaces instead of 4. See #8011.
2022-04-08Shared.taskListItemToAscii: handle asciidoctor's characters.John MacFarlane
Asciidoctor uses different unicode characters for task lists; we should recognize them too and be able to convert them to ascii task lists in formats like gfm. Closes #8011.
2022-04-01Fix regression with `ascii_identifiers` and Turkish undotted i.John MacFarlane
Closes #8003.
2022-03-30LaTeX writer: add () after booktabs rules.John MacFarlane
These commands take optional arguments with () and [], which can lead to problems if the content of the table cell begins with these characters. Closes #8001.
2022-03-29LaTeX writer: support `page`,`trim`,`clip` attributes on images.John MacFarlane
These are actually supported by `\includegraphics`, though this is not well documented. See https://tex.stackexchange.com/questions/7938/pdflatex-includegraphics-and-multi-page-pdf-files Partially addresses #7181.
2022-03-29RST reader: wrap math in Span to preserve attributes (#7998)Albert Krewinkel
Math elements with a name, classes, or other fields are wrapped in a `Span` with these attributes.
2022-03-28JATS writer: Fix handling of CSL variable 'page'.John MacFarlane
Not 'pages' as we had before. It should go to 'lpage' and 'rpage', not 'page-range'. See https://jats.nlm.nih.gov/archiving/tag-library/1.1/element/page-range.html Fixed some mistakes in test #7042.
2022-03-27JATS writer: avoid doubled ref-list element.John MacFarlane
Previously when generating JATS with the `element_citations` extension enabled, the references were put in a doubly-nested ref-list element (`<ref-list><ref-list>...`). This is now fixed. Closes #7990.
2022-03-22JATS writer: encode author "others" as `<etal/>`Albert Krewinkel
Citeproc adopted the BibTeX convention to use the author name "others" when there are additional authors that are not named. JATS uses the `<etal>` element for this.
2022-03-21LaTeX template: Move urlstyle and xurl commands to after hyperref.John MacFarlane
Closes #7978.
2022-03-14Remove `native_divs` from allowed gfm extensions.John MacFarlane
This allows `<div>` to be suppressed using `-raw_html`. Previously `native_divs` was enabled but could not be suppressed, because it was not in the list of available extensions for commonmark-based formats. Closes #7965.