aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2020-01-31csv reader: allow empty cells.John MacFarlane2-8/+10
2020-01-31Add Text.Pandoc.Readers.CSV (readCSV).John MacFarlane6-2/+134
This adds csv as an input format. The CSV table is converted into a pandoc simple table. Closes #6100.
2020-01-29LaTeX template: add space option to xeCJK with PassOptionsToPackage.John MacFarlane1-1/+4
Otherwise we can get a clash with documentclasses that already load the package. Closes #6002.
2020-01-28Added a try that was needed for the commit fc78be1.John MacFarlane1-1/+1
The intent of that commit was to parse unknown LaTeX enivronments as verbatim if they can't be parsed normally, avoiding crashes on environments that allow unescaped underscores and the like. But the fix didn't completely work: it worked for raw TeX in markdown but not when reading LaTeX. This change fixes that. See #6034. Closes #6093.
2020-01-27Update URLs and use HTTP**S** wherever possible (#6090)Salim B1-62/+62
I've changed _all_ `http:` URLs in the file to their `https` equivalents if the respective sites have properly configured HTTPS.
2020-01-27Fix test suite for new skylighting.John MacFarlane1-2/+2
Closes #6086.
2020-01-21Use skylighting 0.8.3.2.John MacFarlane2-4/+4
2020-01-21Windows rc: Create the release dir.John MacFarlane1-0/+1
2020-01-19Docx writer: fix regression with Compact style on tight lists. (#6073)John MacFarlane1-1/+9
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 release candidate build: More fixes to get 'light' to work.John MacFarlane2-2/+3
2020-01-18doc/lua-filters.md: fix copy-paste mistakeAlbert Krewinkel1-1/+1
Closes: #6040
2020-01-18Windows ci: Add binpath when doing 'light'.John MacFarlane1-1/+1
2020-01-18Windows ci - fix path to COPYING.rtf in dialog.John MacFarlane1-2/+2
2020-01-18Fix typo in windows ci build.John MacFarlane1-1/+1
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