Commit Graph
13061 Commits
Author SHA1 Message Date
John MacFarlane dfac1239d9 Update filter documentation.
Remove example using pandoc API directly (we have other
docs for that and it was outdated).

Closes #6065.
2020-01-14 11:18:24 -08:00
John MacFarlane 9009bda179 Update versions for doclayout, doctemplates.
Closes #6031.  The new version of doclayout fixes a
memory leak that affected `--include-in-header` with
large files (and possibly other cases involving extremely
long lines).
2020-01-13 08:39:25 -08:00
John MacFarlane 157936c927 HTML writer: fix duplicate attributes on headings.
Another regression from 2.7.x. Closes #6062.
2020-01-12 15:18:37 -08:00
Albert Krewinkel 11e99409ce docs: capitalize Lua where it refers to the programming language name
This follows the advise on the Lua
website (https://www.lua.org/about.html#name):

> […] "Lua" is a name, the name of the Earth's moon and the name of the
> language. Like most names, it should be written in lower case with an
> initial capital, that is, "Lua".
2020-01-12 11:29:05 +01:00
Albert Krewinkel 6fd3d546a2 Lua filter docs: cross-link constructors and types
Thanks to @bpj for the idea.
2020-01-11 23:51:07 +01:00
Albert Krewinkel 4ede11a75f Lua: add methods insert, remove, and sort to pandoc.List
The functions `table.insert`, `table.remove`, and `table.sort` are added
to pandoc.List elements.  They can be used as methods, e.g.

    local numbers = pandoc.List {2, 3, 1}
    numbers:sort()     -- numbers is now {1, 2, 3}
2020-01-11 21:31:20 +01:00
Albert Krewinkel 23d81081d0 doc/lua-filters.md: sort pandoc.List methods alphabetically 2020-01-11 21:29:47 +01:00
Albert Krewinkel 802a566f93 data/pandoc.List.lua: improve internal documentation 2020-01-11 21:25:53 +01:00
Albert Krewinkel d09bcc7f16 doc/lua-filters.md: unify, fix anchors and internal links (#6061)
Links and anchors now follow consistent conventions, like lowercase-only
anchor names.

This breaks some links to specific sections in the document, but will
make it much easier to link documentation in the future.
2020-01-11 11:55:02 -08:00
Albert Krewinkel e98921ae57 pandoc.List.lua: make pandoc.List a callable constructor
It is now possible to construct a new List via `pandoc.List()` instead of
`pandoc.List:new()`.
2020-01-11 19:38:27 +01:00
Albert Krewinkel 57637f8aae Add tests for pandoc.List module 2020-01-11 17:42:32 +01:00
Albert Krewinkel 467ea4e02c docs/lua-filters.md: clarify filter function execution order (#6059) 2020-01-10 15:19:26 -08:00
John MacFarlane 42b915e656 LaTeX reader: allow beamer overlays for all commands in all raw tex.
This affecs parsing of raw tex in LaTeX and in Markdown and
other formats.

Closes #6043.
2020-01-10 08:26:33 -08:00
John MacFarlane 6cf7a9cd8e Add @tarleb to .github/FUNDING.yml since he is on sponsors now. 2020-01-10 08:03:33 -08:00
John MacFarlane 5b902abe87 Change setVariable to use Text instead of String.
This avoids some unnecessary unpacking.
(This is only an internal module so it's not an API change.)
2020-01-08 09:05:24 -08:00
John MacFarlane fc78be1140 LaTeX reader: improve parsing of raw environments.
If parsing fails in a raw environment (e.g. due to special
characters like unescaped `_`), try again as a verbatim
environment, which is less sensitive to special characters.

This allows us to capture special environments that change
catcodes as raw tex when `-f latex+raw_tex` is used.

Closes #6034.
2020-01-08 08:43:51 -08:00
Albert Krewinkel bef0133fe0 Jira writer: fix output of table headers
Headers were missing from tables.

Fixes: #6035
2020-01-07 22:11:51 +01:00
John MacFarlane ad5f7ecfce Fix regression in handling of columns in beamer slides.
Columns in title slides were causing problems with
slide division.  Closes #6033.
2020-01-07 11:11:23 -08:00
John MacFarlane 2a67b7aea9 Reveal.js writer: restore old behavior for 2D nesting.
The fix to #6030 actually changed behavior, so that the
2D nesting occurred at slide level N-1 and N, instead of
at the top-level section.  This commit restores the 2.7.3 behavior.
If there are more than 2 levels, the top level is horizontal
and the rest are collapsed to vertical.

Closes #6032.
2020-01-07 10:11:46 -08:00
John MacFarlane d4651b3a5b Update changelog, authors. 2.9.1.1 2020-01-05 11:24:47 -08:00
John MacFarlane e4b2252a94 Bump to 2.9.1.1, update manual. 2020-01-05 11:15:52 -08:00
John MacFarlane 66bca029c7 Fix regression in beamer slide structure with certain slide levels.
Closes #6030.
2020-01-05 11:10:07 -08:00
John MacFarlane 0dff9b3cd2 Fix revealjs slide structure regression with certain slide levels.
Partially addresses #6030.
2020-01-05 09:42:35 -08:00
John MacFarlane b96febddef Added a needed pragma. 2020-01-04 10:07:26 -08:00
John MacFarlane 8ed749702f Add type annotations to assist ghci. 2020-01-04 09:55:15 -08:00
John MacFarlane c5b6321b21 Remove unneeded import. 2020-01-04 09:47:44 -08:00
John MacFarlane 82f0b2755b HTML writer: Add newlines to make slide show output more readable. 2020-01-04 09:36:01 -08:00
John MacFarlane f391560c1a PDF: fix runTeXProgram so that the input source is always overwritten.
Previously it wasn't overridden if the file already existed,
which led to bad results on subsequent runs when
`pdf-engine-opt=-output-directory=` was used to specify
an explicit temp dir.

Closes #6027.
2020-01-03 21:57:15 -08:00
Albert Krewinkel 4914855275 Fix test/tables.org
Editor usage mistake caused a broken reference file.
2020-01-03 08:38:58 +01:00
Albert Krewinkel c3a00c1fdc Org writer: remove extra spaces from table cells
Closes: #6024
2020-01-03 00:00:57 +01:00
John MacFarlane 2c1a911bc1 LaTeX writer: properly handle unnumbered headings level 4+.
Closes #6018.

Previously the `\paragraph` command was used instead of
`\paragraph*` for unnumbered level 4 headings.
2020-01-01 22:32:27 -07:00
John MacFarlane 4affd40194 BCP47: change getLang so it can handle block-level contents.
Some readers (e.g. RST) will populate the `lang` metadata field
with block-level content.  `getLang` has been modified to handle
this.  Previously in these cases the LaTeX writer would not properly
set the "main language" of the document.

Closes #6008.
2019-12-30 23:21:22 -07:00
Arfon Smith 5847624124 Update JATS dtd (#6020)
The current DTD for the JATS writer template is for Journal Publishing (JATS-journalpublishing1.dtd), which does not permit ext-link as a valid child (https://jats.nlm.nih.gov/publishing/tag-library/1.1/element/publisher-name.html).

This update modifies the default output template to be the less restrictive JATS archiving and interchange DTD which systems like PubMed use internally to represent their articles.
2019-12-30 22:18:55 -08:00
John MacFarlane 82f44592ae Fix parsing bug affected indented code after raw HTML.
Closes #6009, #5360.
2019-12-27 13:08:22 -08:00
Heiko Schlittermann ea2c5152ec Allow framebreaks for beamer's TOC (#6012) 2019-12-27 10:58:36 -08:00
John MacFarlane b8bd845542 Add a needed try. 2019-12-27 10:37:01 -08:00
Felix Yan 1ff732269e Use HTTPS in copyright message (#6010)
Since the website now redirect to https automatically, it would be nice to just use https in the help text.
2019-12-26 12:26:24 -08:00
John MacFarlane 5484a6349b Change date on changelog. 2.9.1 2019-12-22 22:59:30 -08:00
John MacFarlane 5de761482a Macos release workflow: just copy pandoc.1 rather than regenerating. 2019-12-22 22:58:53 -08:00
John MacFarlane ef63ade26b trypandoc: add jira as input format. 2019-12-22 22:11:41 -08:00
John MacFarlane 3fcdeb2f6e Update changelog. 2019-12-22 22:09:13 -08:00
John MacFarlane 71fab252d5 Ensure that later default file values for variable replace earlier ones.
The semigroup instance for doctemplates Context does a left-biased
union on the underlying Map.  That means that if you union
`{a: 1}` and `{a: 2}`, you get `{a: 1}`.  This commit causes
pandoc to do the operation in the opposite order, so that later
default files take precedence in the values they assign to
keys.

See #5988.
2019-12-22 22:01:30 -08:00
John MacFarlane 7ba55d7405 Improve pandoc man page generation.
Use before and after includes rather than special template.
2019-12-22 21:30:01 -08:00
Albert Krewinkel 2cf89ade85 doc/lua-filters.md: replace metadata example with image centering (#6004)
Metadata defaults can be given via the command line `--metadata-file`.
Adding raw format snippets is a common use case for Lua filters, so it
seems sensible to provide an example.

Thanks to @efx for proposing this filter.

Closes: pandoc/lua-filters#70
2019-12-22 16:09:30 -08:00
John MacFarlane 8d64cb6954 Use alpine 3.10 in building linux binary.
For some reason the bulid fails with alpine 3.11,
with a linker error finding -lz.  See #6003.
It would be good to figure out how to make it work
with alpine 3.11.
2019-12-22 09:26:29 -08:00
Albert Krewinkel 2578166556 changelog: combine entries for issue #5984. 2019-12-22 09:36:28 +01:00
John MacFarlane 434a483eab Revert "linux release-candidate build: try setting LIBRARY_PATH."
This reverts commit 392c14311f.

It didn't help.
2019-12-21 20:28:50 -08:00
John MacFarlane 392c14311f linux release-candidate build: try setting LIBRARY_PATH.
For some reason ld can't find zlib in the latest build.
Maybe this will help?
2019-12-21 13:35:16 -08:00
John MacFarlane eca39d6cf1 HTML writer: more tweaks to avoid round-trip failures...
having to do with makeSections.
2019-12-21 12:26:29 -08:00
John MacFarlane 80a0e56a5d HTML reader tests: modify round-trip tests...
to avoid a special failure case involving makeSections.
2019-12-21 12:15:35 -08:00