Commit graph

15568 commits

Author SHA1 Message Date
John MacFarlane
fb2ab3a6cd Regenerate README.md. 2022-04-04 09:40:33 -07:00
John MacFarlane
9867b9f8fb stack.yaml: Use latest unicode-transforms. 2022-04-04 09:40:05 -07:00
John MacFarlane
fec6ccaa0d CI: ensure we're using the right version of cabal.
(Add `--set` to `ghcup install`.)
2022-04-04 09:12:36 -07:00
John MacFarlane
23cffcf898 Update changelog. 2022-04-04 09:11:42 -07:00
Albert Krewinkel
dbc80c1a6b
JATS template: allow multiple licenses to be given.
The `license` metadata field can now be used to set the license of an
article; a list can be used to add multiple license statements.
2022-04-04 10:05:32 +02:00
John MacFarlane
836c3c5241 stack.yaml - use latest hslua-module-doclayout. 2022-04-03 23:29:14 -07:00
John MacFarlane
c18bb2ab58 Use latest doclayout (0.4) 2022-04-03 23:13:48 -07:00
John MacFarlane
705abd0f51 Increase lower bounds for commonmark, texmath. 2022-04-02 16:58:12 -07:00
John MacFarlane
86e53a5dd7 Use released commonmark 0.2.2, commonmark-extensions 0.2.3.1. 2022-04-02 14:27:17 -07:00
John MacFarlane
feb5b03976 Use citeproc 0.7. 2022-04-02 13:33:05 -07:00
John MacFarlane
dec0455725 Use released version of texmath. 2022-04-02 11:21:36 -07:00
John MacFarlane
f406f93dab LaTeX reader: avoid a thunk in sRawTokens. 2022-04-02 11:00:44 -07:00
John MacFarlane
7ac72fd549 Use released pandoc-types 1.22.2. 2022-04-02 10:13:58 -07:00
Albert Krewinkel
67fc2d9559
changelog: add missing backtick 2022-04-02 15:29:43 +02:00
Albert Krewinkel
c694a6e4f5
JATS template: allow multiple copyright statements, years, holders 2022-04-02 15:29:37 +02:00
John MacFarlane
0858e5af4f Provisionally update changelog. 2022-04-01 17:05:00 -07:00
John MacFarlane
1b97846be2 Fix regression with ascii_identifiers and Turkish undotted i.
Closes #8003.
2022-04-01 10:41:33 -07:00
John MacFarlane
98ff548c5e Revert "Parsing.General: make manyChar1, etc. more strict."
This reverts commit c1ab48874c.

Mistake in measurement.
2022-03-31 23:45:28 -07:00
John MacFarlane
c1ab48874c Parsing.General: make manyChar1, etc. more strict.
Profiling the muse reader revealed that these were creating huge thunks.
2022-03-31 23:09:14 -07:00
John MacFarlane
a11cbc7b57 Use timestamp when storing latest bench. 2022-03-31 10:26:06 -07:00
John MacFarlane
ffa13769e6 RTF reader: increased stricness.
This leads to some performance improvements.
2022-03-31 10:11:48 -07:00
John MacFarlane
8b21ec7d0c Markdown reader: add some strictness.
This improves some benchmarks significantly.
2022-03-31 10:11:48 -07:00
Albert Krewinkel
ad726953b9
Lua: allow to pass Sources to pandoc.read (#8002)
Sources, the data type passed to the `Reader` function in custom
readers, are now accepted as input to `pandoc.read`.
2022-03-30 14:10:30 -07:00
John MacFarlane
63de34481a stack.yaml - remove redundant clause for doclayout. 2022-03-30 14:09:40 -07:00
John MacFarlane
b8e0d574b1 STrictness improvement in RTF reader. 2022-03-30 13:19:09 -07:00
John MacFarlane
ac2bf2f372 Use latest dev doclayout, pandoc-types 2022-03-30 13:19:06 -07:00
John MacFarlane
5f0bfd41a8 LaTeX writer: add () after booktabs rules.
These commands take optional arguments with () and [],
which can lead to problems if the content of the table
cell begins with these characters.

Closes #8001.
2022-03-30 10:07:09 -07:00
John MacFarlane
bb5f0f7b76 HTML writer: Further performance improvements. 2022-03-30 09:48:56 -07:00
John MacFarlane
4a54ca5b0b Add mime type for mkv extension (#7181). 2022-03-30 09:44:22 -07:00
John MacFarlane
d71d01f41a HTML writer: add a performance shortcut to strToHtml. 2022-03-30 09:34:16 -07:00
John MacFarlane
5fbea20e03 Fixed two thunk leaks in RTF reader.
This further reduces memory usage.
See #7943.
2022-03-29 22:42:20 -07:00
John MacFarlane
97a9b2e70f Makefile: allow GHCOPTS in quick-cabal target 2022-03-29 22:42:13 -07:00
John MacFarlane
76748ee0fe JATS reader: handle pub-date.
Closes #8000.
2022-03-29 19:41:14 -07:00
John MacFarlane
a9498a1568 LaTeX writer: support page,trim,clip attributes on images.
These are actually supported by `\includegraphics`, though
this is not well documented. See
https://tex.stackexchange.com/questions/7938/pdflatex-includegraphics-and-multi-page-pdf-files

Partially addresses #7181.
2022-03-29 09:03:28 -07:00
Albert Krewinkel
7a7e1b2b70
RST reader: wrap math in Span to preserve attributes (#7998)
Math elements with a name, classes, or other fields are wrapped in a
`Span` with these attributes.
2022-03-29 08:50:55 -07:00
Jonathan Dönszelmann
cd931e55b6
Refactor Text.Pandoc.Writers.EPUB (#7991)
Refactor for readability.

Co-authored-by: Ola Wolska <A.k.wolska@student.tudelft.nl@gmail.com>
Co-authored-by: Ivar de Bruin <ivardb@gmail.com>
Co-authored-by: Jaap de Jong <jaapdejong15@gmail.com>
2022-03-29 08:40:20 -07:00
Albert Krewinkel
40dd8fd129
Include Lua version in --version output. (#7997) 2022-03-29 08:38:00 -07:00
Albert Krewinkel
e4f4be6c80
Remove redundant dependency on hslua-marshalling.
The package is a dependency of hslua; all important modules are
re-exported.
2022-03-29 08:04:49 +02:00
John MacFarlane
807a574e9d JATS reader: strip 'ref-' from ref id in constructing CSL id.
This allows better round-tripping, because the JATS
writer adds the `ref-` prefix to the citation id to get
the ref element's id.
2022-03-28 18:50:03 -07:00
John MacFarlane
51c8b059e1 JATS reader: improve refs parsing.
Handle issn and isbn; use simpler form for issued date.
2022-03-28 18:37:33 -07:00
John MacFarlane
6217fd0976 JATS writer: Fix handling of CSL variable 'page'.
Not 'pages' as we had before.  It should go to 'lpage' and 'rpage',
not 'page-range'.  See
https://jats.nlm.nih.gov/archiving/tag-library/1.1/element/page-range.html

Fixed some mistakes in test #7042.
2022-03-28 17:04:10 -07:00
John MacFarlane
5c7dc4c7f3 JATS reader: support PMID, DOI, issue in citations.
Closes #7995.
2022-03-28 17:04:10 -07:00
Albert Krewinkel
c5cd03a022
JATS writer: keep edition info in element citations.
Closes: #7993
2022-03-28 21:45:56 +02:00
John MacFarlane
f5129666e7 Add lua53 flag.
It is false by default.  If set to true, compile with hslua 2.1
and Lua 5.3, otherwise hslua 2.2 and Lua 5.4.
2022-03-28 10:06:52 -07:00
John MacFarlane
35350fac85 JATS writer: avoid doubled ref-list element.
Previously when generating JATS with the `element_citations`
extension enabled, the references were put in a doubly-nested
ref-list element (`<ref-list><ref-list>...`).  This is now fixed.

Closes #7990.
2022-03-27 09:32:55 -07:00
Nikolai Korobeinikov
e2923747a4
Docx writer: add bookmark with table id to table (#7989)
This allows tables with ids to be linked to.

Closes #7285.
2022-03-26 10:00:05 -07:00
John MacFarlane
51f18d52c7 Rename T.P.Parsing.Combinators -> T.P.Parsing.General.
Because many of the exported things aren't combinators...

Also remove redundant explot of indentWith from T.P.Parsing.Lists.
2022-03-25 11:14:54 -07:00
John MacFarlane
f520ac9b17 T.P.Parsing: use explicit imports. 2022-03-25 11:03:35 -07:00
John MacFarlane
1572c27241 More optimization of RTF reader. 2022-03-25 09:14:47 -07:00
John MacFarlane
672822cf98 RTF reader: optimize parsing of unformatted text. 2022-03-25 08:38:50 -07:00