aboutsummaryrefslogtreecommitdiff
path: root/test
AgeCommit message (Collapse)Author
2023-01-10Update copyright years, it's 2023!Albert Krewinkel
2023-01-06Add `code { hyphens: manual; }` to HTML and EPUB CSS.John MacFarlane
Closes #8530.
2023-01-05isURI: don't require non-ASCII characters to be escaped.John MacFarlane
Closes #8508.
2023-01-04Use `\toprule\noalign{}` instead of `\toprule()` in LaTeX tables.John MacFarlane
And similar for `\midrule` and `\bottomrule`. This facilitates redefining `\toprule`, `\midrule`, and `\bottomrule` without needing to gobble the ()s. Closes #8223.
2022-12-28Man writer: use UTF-8 by default for non-ascii characters.John MacFarlane
Only use groff escapes if `--ascii` has been specified on the command line (`writerPreferAscii`). Closes #8507.
2022-12-22Support "software" type in biblatex <-> CSL conversions.John MacFarlane
Closes #8504.
2022-12-20Shared: use LineBreak as default block sep in blocksToInlinesAlbert Krewinkel
This change also affects the `pandoc.utils.blocks_to_inlines` Lua function. Closes: #8499
2022-12-20Markdown writer: avoid HTML fallbacks in the generated TOC.Albert Krewinkel
The generated table of contents usually has IDs for each TOC link, allowing to link back to specific parts of the TOC. However, this leads to unidiomatic markup in formats like gfm, which do not support attributes on links and hence fall back to HTML. The IDs on TOC items are now removed in that case, leading to more aesthetic TOCs. Closes: #8131
2022-12-17ConTeXt writer: always use `\type` for inline codeAlbert Krewinkel
Inline codes that contained curly braces where previously rendered with `\mono`; this led to unexpected results when the presentation of `\type` was customized, as those changes would not have been applied to code rendered with `\mono`.
2022-12-16ConTeXt writer: fix previous commit for some unlisted sectionsAlbert Krewinkel
Unlist sections even if `--top-level-division` is not defined.
2022-12-16ConTeXt writer: add support for unlisted, unnumbered headingsAlbert Krewinkel
Closes: #8486
2022-12-15Textile reader: handle empty paragraphs.John MacFarlane
Also, if attributes are added explicitly to a paragraph, put it in a Div with the attributes. Closes #8487.
2022-12-08Shared: change defaultBlocksSeparator to PARAGRAPH SEPARATORAlbert Krewinkel
This Unicode char (U+2029) is intended as a semantic separator between paragraphs; it is cleaner and less intrusive than the pilcrow sign that we used before. This also changes the default `sep` value used in the `pandoc.utils.blocks_to_inlines` Lua function.
2022-11-29DocBook writer: Fix position of textobject.John MacFarlane
It is a child of `inlinemediaobject`, not `imageobject`. Add regression tests for #8437. Closes #8437.
2022-11-29AsciiDoc writer: in link text, only replace commas...John MacFarlane
...with entities when they're in Str elements. If a link contains an image, it may have attributes, and the commas there should not be converted. See #8437, #8070.
2022-11-29DocBook writer: don't indent contents of title element.John MacFarlane
2022-11-29DocBook writer: render image alt text using textobject element.John MacFarlane
See #8437.
2022-11-28Textile Reader:vkraven
- Adding a Parser to look for ordered list start attribute numbers if any - Add command test for ordered list start attributes (#2465) - Cleanup and formatting
2022-11-23Fix command test #7743 for WindowsAlbert Krewinkel
2022-11-19Docx reader: Support parsing of highlighted text.John MacFarlane
2022-11-19LaTeX writer: Use soul instead of ulem for strikeout, underline.John MacFarlane
This handles things like hyphenation, line breaks, and nonbreaking spaces better. Closes #8411.
2022-11-11Add tests for the new table featuresWout Gevaert
2022-11-11Change the Mediawiki writer to use the 'new' table structureWout Gevaert
Now MediaWiki tables can use colspan and rowspan :D
2022-11-10Add LaTeX variable `urlstyle` (#8429)Amar Al-Zubaidi
This is set to `same` by default, so users should not experience any change.
2022-11-09HTML template: remove default font size, line height...John MacFarlane
...and font family in default inline css. Closes #8423 (see comments there for motivation). `mainfont`, `fontsize`, and `linestretch` can still be used as before; the only difference is that we no longer provide opinionated defaults. This commit also adds a `maxwidth` variable that sets `max-width`; if not set, 36em is used as a default.
2022-11-04Change default background color of PDFs generated via HTML (#8422)Marcin Serwin
* Change default background color of PDFs generated via HTML * Update tests
2022-11-02Text.Pandoc.App: Change `parseOptionsFromArgs` and `parseOptions`... (#8406)John MacFarlane
They now return `Either OptInfo Opt`. Add `OptInfo` type. Add `handleOptInfo` function. This performs the IO actions for things like `--version` that were previously done in `parseOptionsFromArgs`. An argument for a `ScriptingEngine` has been added, to facilitate printing custom templates and custom extensions for Lua filters. (However, at this stage nothing is yet done with it.) [API change]
2022-11-02ipynb reader: add cell id to attachment filename...John MacFarlane
...when storing in the MediaBag. Otherwise attachments with the same name can overwrite each other. Closes #8415.
2022-10-27T.P.Writers.Shared `toTableOfContents`: handle nested Divs better.John MacFarlane
Closes #8402.
2022-10-24Rename T.P.Readers.Odt -> T.P.Readers.ODT.John MacFarlane
For consistency with Writers.ODT. Similarly, rename `readOdt` -> `readODT`. [API change]
2022-10-24Rename T.P.Writers.Docbook -> T.P.Writers.DocBook.John MacFarlane
Similarly, rename `writeDocbook` -> `writeDocBook`, for consistency with the DocBook reader's naming. [API change]
2022-10-21LaTeX reader: parse short table caption.John MacFarlane
See jgm/pandoc-types#103. This is not too useful yet, because writers don't do anything with the short caption.
2022-10-19Split Text.Pandoc.Version from Text.Pandoc.Shared.John MacFarlane
This new module exports `pandocVersion` and `pandocVersionText`, which are no longer exported from Text.Pandoc.Shared. [API change] Also, we now set the `pandoc-version` variable centrally rather than in the writers. One effect is the man writer now emits a comment with the pandoc version (this was intended before, judging from the template, but it didn't happen because the vairable wasn't set).
2022-10-18Revert "HTML reader: avoid duplicating any existing identifier..."John MacFarlane
This reverts commit e5fbddd3b6c0c7a3b76b313edbe55242e3b138fc.
2022-10-18Revert "Markdown reader: avoid duplicate ids with auto_identifiers."John MacFarlane
This reverts commit eff82cfe4de44a111250ce9ce3ecee2fd4d99924.
2022-10-18Markdown reader: avoid duplicate ids with auto_identifiers.John MacFarlane
We previously avoided generating a duplicate with another automatically generated identifier; now we also avoid duplicates with explicit identifiers that occur before the header for which an identifier is being generated. (Collisions are still possible for identifiers that occur after the header.) T.P.Shared: `makeSections` is also modified so it doesn't give bad results when the enclosing Div has a different identifier from the header, as may now happen.
2022-10-18HTML reader: avoid duplicating any existing identifier...John MacFarlane
with `auto_identifiers`. Closes #8383.
2022-10-17Adjust tests for CSS change; add CSS comments to mark...John MacFarlane
highlighting CSS and citations CSS in the source.
2022-10-16RST writer: improve inline escaping rules.John MacFarlane
Also a small performance optimization. Closes #8380.
2022-10-13Rollback parameterize options on scripting engine.John MacFarlane
Rolls back 0ab014ed1e5890e338792fab98aecc45cd889f99. We don't need this because we aren't needing to print the Lua version in options any more; we're handling `--version` now at the pandoc-cli level.
2022-10-10Org reader: make #+pandoc-emphasis-pre work as expected. (#8360)Amir Dekel
So far, `orgStateLastPreCharPos` wasn't updated appropriately after each parsing to native Str (by the parser `str`). In addition to solving this, the guard `notAfterString` in `emphasisStart` is removed to allow emphasis after Str at the first place.
2022-10-08Use texmath 0.12.5.4.John MacFarlane
2022-10-06LaTeX writer: add separator line between table's body and its foot.Albert Krewinkel
The writer uses features from the longtable package to define the table foot. Furthermore, the table's bottom rule is now part of the foot, where it previously was given as part of the body.
2022-10-06latex template: set fonts after Beamer themeJeremie Knuesel
Beamer themes such as metropolis and saintpetersburg change the default fonts. This change gives precedence to the user font settings by moving them after the loading of the Beamer theme.
2022-10-05HTML writer: replace deprecated aria roles for bibliography entries.John MacFarlane
`doc-biblioentry` -> `listitem` `doc-bibliography` -> `list` Closes #8354.
2022-10-02Officially deprecate writeJATS...John MacFarlane
in favor of writeJatsArchiving.
2022-10-01JATS writer: use `<break/>` for LineBreak...John MacFarlane
in the limited contexts that accept it. Closes #8344.
2022-09-30[API Change] Extract Lua code into new package pandoc-lua-engineAlbert Krewinkel
The flag 'lua53` must now be used with that package if pandoc is to be compiled against Lua 5.3.
2022-09-30[API Change] App: parameterize `options` over the scripting engineAlbert Krewinkel
2022-09-30[API Change] Filter: Parameterize `applyFilters` over scripting engine.Albert Krewinkel
Pass the scripting engine as a parameter so it can be swapped out.