aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2020-01-17Use versioned directory for windows release zipfile.John MacFarlane3-40/+12
Also remove old make-windows-installer.bat, superseded by GitHub actions workflow, and modify pandoc.wxs for new paths.
2020-01-17Add --rm to docker command in INSTALL.md.John MacFarlane1-1/+1
2020-01-15Lua filters: allow filtering of element lists (#6040)Albert Krewinkel9-33/+244
Lists of Inline and Block elements can now be filtered via `Inlines` and `Blocks` functions, respectively. This is helpful if a filter conversion depends on the order of elements rather than a single element. For example, the following filter can be used to remove all spaces before a citation: function isSpaceBeforeCite (spc, cite) return spc and spc.t == 'Space' and cite and cite.t == 'Cite' end function Inlines (inlines) for i = #inlines-1,1,-1 do if isSpaceBeforeCite(inlines[i], inlines[i+1]) then inlines:remove(i) end end return inlines end Closes: #6038
2020-01-15INSTALL: remove bulletsJohn MacFarlane1-79/+79
2020-01-15Add Docker and GH Actions instructions/links to INSTALL.md.John MacFarlane1-0/+23
2020-01-14Update filters doc with better cabal v2 instructions.John MacFarlane1-3/+3
2020-01-14Update filter documentation.John MacFarlane1-142/+84
Remove example using pandoc API directly (we have other docs for that and it was outdated). Closes #6065.
2020-01-13Update versions for doclayout, doctemplates.John MacFarlane2-3/+3
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-12HTML writer: fix duplicate attributes on headings.John MacFarlane2-9/+16
Another regression from 2.7.x. Closes #6062.
2020-01-12docs: capitalize Lua where it refers to the programming language nameAlbert Krewinkel3-32/+32
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-11Lua filter docs: cross-link constructors and typesAlbert Krewinkel1-62/+281
Thanks to @bpj for the idea.
2020-01-11Lua: add methods `insert`, `remove`, and `sort` to pandoc.ListAlbert Krewinkel3-40/+156
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-11doc/lua-filters.md: sort pandoc.List methods alphabeticallyAlbert Krewinkel1-34/+34
2020-01-11data/pandoc.List.lua: improve internal documentationAlbert Krewinkel1-29/+32
2020-01-11doc/lua-filters.md: unify, fix anchors and internal links (#6061)Albert Krewinkel1-362/+334
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-11pandoc.List.lua: make `pandoc.List` a callable constructorAlbert Krewinkel3-19/+52
It is now possible to construct a new List via `pandoc.List()` instead of `pandoc.List:new()`.
2020-01-11Add tests for pandoc.List moduleAlbert Krewinkel2-0/+113
2020-01-10docs/lua-filters.md: clarify filter function execution order (#6059)Albert Krewinkel1-2/+30
2020-01-10LaTeX reader: allow beamer overlays for all commands in all raw tex.John MacFarlane2-10/+18
This affecs parsing of raw tex in LaTeX and in Markdown and other formats. Closes #6043.
2020-01-10Add @tarleb to .github/FUNDING.yml since he is on sponsors now.John MacFarlane1-1/+1
2020-01-08Change setVariable to use Text instead of String.John MacFarlane2-21/+20
This avoids some unnecessary unpacking. (This is only an internal module so it's not an API change.)
2020-01-08LaTeX reader: improve parsing of raw environments.John MacFarlane2-1/+12
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-07Jira writer: fix output of table headersAlbert Krewinkel2-4/+9
Headers were missing from tables. Fixes: #6035
2020-01-07Fix regression in handling of columns in beamer slides.John MacFarlane2-5/+97
Columns in title slides were causing problems with slide division. Closes #6033.
2020-01-07Reveal.js writer: restore old behavior for 2D nesting.John MacFarlane2-12/+36
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-05Update changelog, authors.John MacFarlane2-0/+47
2020-01-05Bump to 2.9.1.1, update manual.John MacFarlane3-3/+6
2020-01-05Fix regression in beamer slide structure with certain slide levels.John MacFarlane2-8/+60
Closes #6030.
2020-01-05Fix revealjs slide structure regression with certain slide levels.John MacFarlane2-6/+43
Partially addresses #6030.
2020-01-04Added a needed pragma.John MacFarlane1-0/+1
2020-01-04Add type annotations to assist ghci.John MacFarlane4-7/+13
2020-01-04Remove unneeded import.John MacFarlane1-1/+1
2020-01-04HTML writer: Add newlines to make slide show output more readable.John MacFarlane1-6/+8
2020-01-03PDF: fix runTeXProgram so that the input source is always overwritten.John MacFarlane1-22/+23
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-03Fix test/tables.orgAlbert Krewinkel1-4/+4
Editor usage mistake caused a broken reference file.
2020-01-03Org writer: remove extra spaces from table cellsAlbert Krewinkel2-30/+30
Closes: #6024
2020-01-01LaTeX writer: properly handle unnumbered headings level 4+.John MacFarlane2-2/+2
Closes #6018. Previously the `\paragraph` command was used instead of `\paragraph*` for unnumbered level 4 headings.
2019-12-30BCP47: change getLang so it can handle block-level contents.John MacFarlane1-3/+5
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-30Update JATS dtd (#6020)Arfon Smith3-10/+10
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-27Fix parsing bug affected indented code after raw HTML.John MacFarlane3-8/+47
Closes #6009, #5360.
2019-12-27Allow framebreaks for beamer's TOC (#6012)Heiko Schlittermann1-1/+1
2019-12-27Add a needed try.John MacFarlane1-2/+3
2019-12-26Use HTTPS in copyright message (#6010)Felix Yan1-1/+1
Since the website now redirect to https automatically, it would be nice to just use https in the help text.
2019-12-22Change date on changelog.John MacFarlane1-1/+1
2019-12-22Macos release workflow: just copy pandoc.1 rather than regenerating.John MacFarlane1-4/+1
2019-12-22trypandoc: add jira as input format.John MacFarlane1-0/+1
2019-12-22Update changelog.John MacFarlane1-2/+9
2019-12-22Ensure that later default file values for `variable` replace earlier ones.John MacFarlane1-1/+3
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-22Improve pandoc man page generation.John MacFarlane5-14/+13
Use before and after includes rather than special template.
2019-12-22doc/lua-filters.md: replace metadata example with image centering (#6004)Albert Krewinkel1-22/+23
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