summaryrefslogtreecommitdiff
path: root/test/command
AgeCommit message (Collapse)Author
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-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-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-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-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-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-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-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-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-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.
2022-03-09LaTeX reader: allow inline groups starting with `\bgroup`.John MacFarlane
Closes #7953.
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-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-22Fix typos (#7934)Dimitris Apostolou
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-09Add command test for #7884.John MacFarlane
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-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.