aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2020-09-21Sort YAML metadata keys in Markdown output case-insensitive.John MacFarlane1-2/+2
Use caseFold.
2020-09-21Remove duplicate tshow definition.John MacFarlane1-3/+1
2020-09-21pandoc.cabal: sort build depends alphabetically (#6691)Albert Krewinkel1-96/+98
2020-09-21doc/org.md: add section on handling of unknown directivesAlbert Krewinkel1-0/+47
2020-09-20Lua filters: add SimpleTable for backwards compatibility (#6575)Albert Krewinkel10-7/+313
A new type `SimpleTable` is made available to Lua filters. It is similar to the `Table` type in pandoc versions before 2.10; conversion functions from and to the new Table type are provided. Old filters using tables now require minimal changes and can use, e.g., if PANDOC_VERSION > {2,10,1} then pandoc.Table = pandoc.SimpleTable end and function Table (tbl) tbl = pandoc.utils.to_simple_table(tbl) … return pandoc.utils.from_simple_table(tbl) end to work with the current pandoc version.
2020-09-20CI: bump tested GHC versions to 8.8.4 and 8.10.2Albert Krewinkel2-5/+4
Besides being newer, GHC version 8.10.2 comes preinstalled on GitHub Actions environments; using it slightly speeds up CI tests.
2020-09-20CI: remove duplicate build step on macOSAlbert Krewinkel1-6/+0
2020-09-20cabal.project: disallow base16-bytestring-1.*Albert Krewinkel1-0/+2
This is a temporary fix to work around a missing constraint in package text-conversions. It should be removed once a new revision or new version fixes the underlying issue.
2020-09-20cabal.project - use dev version of pandoc-citeproc.John MacFarlane1-1/+1
2020-09-20Use dev version of pandoc-citeproc.John MacFarlane1-1/+2
2020-09-20pandoc.cabal: allow hslua 1.2 againAlbert Krewinkel1-2/+2
Sporadic test failures also happen with hslua-1.1.*, so there is no need to exclude the newer version. This reverts commit 315b5a4836b477f2c176c7800e6c995ecb831194.
2020-09-19Command line options: use normalizePath in more places.John MacFarlane1-14/+25
See #5127. It is now used everywhere a file argument can be used. Closes #5127.
2020-09-19Asciidoctor images (#6671)argent03-28/+43
Support `Asciidoctor`'s block figures. Closes #6538.
2020-09-19Add CSS to default HTML template (#6601)Mauro Bieg7-0/+571
2020-09-19Change deprecated Builder.isNull to null.John MacFarlane6-9/+9
2020-09-19stack.yaml - use latest texmath, commonmark-pandoc.John MacFarlane1-2/+2
2020-09-19Use released pandoc-types 1.22.John MacFarlane3-9/+3
2020-09-15LaTeX writer: fix spacing issue with list in definition list.John MacFarlane2-3/+87
When a list occurs at the beginning of a definition list definition, it can start on the same line as the label, which looks bad. Fix that by starting such lists with an `\item[]`.
2020-09-15LaTeX reader: fix improper empty cell filtering (#6689)Christian Despres2-14/+108
2020-09-15Fix pandoc-templates target to include all partials.John MacFarlane1-2/+2
2020-09-14Use latest skylighting.John MacFarlane1-2/+2
2020-09-14stack.yaml - use latest skylighting.John MacFarlane1-2/+2
2020-09-13HTML writer: support intermediate table headersAlbert Krewinkel5-5/+158
Closes: #6314
2020-09-13Delete obsolete MANUAL section on compact and loose lists.John MacFarlane1-24/+0
This gives a rule that has been been superseded by commit 47537d26db29b9dd0810d039933497d4db4ed813. The section is concerned to explain a discrepancy with original Markdown.pl and its test suite. In the case under consideration, Markdown.pl gave strange results which pandoc corrected. I think it's no longer worth wasting space on this, as its behavior seems clearly wrong. If we are going to comment on every edge case with Markdown.pl, the manual will get too long. Babelmark 2 shows that some of the older implementations follow Markdown.pl -- PHP Markdown, Python Markdown, redcarpet, discount. https://johnmacfarlane.net/babelmark2/?normalize=1&text=%2B+++First%0A%2B+++Second%0A++++-+a%0A++++-+b%0A%0A%2B+Third%0A Closes #6684.
2020-09-13HTML writer: support attributes on all table elementsAlbert Krewinkel4-39/+43
Add attributes to tbody and tr elements.
2020-09-13Fix hlint suggestions, update hlint.yaml (#6680)Christian Despres69-321/+291
* Fix hlint suggestions, update hlint.yaml Most suggestions were redundant brackets. Some required LambdaCase. The .hlint.yaml file had a small typo, and didn't ignore camelCase suggestions in certain modules.
2020-09-13MANUAL: fix position of attributes in headerAlbert Krewinkel1-1/+1
2020-09-12HTML writer: render table footers if presentAlbert Krewinkel6-29/+224
Part of: #6314
2020-09-12[API change] Rename Writers.Tables and its contents (#6679)Christian Despres6-379/+390
Writers.Tables is now Writers.AnnotatedTable. All of the types and functions in it have had the "Ann" removed from them. Now it is expected that the module be imported qualified.
2020-09-11Use the original tail instead of deconstructing and reconstructing it (#6678)Joseph C. Sible1-2/+2
2020-09-11pandoc.cabal: disallow hslua 1.2Albert Krewinkel1-2/+2
See #6674
2020-09-10Changed default link state to invisible (#6676)Leonard Rosenthol5-33/+167
2020-09-10Improved uncertainty handling in slunitx.John MacFarlane2-6/+14
2020-09-10LaTeX reader: support parenthesized uncertainties in siunitx.John MacFarlane2-2/+26
2020-09-10Support colspans and rowspans in HTML tables (#6644)Albert Krewinkel5-67/+610
* HTML writer: add support for row headers, colspans, rowspans * Add planet table tests See #6312
2020-09-10CI: use cabal for macos builds.John MacFarlane1-17/+34
2020-09-10Implement support for internal document links in ICML (#6606)Leonard Rosenthol5-59/+487
Closes #5541.
2020-09-10docbook reader: Implement column span support for tables (#6492)Nils Carlson2-18/+161
Implement column span support for tables in the DocBook reader. Co-authored-by: Nils Carlson <nils.carlson@ludd.ltu.se>
2020-09-08Reader.LaTeX.hs: remove trailing whitespaceAlbert Krewinkel1-7/+7
2020-09-05Add Writers.Tables helper functions and types, add tests for those (#6655)Christian Despres6-1/+554
Add Writers.Tables helper functions and types, add tests for those The Writers.Tables module contains an AnnTable type that is a pandoc Table with added inferred information that should be enough for writers (in particular the HTML writer) to operate on without having to lay out the table themselves. The toAnnTable and fromAnnTable functions in that module convert between AnnTable and Table. In addition to producing an AnnTable with coherent and well-formed annotations, the toAnnTable function also normalizes its input Table like the table builder does. Various tests ensure that toAnnTable normalizes tables exactly like the table builder, and that its annotations are coherent.
2020-09-03Insignificant whitespace change.John MacFarlane1-0/+1
Try to expire cache for macOS CI.
2020-09-03CI/macOS: Fix stack invocations.John MacFarlane1-3/+3
2020-09-03CI/macOs: Use setup-haskell to setup stack.John MacFarlane1-4/+7
2020-09-02Support numrange, numlist for siunitx.John MacFarlane2-9/+27
See #6658.
2020-09-02Support some missing siunitx commands.John MacFarlane1-0/+8
2020-09-02LaTeX reader: Support siunitx `\ang`.John MacFarlane2-0/+13
See #6658.
2020-09-02Skip opts for `\si`.John MacFarlane1-1/+1
2020-09-02LaTeX reader: support `\si` and improve other siunitx commands.John MacFarlane2-8/+23
2020-09-02LaTeX reader: support `\num` from siunitx.John MacFarlane2-6/+40
2020-09-02LaTeX reader: Support squared, cubed, tothe in siunitx.John MacFarlane2-22/+63
Closes #6657.