aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
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
2018-10-02Makefile: improved quick-cabal target.John MacFarlane1-3/+4
2018-10-02T.P.Lua.StackInstances - moved pragmas to top of file.John MacFarlane1-5/+5
2018-10-01cabal.project - remove source-dependency stanzas.John MacFarlane1-14/+0
They shouldn't be needed given new releases of these packages.
2018-10-01Makefile: added quick-cabal target as default.John MacFarlane1-0/+5
2018-10-01Version to 2.3.2.John MacFarlane1-1/+1
2018-10-01Shared: new export `splitSentences` [API change].John MacFarlane3-52/+26
This was duplicated in the Man and Ms writers, and really belongs in Shared.
2018-10-01Moved isArgTok to Readers.LaTeX.Parsing.John MacFarlane2-5/+6
2018-10-01Moved babelLangToBCP, polyglossiaLangToBCP to new module...John MacFarlane3-134/+176
Text.Pandoc.Readers.LaTeX.Lang (unexported).
2018-10-01Lua filters: report traceback when an error occursAlbert Krewinkel9-16/+49
A proper Lua traceback is added if either loading of a file or execution of a filter function fails. This should be of help to authors of Lua filters who need to debug their code.
2018-10-01Lua Util: add missing docstring to defineHowToAlbert Krewinkel1-1/+1
2018-09-30Implement `--ascii` (`writerPreferAscii`) in writers, not App.John MacFarlane13-76/+230
Now the `write*` functions for Docbook, HTML, ICML, JATS, Man, Ms, OPML are sensitive to `writerPreferAscii`. Previously the to-ascii translation was done in Text.Pandoc.App, and thus not available to those using the writer functions directly. In addition, the LaTeX writer is now sensitive to `writerPreferAscii` and to `--ascii`. 100% ASCII output can't be guaranteed, but the writer will use commands like `\"{a}` and `\l` whenever possible, to avoid emiting a non-ASCII character. A new unexported module, Text.Pandoc.Groff, has been added to store functions used in the different groff-based writers.
2018-09-30Text.Pandoc.Options: add writerPreferAscii to WriterOptions.John MacFarlane1-0/+2
[API change]
2018-09-30pandoc.cabal: make base lower bound 4.8.John MacFarlane1-5/+5
We no longer support ghc 7.8, but this wasn't reflected in the base versions.
2018-09-30LaTeX reader: simplified accent code using unicode-transforms.John MacFarlane2-322/+34
New dependency on unicode-transforms package for normalization.
2018-09-29LaTeX writer: Fix description lists contining highlighted code.John MacFarlane1-2/+4
Closes #4662.
2018-09-29LaTeX reader: allow verbatim blocks ending with blank lines.John MacFarlane2-1/+44
Closes #4624.
2018-09-29LaTeX reader: support breq math environments: dmath, dgroup, darray.John MacFarlane1-0/+6
2018-09-28Use released pandoc-citeproc, texmath.John MacFarlane1-0/+2
2018-09-28Update changelog.John MacFarlane1-2/+7
2018-09-28Added Text.Pandoc.Readers.LaTeX.Parsing (unexported).John MacFarlane3-557/+667
This collects some of the general-purpose code from the LaTeX reader, with the aim of making the module smaller. (We've been having out-of-memory issues compiling this module on CI.)
2018-09-28Parse empty argument array in inline src blocks.leungbk2-1/+9
`enclosedByPair` alone does not the handle the empty array properly since it uses `many1Till`.
2018-09-27Version to 2.3.1.John MacFarlane4-6/+6
2018-09-27Update changelog, AUTHORS.md.John MacFarlane2-12/+69
2018-09-27HTML writer: avoid adding extra section nestings for revealjs.John MacFarlane1-1/+1
Previously revealjs title slides at level (slidelevel - 1) were nested under an extra section element, even when the section contained no additional (vertical) content. That caused problems for some transition effects. See hakimel/reveal.js#1947.
2018-09-27JATS writer: remove 'role' attribute on 'bold' and 'sc' elements.John MacFarlane2-10/+8
The JATS spec does not allow these. Closes #4937.
2018-09-27HTML writer: omit unknown attributes in EPUB2 output.John MacFarlane1-8/+140
This allows users to include `epub:type` attributes, which will be passed through to epub3 but not epub2.
2018-09-27HTML, Muse reader tests: reduce time taken by round-trip test.John MacFarlane2-4/+6
2018-09-27MANUAL: epub:type is only useful for epub3Mauro Bieg1-3/+3
2018-09-26appveyor - Removed new-clean.John MacFarlane1-1/+0
2018-09-26Fixed appveyor improvemnets.John MacFarlane1-7/+6
2018-09-26More appveyor improvements.John MacFarlane1-4/+7