aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2020-01-18Docx writer: fix regression with Compact style on tight lists.issue-6072John MacFarlane
Starting in 2.8, the docx writer no longer distinguishes between tight and loose lists, since the Compact style is omitted. This is a side-effect of the fix to #5670, as explained in the changelog: + Preserve built-in styles in DOCX with custom style (Ben Steinberg, #5670). This change prevents custom styles on divs and spans from overriding styles on certain elements inside them, like headings, blockquotes, and links. On those elements, the "native" style is required for the element to display correctly. This change also allows nesting of custom styles; in order to do so, it removes the default "Compact" style applied to Plain blocks, except when inside a table. This patch fixes the problem by extending the exception currently offered to Plain blocks inside tables to Plain blocks inside list items. Closes #6072.
2020-01-18Windows ci - fix path to COPYING.rtf in dialog.John MacFarlane
2020-01-18Fix typo in windows ci build.John MacFarlane
2020-01-17Use versioned directory for windows release zipfile.John MacFarlane
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 MacFarlane
2020-01-15Lua filters: allow filtering of element lists (#6040)Albert Krewinkel
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 MacFarlane
2020-01-15Add Docker and GH Actions instructions/links to INSTALL.md.John MacFarlane
2020-01-14Update filters doc with better cabal v2 instructions.John MacFarlane
2020-01-14Update filter documentation.John MacFarlane
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 MacFarlane
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 MacFarlane
Another regression from 2.7.x. Closes #6062.
2020-01-12docs: capitalize Lua where it refers to the programming language nameAlbert Krewinkel
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 Krewinkel
Thanks to @bpj for the idea.
2020-01-11Lua: add methods `insert`, `remove`, and `sort` to pandoc.ListAlbert Krewinkel
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 Krewinkel
2020-01-11data/pandoc.List.lua: improve internal documentationAlbert Krewinkel
2020-01-11doc/lua-filters.md: unify, fix anchors and internal links (#6061)Albert Krewinkel
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 Krewinkel
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 Krewinkel
2020-01-10docs/lua-filters.md: clarify filter function execution order (#6059)Albert Krewinkel
2020-01-10LaTeX reader: allow beamer overlays for all commands in all raw tex.John MacFarlane
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 MacFarlane
2020-01-08Change setVariable to use Text instead of String.John MacFarlane
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 MacFarlane
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 Krewinkel
Headers were missing from tables. Fixes: #6035
2020-01-07Fix regression in handling of columns in beamer slides.John MacFarlane
Columns in title slides were causing problems with slide division. Closes #6033.
2020-01-07Reveal.js writer: restore old behavior for 2D nesting.John MacFarlane
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.2.9.1.1John MacFarlane
2020-01-05Bump to 2.9.1.1, update manual.John MacFarlane
2020-01-05Fix regression in beamer slide structure with certain slide levels.John MacFarlane
Closes #6030.
2020-01-05Fix revealjs slide structure regression with certain slide levels.John MacFarlane
Partially addresses #6030.
2020-01-04Added a needed pragma.John MacFarlane
2020-01-04Add type annotations to assist ghci.John MacFarlane
2020-01-04Remove unneeded import.John MacFarlane
2020-01-04HTML writer: Add newlines to make slide show output more readable.John MacFarlane
2020-01-03PDF: fix runTeXProgram so that the input source is always overwritten.John MacFarlane
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 Krewinkel
Editor usage mistake caused a broken reference file.
2020-01-03Org writer: remove extra spaces from table cellsAlbert Krewinkel
Closes: #6024
2020-01-01LaTeX writer: properly handle unnumbered headings level 4+.John MacFarlane
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 MacFarlane
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 Smith
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 MacFarlane
Closes #6009, #5360.
2019-12-27Allow framebreaks for beamer's TOC (#6012)Heiko Schlittermann
2019-12-27Add a needed try.John MacFarlane
2019-12-26Use HTTPS in copyright message (#6010)Felix Yan
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.2.9.1John MacFarlane
2019-12-22Macos release workflow: just copy pandoc.1 rather than regenerating.John MacFarlane
2019-12-22trypandoc: add jira as input format.John MacFarlane
2019-12-22Update changelog.John MacFarlane