summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2022-06-10Allow placing custom readers and writers in data subdir (#8112)Albert Krewinkel
* PandocMonad: add new function `findFileWithDataFallback` [API Change] * Custom readers: allow files to be placed in "readers" data dir * Custom writers: allow files to be placed in "writers" data dir
2022-06-10TikiWiki: support underlined textAlbert Krewinkel
2022-06-09Lua: use only old ByteString functions.Albert Krewinkel
The function `takeWhileEnd` was added with bytestring-0.11.3.0, but older versions should be supported as well. Fixes the previous commit.
2022-06-08Lua: Simplify module loading code.Albert Krewinkel
Modules are now loaded directly; the special pandoc Lua package searcher is no longer necessary and has been removed.
2022-06-08org reader: recognize {webp,jxl} files as imagesYI
2022-06-06Lua: add function pandoc.mediabag.fill (#8104)Albert Krewinkel
The function allows to fill the mediabag with all images in a given document. Images that cannot be fetched are replaced with a Span containing the image description.
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-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-05Docx writer: prevent crashing when handling invalid tablesAlbert Krewinkel
Tables with different numbers of cells per row would sometimes crash pandoc. This fix prevents this by cutting off overlong rows. Fixes: #8102
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 treatment of extensions for `\input` in LaTeX reader.John MacFarlane
Previously we required a `.tex` extension, but TeX allows any extension for `\input` (as opposed to `\include`). Closes #8092.
2022-06-01LaTeX writer: fix width of multicolumn cells.Albert Krewinkel
Cells spanning multiple columns must be given an explicit width, calculated from the table properties. Fixes: #8090
2022-05-31JATS reader: support edition in references.John MacFarlane
Closes #8087. Note: we strip off any non-digits, since CSL wants "4" rather than "4th ed."
2022-05-20Org reader: support line selection in INCLUDE directives. (#8060)Brian Leung
2022-05-19Add tex_math_dollars to gfm default extensions.John MacFarlane
2022-05-19Beamer: allow containsverbatim as alternative to fragile.John MacFarlane
Closes #8080.
2022-05-18ICML writer: support custom-style attribute on Table.John MacFarlane
Closes #8079.
2022-05-16Docx writer: add w:lang to rPr for Span and Div with lang attribute.John MacFarlane
So that Word can know that "Apfel" is not a spelling error. Closes #8026.
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-15Asciidoc writer: fix underline.John MacFarlane
We were rendering it as `+++text+++`; this is now changed to `[.underline]#text#`. See comment at <https://github.com/jgm/pandoc/issues/8070#issuecomment-1126883824>.
2022-05-14Allow environment variable interpolation in highlight-style in defaults ↵Jaehwang Jung
files (#8073)
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-11Allow environment variable interpolation in pdf-engine...John MacFarlane
in defaults files. Note that pdf-engine can take an absolute path, so this is useful. See #8061.
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-24Add tsv (tab separated values) as an input format.John MacFarlane
We us ethe simple spec at <https://www.iana.org/assignments/media-types/text/tab-separated-values>. API change: Text.Pandoc.Readers.CSV now exports `readTSV`. Internal change: In Text.Pandoc.CSV, CSVOptions has changed so that csvQuote takes a Maybe value. Closes #7974.
2022-04-22Markdown writer: disable soft wrapping when `hard_line_breaks` enabled.John MacFarlane
We were already doing this for `markdown`; this commit does the same thing for `markua` and `commonmark` and `gfm`. Closes #8035.
2022-04-22RIS reader: make parser more forgiving.John MacFarlane
Allow blank lines after entries. Allow entries with no space after the `-`, provided they just have a newline, e.g. `DB -\n`. Closes #8034.
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-19LaTeX reader: support `\includesvg`.John MacFarlane
Closes #8027.
2022-04-18Fix compiler warnings from last commit.John MacFarlane
2022-04-18Don't replace links with empty spans in TOC.John MacFarlane
This was a performance enhancement which probably isn't too significant. Closes #8020. Note that, with this change, T.P.Shared.deLink isn't used anywhere in the code base; perhaps we should deprecate it (or remove it, but this would be an API change).
2022-04-12Add 'nightly' flag.John MacFarlane
This causes a `-nightly-COMPILEDATE` suffix to be added the the output of `--version`. This is used in the nightly CI builds. Closes #8016.
2022-04-12Revert "Add 'nightly' flag and build with this for nightlies."John MacFarlane
This reverts commit f81f5a20900ca9d8ad9971b6f57c11281ab2b048.
2022-04-12Revert "Add CPP to avoid warning with nightly flag disabled."John MacFarlane
This reverts commit 30f4f85f91d7fa8719d315a9045fb82ff9b0f032.
2022-04-11Add CPP to avoid warning with nightly flag disabled.John MacFarlane
2022-04-11Add 'nightly' flag and build with this for nightlies.John MacFarlane
This flag causes a suffix '-nightly-YYYY-MM-DD' to be added to the version for nightlies. Closes #8016.
2022-04-11Revert "Add info about git commit and date to `--version` info."John MacFarlane
This reverts commit 9d7c01e4a412d488ca958df2d74a6231f24483c8.
2022-04-11Add info about git commit and date to `--version` info.John MacFarlane
See #8016.
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-06JATS reader: strip `ref-` prefix from ref id in xref.John MacFarlane
This completes commit 807a574e9d33fcf66928388e342cc1436eb2346e. Closes #8007.
2022-04-02LaTeX reader: avoid a thunk in sRawTokens.John MacFarlane
2022-04-01Fix regression with `ascii_identifiers` and Turkish undotted i.John MacFarlane
Closes #8003.
2022-03-31Revert "Parsing.General: make manyChar1, etc. more strict."John MacFarlane
This reverts commit c1ab48874c04142988505ca5c5caa6626bb68211. Mistake in measurement.