aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2018-10-08Fixed tests for new skylighting.John MacFarlane3-9/+9
2018-10-08Require skylighting 0.7.4.John MacFarlane5-5/+9
Closes #4920.
2018-10-08LaTeX writer with `--listings`: don't pass through org-babel attributes.John MacFarlane1-1/+4
So far: just, tangle, exports, results which are used by org mode. It might be better to use a whitelist of legal listings attributes, but there are a large number, and these may change. Closes #4889.
2018-10-08Add helpful suggestion to missing title warning.John MacFarlane1-1/+2
Tell users what to add to the command line to avoid the warning. Closes #4909.
2018-10-08LaTeX writer: with `--biblatex`, use `\autocite` when possible.John MacFarlane2-13/+43
`\autocites{a1}{a2}{a3}` will not collapse the entries. So, if we don't have prefixes and suffixes, we use instead `\autocite{a1;a2;a3}`. Closes #4960.
2018-10-08ODT writer: improve metadata.John MacFarlane1-7/+26
- Author, date added to metadata. - Remaining metadata properties (besides author, date, title, lang) are added as meta:user-defined tags.
2018-10-07Docx writer: handle tables in table cells.John MacFarlane1-2/+7
Although this is not documented in the spec, some versions of Word require a 'w:p' element inside every table cell. Thus, we add one when the contents of a cell do not already include one (e.g. when a table cell contains a table). Closes #4953.
2018-10-07RST reader: don't allow single-dash separator in headerless table.John MacFarlane2-1/+13
Closes #4382.
2018-10-07LaTeX reader: fix bugs omitting raw tex.John MacFarlane5-10/+28
The default is `-raw_tex`, so no raw tex should result unless we explicitly say `+raw_tex`. Previously some raw commands did make it through. Closes #4527.
2018-10-07INSTALL: note about TinyTeX.John MacFarlane1-1/+2
2018-10-07RST reader: pass through fields in unknown directives as div attributes.John MacFarlane2-17/+36
This commit also adds support for `class` and `name` attributes to directives in general. Closes #4715.
2018-10-07Makefile - make .msi download targets more robust.John MacFarlane1-2/+2
Now they should be insensitive to changes in the order of the builds on appveyor.
2018-10-07Revert export of hasSimpleCells from T.P.Writers.Shared.John MacFarlane1-18/+0
This wasn't necessary.
2018-10-06RST writer: use simple tables when possible.John MacFarlane4-42/+82
Closes #4750. Text.Pandoc.Writers.Shared now exports hasSimpleCells [API change].
2018-10-06Documentation: add draft for Lua objects referenceAlbert Krewinkel1-0/+396
2018-10-06Lua filter doc: fix description of Code.textAlbert Krewinkel2-2/+2
2018-10-06Moved Haddock comment in Muse readerAlexander Krotov1-4/+3
2018-10-05Org reader: fix behavior for successive calls of `#+EXCLUDE_TAGS`. (#4951)Brian Leung3-8/+24
Calling `#+EXCLUDE_TAGS` multiple times should preserve the status of the previously declared tags.
2018-10-05CommonMark writer: add plain text fallbacks. (#4531)quasicomputational5-41/+237
Previously, the writer would unconditionally emit HTMLish output for subscripts, superscripts, strikeouts (if the strikeout extension is disabled) and small caps, even with raw_html disabled. Now there are plain-text (and, where possible, fancy Unicode) fallbacks for all of these corresponding (mostly) to the Markdown fallbacks, and the HTMLish output is only used when raw_html is enabled. This commit adds exported functions `toSuperscript` and `toSubscript` to `Text.Pandoc.Writers.Shared`. [API change] Closes #4528.
2018-10-05Org reader: Add partial support for `#+EXCLUDE_TAGS` option. (#4950)Brian Leung5-7/+61
Closes #4284. Headers with the corresponding tags should not appear in the output. If one or more of the specified tags contains a non-tag character like `+`, Org-mode will not treat that as a valid tag, but will nonetheless continue scanning for valid tags. That behavior is not replicated in this patch; entering `cat+dog` as one of the entries in `#+EXCLUDE_TAGS` and running the file through Pandoc will cause the parser to fail and result in the only excluded tag being the default, `noexport`.
2018-10-05Fixed haddock error in Muse reader.John MacFarlane1-1/+2
2018-10-05Muse reader: remove redundant bracketAlexander Krotov1-1/+1
2018-10-05OpenDocument writer: Implement table caption numbering (#4949)Nils Carlson2-40/+59
Implement table caption numbering with a format "Table 1: <caption>". Translations are enabled and numbering is consecutive for captioned tables, uncaptioned tables are not enumerated. Captioned figures are now also numbered consecutively and uncaptioned figures are not enumerated.
2018-10-05Muse reader: move museInLink state into ReaderTAlexander Krotov1-11/+14
2018-10-05Muse reader: use getIndent more for code cleanupAlexander Krotov1-7/+4
2018-10-05Muse reader: use getIndent in parseHtmlContentAlexander Krotov1-7/+6
2018-10-05Muse reader: make bulletListUntil similar to definitionListUntilAlexander Krotov1-2/+1
2018-10-05Muse reader: reduce duplication by introducing `getIndent`Alexander Krotov1-9/+7
2018-10-05Muse reader internals: simplify parseMuseAlexander Krotov1-6/+2
2018-10-05Muse reader: get rid of TagSoup importAlexander Krotov1-2/+1
2018-10-05Muse reader: simplify verse parsersAlexander Krotov1-18/+7
2018-10-05Muse reader: allow table caption to contain "+"Alexander Krotov2-1/+9
2018-10-04LaTeX template: add variable hyperrefoptions(#4925)Mathias Walter1-1/+1
Introduce a new variable `hyperrefoptions` to pass to the hyperref package. This allows us (for example) to specify `hyperrefoptions: linktoc=all` in a YAML block.
2018-10-04Docx reader: trigger bold/italic with bCs, iCs.John MacFarlane1-2/+4
These are variants for "complex scripts" like Arabic and are now treated just like b, i (bold, italic). Colses #4947.
2018-10-04cabal.project - use latest pandoc-citeproc from git.John MacFarlane1-1/+0
2018-10-04KaTeX: don't use autorenderer.John MacFarlane2-6/+6
We no longer surround formulas with `\(..\)` or `\[..\]` and rely on the autorenderer. Instead, we tell katex to convert the contents of span elements with class "math". Since math has already been identified, this avoids wasted time parsing for LaTeX delimiters. Note, however, that this may yield unexpected results if you have span elements with class "math" that don't contain LaTeX math. Also, use latest version of KaTeX by default (0.9.0). Closes #4946.
2018-10-04Version to 2.4.John MacFarlane1-1/+1
We need a major API version bump because of the removed function from T.P.Writers.Shared.
2018-10-04Add lookupMeta* functions to Text.Pandoc.Writers.Shared (#4907)Mauro Bieg6-65/+68
Remove exported functions `metaValueToInlines`, `metaValueToString`. Add new exported functions `lookupMetaBool`, `lookupMetaBlocks`, `lookupMetaInlines`, `lookupMetaString`. Use these whenever possible for uniformity in writers. API change (major, because of removed function `metaValueToInlines`. `metaValueToString` wasn't in any released version.)
2018-10-04Vimwiki reader: code cleanupAlexander Krotov1-11/+7
2018-10-03OpenDocument writer: make 'Figure' term sensitive to `lang` in metadata.John MacFarlane1-9/+16
We use the new translations API.
2018-10-03Text.Pandoc.Writers.Shared: added `metaValueToString`.John MacFarlane1-0/+9
[API change]
2018-10-03OpenDocument writer: Implement figure numbering in captions (#4944)Nils Carlson2-2/+14
Figure captions are now numbered 1, 2, 3, ... The format in the caption is "Figure 1: <caption>" and so on. This is necessary in order for libreoffice to generate an Illustration Index (Table of Figures) for included figures.
2018-10-03TWiki reader: hlintAlexander Krotov1-61/+50
2018-10-03Travis: comment out 8.6.1 for now.John MacFarlane1-3/+3
We'll need to use new-build.
2018-10-02Added tools/changelog-helper.sh.John MacFarlane2-2/+24
2018-10-02Add ghc 8.6.1 to travis.John MacFarlane1-0/+4
2018-10-02Removed Text.Pandoc.Groff.John MacFarlane5-46/+11
Moved groffEscape function to Text.Pandoc.Writers.Shared. [API change, since T.P.W.S is exported.]
2018-10-02cabal.project - added pandoc.citeproc again.John MacFarlane1-0/+5
2018-10-02OpenDocument writer: improve bullet/numbering alignment.John MacFarlane2-193/+579
This patch eliminates the large gap we used to have between bullet and text, and also ensures that numbers in numbered lists will be right-aligned. Closes #4385.
2018-10-02Makefile - make stack quick build the defaultJohn MacFarlane1-3/+3