John MacFarlane
b5a18e748d
Version to 2.3.2.
2018-10-01 22:48:54 -07:00
John MacFarlane
e25c7ce035
Shared: new export splitSentences
[API change].
...
This was duplicated in the Man and Ms writers, and really
belongs in Shared.
2018-10-01 22:48:20 -07:00
John MacFarlane
963ba931a6
Moved isArgTok to Readers.LaTeX.Parsing.
2018-10-01 22:09:45 -07:00
John MacFarlane
799cd5db7a
Moved babelLangToBCP, polyglossiaLangToBCP to new module...
...
Text.Pandoc.Readers.LaTeX.Lang (unexported).
2018-10-01 21:27:20 -07:00
Albert Krewinkel
9abdbb2783
Lua filters: report traceback when an error occurs
...
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-01 16:32:11 +02:00
Albert Krewinkel
1ffe47b9b9
Lua Util: add missing docstring to defineHowTo
2018-10-01 11:09:34 +02:00
John MacFarlane
36f1846cc3
Implement --ascii
(writerPreferAscii
) in writers, not App.
...
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-30 22:32:00 -07:00
John MacFarlane
0a8d212a09
Text.Pandoc.Options: add writerPreferAscii to WriterOptions.
...
[API change]
2018-09-30 21:09:06 -07:00
John MacFarlane
59a770e6e9
pandoc.cabal: make base lower bound 4.8.
...
We no longer support ghc 7.8, but this wasn't reflected in the
base versions.
2018-09-30 21:07:48 -07:00
John MacFarlane
aebe5fe99e
LaTeX reader: simplified accent code using unicode-transforms.
...
New dependency on unicode-transforms package for normalization.
2018-09-30 10:25:17 -07:00
John MacFarlane
966bd94ba2
LaTeX writer: Fix description lists contining highlighted code.
...
Closes #4662 .
2018-09-29 23:29:32 -07:00
John MacFarlane
190ee279c9
LaTeX reader: allow verbatim blocks ending with blank lines.
...
Closes #4624 .
2018-09-29 10:57:11 -07:00
John MacFarlane
c6d56f026f
LaTeX reader: support breq math environments: dmath, dgroup, darray.
2018-09-29 10:18:09 -07:00
John MacFarlane
890d67bc2f
Use released pandoc-citeproc, texmath.
2018-09-28 16:28:56 -07:00
John MacFarlane
c292a0bae3
Update changelog.
2018-09-28 10:40:17 -07:00
John MacFarlane
9dac993835
Added Text.Pandoc.Readers.LaTeX.Parsing (unexported).
...
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-28 10:33:32 -07:00
leungbk
4f9ab7e032
Parse empty argument array in inline src blocks.
...
`enclosedByPair` alone does not the handle the empty array properly since it uses `many1Till`.
2018-09-28 14:05:14 +02:00
John MacFarlane
c07b9aebc2
Version to 2.3.1.
2018-09-27 23:09:06 -07:00
John MacFarlane
e6e1176da3
Update changelog, AUTHORS.md.
2018-09-27 22:23:12 -07:00
John MacFarlane
0b3e885a00
HTML writer: avoid adding extra section nestings for revealjs.
...
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-27 21:09:03 -07:00
John MacFarlane
53657798cd
JATS writer: remove 'role' attribute on 'bold' and 'sc' elements.
...
The JATS spec does not allow these.
Closes #4937 .
2018-09-27 13:18:06 -07:00
John MacFarlane
99aae5d7cd
HTML writer: omit unknown attributes in EPUB2 output.
...
This allows users to include `epub:type` attributes, which
will be passed through to epub3 but not epub2.
2018-09-27 09:47:22 -07:00
John MacFarlane
13f8f3c1a8
HTML, Muse reader tests: reduce time taken by round-trip test.
2018-09-27 09:47:09 -07:00
Mauro Bieg
b69f7d8810
MANUAL: epub:type is only useful for epub3
2018-09-27 12:15:20 +02:00
John MacFarlane
1ce7afb476
appveyor - Removed new-clean.
2018-09-26 23:45:43 -07:00
John MacFarlane
f9fba831c6
Fixed appveyor improvemnets.
2018-09-26 23:39:18 -07:00
John MacFarlane
3fb99b078f
More appveyor improvements.
2018-09-26 23:37:29 -07:00
John MacFarlane
4461134b14
Added 'allow-newer' to cabal.project.
2018-09-26 22:20:14 -07:00
John MacFarlane
4e22de1fcd
appveyor - different try with 'new-test'.
2018-09-26 18:26:54 -07:00
John MacFarlane
91ef25a59e
appveyor - single quote cache.
2018-09-26 18:17:32 -07:00
John MacFarlane
b5e123cc3a
appveyor - remove old stack stuff; revise to run new-test.
2018-09-26 17:43:18 -07:00
John MacFarlane
0d24515f17
appveyor - fix problem when cached cabal db already exists.
2018-09-26 09:04:51 -07:00
leungbk
6e8f31dab1
Force inline code blocks to honor export options.
...
`exportsCode` is moved from `Blocks.hs` to `Shared.hs` and exported accordingly.
2018-09-26 08:49:13 +02:00
John MacFarlane
3d6aa51b6d
appveyor - comment out caching of STACK_ROOT.
2018-09-25 23:36:21 -07:00
John MacFarlane
a1524bb1a3
appveyor - fix typo.
2018-09-25 23:34:02 -07:00
John MacFarlane
58e3091e64
appveyor - add cabal options, run tests.
2018-09-25 23:24:05 -07:00
John MacFarlane
d74b4d0788
appveyor - add 64-bit cabal build.
2018-09-25 23:14:23 -07:00
John MacFarlane
a96ebe9924
appveyor - fixed forfiles.
2018-09-25 22:06:52 -07:00
John MacFarlane
16b1674d30
appveyor - Remove -p from mkdir.
2018-09-25 21:53:14 -07:00
John MacFarlane
7886ddd1c3
appveyor - another try with forfiles.
2018-09-25 21:16:54 -07:00
John MacFarlane
7a80c3e317
appveyor - allow RDP access on finish (temporary for debugging).
2018-09-25 21:12:00 -07:00
Brian Leung
72363cd2fc
Add support for multiprenote and multipostnote arguments in LaTeX. ( #4930 )
...
* Add support for multiprenote and multipostnote arguments.
The multiprenotes occur before the first prefix of a
multicite, and the multipostnotes follow the last suffix.
* Add test for multiprenote and multipostnote.
2018-09-25 20:49:13 -07:00
John MacFarlane
881a1e0145
Add texmath to cabal.project.
2018-09-25 19:00:34 -07:00
John MacFarlane
b3ada2f11b
cabal.project - use source repository stanzas.
2018-09-25 17:48:33 -07:00
John MacFarlane
438fb9c7cb
appveyor - use github version of memory for now with ghc 8.6.
2018-09-25 17:14:45 -07:00
John MacFarlane
8f5ffd4470
appveyor - clone pandoc-citeproc into vendor/.
2018-09-25 15:25:12 -07:00
John MacFarlane
225062a2bc
cabal.project - use vendor/*/*.cabal.
2018-09-25 15:24:22 -07:00
John MacFarlane
26f762b0e7
appveyor - git clone pandoc-citeproc repo.
2018-09-25 15:23:24 -07:00
John MacFarlane
cc993460be
cabal.project - use ./pandoc-citeproc.
2018-09-25 15:23:02 -07:00
John MacFarlane
cef2a57b13
appveyor - Put cabal unpack in right place.
2018-09-25 15:15:55 -07:00