summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2023-03-26Support typst as a pdf-engine.John MacFarlane
2023-03-25Add typst writer.John MacFarlane
See #8713.
2023-03-23T.P.App.CommandLineOptions: don't lowercase arg to `--from`/`--read`Albert Krewinkel
This prevented users to use custom writers with uppercase characters in their filenames. Format-normalization, including lower-casing of format identifiers, happens during format parsing.
2023-03-22Org reader: Allow zero width space as an escape characterChristian Christiansen
Allow the character U+200B to be used as an escape character as described in the Org-mode documentation https://orgmode.org/manual/Escape-Character.html Closes issue #8716.
2023-03-22DocBook reader: handle "book" for xref referencesAndres Freund
This also adds a test xref to book and part. See also 4ea0508e6 / #8712.
2023-03-21DocBook reader: handle `<part>`.John MacFarlane
Closes #8712.
2023-03-20T.P.Format: add new function `formatFromFilePaths` [API Change] (#8710)Albert Krewinkel
* T.P.Format: export `formatFromFilePaths` [API change] * Lua: add function `pandoc.format.from_path` * Update lua-filters.md * The old T.P.App.FormatHeuristics module has been removed. This is an alternative to #8693.
2023-03-20HTML reader: fix behavior with `-native_spans-raw_html`.John MacFarlane
Previously with this configuration, `<span>`s were not treated as inline elements at all. Closes #8711.
2023-03-20HTML writer: Remove redundant `nubOrd`.John MacFarlane
Now that we're doing `nubOrd` on classes at the end (when changing pandoc attributes to HTML attributes), we don't need to do it here.
2023-03-20Remove superfluous import.John MacFarlane
2023-03-20HTML writer: avoid duplicate classes.John MacFarlane
Closes #8705.
2023-03-17Docx writer: include abstract title.John MacFarlane
Closes #8702. Uses localized term for abstract.
2023-03-15HTML writer: use img element instead of embed for .svg.gz...John MacFarlane
and .png.gz etc. Closes #8699.
2023-03-14HTML writer footnotes changes:John MacFarlane
When `--reference-location=section` or `=block`, use an `aside` element for the notes rather than a `section`. When `--reference-location=section`, include the `aside` element inside the section element, rather than outside. (In slide shows, this option causes footnotes on a slide to be displayed at the bottom of the slide.) Closes #8695.
2023-03-14Remove confusing comment.John MacFarlane
2023-03-14Markdown writer: use implicit figures if there's a caption but no alt.Albert Krewinkel
Closes: #8689
2023-03-13Jira reader: add panel title as nested divAlbert Krewinkel
The title of a jira panel is added in a nested div as the first element of the div panel. Fixes: #8681
2023-03-10LaTeX writer: Add Chinese to Babel languages.John MacFarlane
2023-03-08Ms writer: fix handling of Figure.John MacFarlane
The Ms writer was never updated to handle the new Figure element now produced by the markdown reader. See #8660.
2023-03-08HTML writer: Use different structure for epub footnotes. (#8676)John MacFarlane
Many EPUB readers are thrown off by pandoc's current footnote output. Both the ol and the fact that the footnote backlink is at the end of the note seem to pose problems. With this commit, we now create a list of aside (or div) elements, instead of an ordered list. Each element begins with a note number that is linked back to the note reference. (So, the backlink occurs at the beginning rather than the end.) References: - https://kindlegen.s3.amazonaws.com/AmazonKindlePublishingGuidelines.pdf - http://kb.daisy.org/publishing/docs/html/notes.html See #8672, closes #5583. Thanks to @Porges and @lewer.
2023-03-07ICML writer: fix images with data.John MacFarlane
The Contents element should be inside Properties. Closes #8675.
2023-03-05JATS reader: avoid generating duplicate figure captions.John MacFarlane
Closes #8669.
2023-03-05DocBook reader: parse `figure` as a Figure element in the AST.John MacFarlane
Closes #8668.
2023-03-03Asciidoc writer: Properly escape `|` in table cells.John MacFarlane
Closes #8665.
2023-03-02EPUB reader: Give additional information in error...John MacFarlane
if the epub zip container can't be unpacked. See #8663.
2023-03-01Fix shadowing from last commit.John MacFarlane
2023-03-01Make sure TSV reader doesn't gobble tabs as whitespace.John MacFarlane
Closes #8661.
2023-03-01Org reader: accept empty tablesAlbert Krewinkel
Fixes: #8659
2023-02-28LaTeX table parser: also allow `6*c` in column spec.John MacFarlane
With no braces around `c`. See #8658.
2023-02-28LaTeX reader: fix multiplication syntax for tabular.John MacFarlane
We recognized `*{6}{...}` but not `*6{...}`. Closes #8658.
2023-02-24RST reader: align with spec in syntax for role names.John MacFarlane
In particular, we now allow colons in row names. Closes #8653.
2023-02-22Trap error in getAppUserDataDirectory.John MacFarlane
This can raise an error if pandoc is run in a non-user environment. Closes #8648.
2023-02-22LaTeX writer: do not use longtable foot with BeamerAlbert Krewinkel
The table foot is made part of the table body, as otherwise it won't show up in the output. The root cause for this is that longtable cannot detect page breaks in Beamer. Fixes: #8638
2023-02-18HTML writer: allow "track" element to be treated as block-level HTML.John MacFarlane
Closes #8629.
2023-02-18Docx reader: parse image alt texts in LibreOffice generated filesAlbert Krewinkel
LibreOffice tags images slightly differently than Word; this change lets the parses take that difference into account when looking for an image description (alt text).
2023-02-18JATS writer: include alt-text in `<graphic>`, `<inline-graphic>` elementsAlbert Krewinkel
Closes: #8631
2023-02-15fixed <xref> references to tables in DocBook filesPavol Otto
Closes #8626.
2023-02-15Retain metadata in processing sections for chunked HTML.John MacFarlane
Previously we suppressed metadata in all but the top page, in order to prevent the title block from being printed on every page. This prevented use of custom variables set by metadata fields. This commit moves to a better solution: a conditional in the default template restricts the title block to the top page. Closes #8620.
2023-02-15Remove unnecessary pragmas.John MacFarlane
2023-02-09Citeproc: Fix bug in metaValueToReference.John MacFarlane
This bug caused us to get some repeated content when converting MetaBlock to Inlines. Closes #8611.
2023-02-09PPTX writer: fix handling of simple figuresAlbert Krewinkel
This ensures that simple figures are displayed in the same way as before the introduction of a dedicated `Figure` constructor in the AST. Closes: #8565
2023-02-09Lua: add field `chunk_template` to WriterOptions objects [API change]Albert Krewinkel
The PathTemplate type exported from Text.Pandoc.Chunks is now an instance of the ToJSON and FromJSON classes. Closes: #8607
2023-02-05LaTeX writer: include short figure/table caption if one is given.Albert Krewinkel
Short captions are used by LaTeX when generating a the list of figures or list of tables. Adding a short caption will now overwrite the full caption in these lists.
2023-02-04Improve handling of `%` in bib(la)tex parsing.John MacFarlane
bibtex/biblatex seem to pass through an unescaped `%` inside braces or quotes; it won't escape the closing brace. So we'll do the same. This prevents the need for our previous special treatment of url and doi fields. Closes #8597.
2023-02-01Handle % in biblatex doi field.John MacFarlane
Closes #8595.
2023-01-30Add new `--chunk-template` option (closes #8581).John MacFarlane
* Add `--chunk-template` CLI option, allowing more control over the chunk filenames in chunked HTML output. * Text.Pandoc.App: Add `optChunkTemplate` constructor to Opt [API change]. * Text.Pandoc.Options: add `writerChunkTemplate` contsructor to WriterOptions [API change]. * Text.Pandoc.Chunks: add Data, Typeable, Generic instances for PathTemplate.
2023-01-29Add support for Textile footnote backlinks (#8585)Stephen Altamirano
Backlinking from footnotes is already the behavior of `Note` values when writing HTML. This adds parsing support for the explicit backlinking syntax in Textile as described here: https://textile-lang.com/doc/footnotes Previously, these lines would be interpreted as a new paragraph beginning with "fn3^." in text.
2023-01-29ODT reader: fix blockquote indent detectionDaniel Kessler
The ODT reader is supposed to detect blockquotes by checking a paragraph style's indentation level. But it's broken for two reasons: * The parser fails on non-integers. So "1in" will get read as 25mm, but "1.0in" fails. By default, the Quotations style is "0.3937in". * The reader doesn't check indentation levels of parent styles. In my test documents, LibreOffice often creates child styles for individual paragraphs, so it's important to check parents (ODT files created by the Pandoc ODT writer don't have this issue though). I added a new test "blockquote2" whose ODT file is generated directly from the corresponding Markdown file with pandoc. Fixes #3437.
2023-01-29Fix 3.0 regression with `--print-highlight-style` option.John MacFarlane
Closes #8586.
2023-01-28Textile reader: don't allow brackets in URLs.John MacFarlane
Closes #8582.