Mauro Bieg
600034d7ff
Add lookupMeta* functions to Text.Pandoc.Writers.Shared ( #4907 )
...
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-04 09:45:59 -07:00
Alexander Krotov
1a6e6a3a03
Vimwiki reader: code cleanup
2018-10-04 12:16:31 +03:00
John MacFarlane
58ae017075
OpenDocument writer: make 'Figure' term sensitive to lang
in metadata.
...
We use the new translations API.
2018-10-03 17:36:52 -07:00
John MacFarlane
d7263a7e5f
Text.Pandoc.Writers.Shared: added metaValueToString
.
...
[API change]
2018-10-03 17:36:32 -07:00
Nils Carlson
ecd4d5b8d8
OpenDocument writer: Implement figure numbering in captions ( #4944 )
...
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-03 14:21:46 -07:00
Alexander Krotov
05d52eb9bb
TWiki reader: hlint
2018-10-03 19:42:38 +03:00
John MacFarlane
fbc733d3a8
Travis: comment out 8.6.1 for now.
...
We'll need to use new-build.
2018-10-03 09:33:55 -07:00
John MacFarlane
9df4c7f57b
Added tools/changelog-helper.sh.
2018-10-02 22:41:41 -07:00
John MacFarlane
75706135e3
Add ghc 8.6.1 to travis.
2018-10-02 21:15:55 -07:00
John MacFarlane
d975917509
Removed Text.Pandoc.Groff.
...
Moved groffEscape function to Text.Pandoc.Writers.Shared.
[API change, since T.P.W.S is exported.]
2018-10-02 18:16:43 -07:00
John MacFarlane
7bf80575b5
cabal.project - added pandoc.citeproc again.
2018-10-02 10:48:24 -07:00
John MacFarlane
f82d574d14
OpenDocument writer: improve bullet/numbering alignment.
...
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-02 10:11:32 -07:00
John MacFarlane
9e58730a74
Makefile - make stack quick build the default
2018-10-02 09:23:53 -07:00
John MacFarlane
cc76c5e6b4
Makefile: improved quick-cabal target.
2018-10-02 00:10:05 -07:00
John MacFarlane
05146ac97c
T.P.Lua.StackInstances - moved pragmas to top of file.
2018-10-02 00:09:48 -07:00
John MacFarlane
2bec94e49f
cabal.project - remove source-dependency stanzas.
...
They shouldn't be needed given new releases of these packages.
2018-10-01 23:58:25 -07:00
John MacFarlane
df28f8cf9e
Makefile: added quick-cabal target as default.
2018-10-01 23:58:13 -07:00
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