John MacFarlane
82638ad53b
Convert Quoted in bib entries to special Spans...
...
before passing them off to citeproc.
This ensures that we get proper localization and flipflopping
if, e.g., quotes are used in titles.
Closes jgm/citeproc#87 .
2021-08-13 19:25:29 -07:00
John MacFarlane
15683bb607
Citeproc: avoid odd handling of quotes.
...
citeproc changes allow us to ignore Quoted elements;
citeproc now uses its own method for represented quoted
things, and only localizes and flipflops quotes it adds itself.
See #87 .
The one thing left to do is to convert Quoted elements in
bibliography databases (esp. titles) to `Span ("",["csl-quoted"],[])`
before passing them to citeproc, IF the localized quotes
for the quote type match the standard inverted commas.
2021-08-13 18:13:06 -07:00
John MacFarlane
05640f9a21
Removed quote localization from citeproc processing.
...
This is now done in citeproc itself.
2021-08-13 17:30:54 -07:00
John MacFarlane
168b559c96
Use doctemplates 0.4.1 and citeproc 0.10.
2021-07-18 10:55:27 -07:00
John MacFarlane
cfa52e5824
Use skylighting 0.11.
2021-07-17 23:29:15 -07:00
John MacFarlane
ff26af59ac
Revamp note citation handling.
...
Use latest citeproc, which uses a Span with a class rather
than a Note for notes. This helps us distinguish between
user notes and citation notes.
Don't put citations at the beginning of a note in parentheses.
(Closes #7394.)
2021-07-05 13:19:33 -07:00
John MacFarlane
b7572db224
Use dev version of citeproc.
...
This eliminates double hyperlinks in author-in-text citations.
Author-only citations are no longer hyperlinked.
See jgm/citeproc#77 .
2021-06-29 09:18:49 -07:00
John MacFarlane
382be73d77
Use dev version of citeproc.
...
This fixes moving of punctuation inside quotes to conform to
the CSL spec: only comma and period are moved, not question
mark or exclamation point.
2021-06-28 22:56:16 -07:00
John MacFarlane
7ac8fcbcac
Require commonmark-pandoc >= 0.2.2.1.
...
This fixes task lists with multiple paragraphs.
2021-06-28 12:20:12 -07:00
John MacFarlane
7dcf727382
Use dev version of doctemplates.
2021-06-22 23:58:24 -07:00
John MacFarlane
0c4ed0045a
Bump to 2.14.0.3, update changelog, require latest skylighting.
2021-06-20 19:25:43 -07:00
John MacFarlane
39d019ca73
Use lts-18.0 stack resolver.
2021-06-20 18:17:38 -07:00
John MacFarlane
a8556ac06c
Require commonmark 0.2.1.
2021-06-20 17:46:47 -07:00
John MacFarlane
17a2f4c49d
Require citeproc 0.4.0.1.
...
This fixes a bug which led to doubled "et al." in some
(rare) circumstances.
2021-06-05 10:04:30 -06:00
John MacFarlane
f363f00db8
Use commonmark-extensions 0.2.1.2
2021-05-29 19:20:03 -07:00
John MacFarlane
e72d2dd962
Use latest commonmark.
2021-05-28 13:14:56 -07:00
Albert Krewinkel
bb2530caa4
Use haddock-library-1.10.0
2021-05-25 11:52:49 -07:00
Albert Krewinkel
d46ea7d7da
Jira: add support for "smart" links
...
Support has been added for the new
`[alias|https://example.com |smart-card]` syntax.
2021-05-25 16:54:42 +02:00
Albert Krewinkel
c5f9446646
Use jira-wiki-markup 1.3.5
...
* Allow spaces and most unicode characters in attachment links.
* No longer require a newline character after `{noformat}`.
* Only allow URI path segment characters in bare links.
* The `file:` schema is no longer allowed in bare links; these
rarely make sense.
Closes : #7218
2021-05-24 08:45:59 +02:00
John MacFarlane
971a31b4d8
Bump upper-bounds for network-uri, time.
...
Change stack.yaml to use lts-17.12.
2021-05-21 10:51:35 -07:00
John MacFarlane
697d149733
Use released citeproc 0.4.
2021-05-12 14:35:06 -07:00
John MacFarlane
84fa901fd6
Use texmath 0.12.3.
2021-05-12 12:52:04 -07:00
John MacFarlane
16b64bda38
Use dev texmath, citeproc.
2021-04-25 21:56:54 -07:00
John MacFarlane
ac62b082ee
stack.yaml - use latest unicode-collation.
2021-04-20 14:59:59 -07:00
John MacFarlane
9d6c3fa41f
Use lastest citeproc.
2021-04-18 11:35:09 -07:00
John MacFarlane
b7a2632184
Use lastest unicode-collation.
2021-04-18 11:34:12 -07:00
John MacFarlane
a478a5c4c8
Update to released unicode-collation, latest citeproc dev version.
...
Update citeproc test.
2021-04-17 16:15:14 -07:00
John MacFarlane
ff5a504809
Use new citeproc + unicode-collation.
...
Add command test for unicode-collation.
2021-04-17 16:15:13 -07:00
John MacFarlane
2e7fee9c3c
Use latest xml-conduit.
2021-04-15 14:30:33 -07:00
John MacFarlane
88d3d55909
Require latest skylighting (fixes a bug in XML syntax highlighting).
2021-03-22 14:28:03 -07:00
John MacFarlane
425c2e47b5
Use skylighting 0.10.5.
...
This fixes a bad regression in Haskell syntax highlighting.
2021-03-19 11:58:56 -07:00
John MacFarlane
27d7652329
Use random 1.2.0 in stack.yaml.
2021-03-17 22:49:50 -07:00
John MacFarlane
0b1869fd42
Remove unnecessary tasty-bench from extra-deps
2021-03-17 09:01:43 -07:00
John MacFarlane
1ef3534328
Increase heap space in runtime for benchmarks.
...
Otherwise we're essentially benchmarking garbage collecting,
which can give very inconsistent results.
2021-03-16 15:59:50 -07:00
John MacFarlane
5f94dd74f1
Require texmath 0.12.2
2021-03-15 15:36:57 -07:00
John MacFarlane
a9ef6b4380
Use doclayout 0.3.0.2.
...
This further reduces time and memory needed to compile pandoc.
2021-03-15 15:35:15 -07:00
John MacFarlane
39934c8851
Require latest doclayout and skylighting.
2021-03-14 15:48:01 -07:00
John MacFarlane
c55a73b642
Use latest dev version of doclayout.
...
This reduces compile time/memory consumption for pandoc considerably.
See jgm/doclayout#1 .
2021-03-14 00:10:37 -08:00
John MacFarlane
3519d6f3b4
Use eciteproc >= 0.3.0.9
2021-03-13 11:27:05 -08:00
Albert Krewinkel
777f8ec20b
stack.yaml: add jira-wiki-markup-1.3.4 to extra-deps
2021-03-13 15:41:47 +01:00
John MacFarlane
46e2b3dc8d
Update stack resolver.
2021-03-04 09:00:23 -08:00
John MacFarlane
b251df0c6e
stack.yaml - use citeproc 0.3.0.8
2021-03-02 17:09:35 -08:00
John MacFarlane
63123db22f
Add xml-conduit to stack.yaml extra-deps.
2021-02-27 14:26:10 -08:00
John MacFarlane
cbc3f034ad
Use skylighting 0.10.4.
...
This version of skylighting uses xml-conduit rather than hxt.
This speeds up parsing of XML syntax definitions fourfold, and
removes four packages from pandoc's dependency graph:
hxt-charproperties
hxt-unicode
hxt-regex-xmlschema
hxt
2021-02-27 14:26:10 -08:00
John MacFarlane
9767386676
Use latest skylighting.
2021-02-22 22:25:10 -08:00
John MacFarlane
b2b32d9bb2
'make bench': Create csv files for comparison.
2021-02-18 23:22:18 -08:00
Albert Krewinkel
8ffd4159d6
Jira: require jira-wiki-markup 1.3.3
...
* Modified the Doc parser to skip leading blank lines. This fixes
parsing of documents which start with multiple blank lines.
(#7095 )
* Prevent URLs within link aliases to be treated as autolinks.
(#6944 )
Fixes : #7095
Fixes : #6944
2021-02-12 17:15:12 +01:00
John MacFarlane
9994ad977d
Use lts-17.2 resolver (with ghc 8.10.3).
2021-02-08 10:11:06 -08:00
John MacFarlane
0ab3e4048c
stack.yaml - use commonmark-0.1.1.4 for GHC 9
2021-02-06 19:00:22 -08:00
Albert Krewinkel
2ace15964b
Fix stack config
2021-02-02 21:04:30 -08:00
Albert Krewinkel
61b108d527
Lua: add module "pandoc.path"
...
The module allows to work with file paths in a convenient and
platform-independent manner.
Closes : #6001
Closes : #6565
2021-02-02 21:04:30 -08:00
John MacFarlane
b239c89a82
BibTeX writer fixes. Closes #7067 .
...
+ Require citeproc 0.3.0.7, which correctly titlecases when titles
contain non-ASCII characters.
+ Correctly handle 'pages' (= 'page' in CSL).
+ Correctly handle BibLaTeX 'langid' (= 'language' in CSL).
+ In BibTeX output, protect foreign titles since there's no language
field.
2021-02-01 11:23:07 -08:00
John MacFarlane
a9adb29648
Require citeproc 0.3.0.6.
2021-01-30 19:09:08 -08:00
John MacFarlane
fe06437ba4
Use tasty-bench instead of criterion for benchmarks.
...
It is much lighter-weight.
2021-01-30 18:01:14 -08:00
John MacFarlane
a6c7469c85
Use latest citeproc.
...
The fix to jgm/citeproc#49 also closes #7060 .
2021-01-30 13:56:43 -08:00
John MacFarlane
f5e3c1dad6
Use citeproc 0.3.0.5.
2021-01-22 11:06:35 -08:00
John MacFarlane
07c98eae50
Use citeproc >= 0.3.0.4.
2021-01-15 14:17:17 -08:00
John MacFarlane
3d6ebc9051
Use dev version of citeproc.
...
Change a citation test which had wrong disambiguation
(see jgm/citeproc#44 ).
2021-01-15 11:51:07 -08:00
John MacFarlane
4a223e68f4
Use commonmark 0.1.1.3.
2021-01-11 12:23:55 -08:00
John MacFarlane
5d8b57444e
Use citeproc 0.3.0.3.
...
Fixes an issue in author-only citations when both an
author and translator are present.
2020-12-29 10:43:50 -08:00
John MacFarlane
053db934de
Use latest citeproc release.
2020-12-28 12:09:28 -08:00
John MacFarlane
19d4e43605
Require texmath 0.12.1.
2020-12-27 22:57:14 -08:00
John MacFarlane
aa37970969
Use citeproc 0.3.0.1.
2020-12-18 15:08:23 -08:00
John MacFarlane
211b6a1fc7
Remove .travis.yml and add CircleCI config.
2020-12-17 23:38:44 -08:00
John MacFarlane
9ec3d6ee97
Use skylighting 0.10.2.
...
Cloess #6625 .
2020-12-17 09:32:13 -08:00
John MacFarlane
791cb05b3e
Use released citeproc 0.3.
2020-12-16 23:57:12 -08:00
John MacFarlane
a27052da58
Use released doctemplates 0.9.
2020-12-16 23:45:23 -08:00
John MacFarlane
914cf0b602
Fix citeproc regression with duplicate references.
...
- Use dev version of citeproc, which handles duplicate
ids better, preferring the last one in the list
and discarding the rest.
- Ensure that inline citations take priority over external
ones.
See jgm/citeproc#36 .
This restores the behavior of pandoc-citeproc.
2020-12-16 15:37:40 -08:00
John MacFarlane
41577a6656
Use latest dev version of doctemplates.
2020-12-16 07:56:37 -08:00
John MacFarlane
b4b4e32307
Properly handle boolean values in writing YAML metadata.
...
(Markdown writer.)
This requires doctemplates >= 0.9.
Closes #6388 .
2020-12-15 23:45:34 -08:00
John MacFarlane
0dd228593f
Use latest citeproc release.
2020-12-09 09:34:15 -08:00
John MacFarlane
4ca0d590e2
Use a more recent stack resolver.
2020-11-30 23:02:24 -08:00
John MacFarlane
0240623eda
Use doctemplates 0.8.3.
...
Fixes issues with nested for loops in templates.
2020-11-30 22:45:12 -08:00
John MacFarlane
1489bb8414
Use skylighting 0.10.1.
2020-11-24 21:26:25 -08:00
John MacFarlane
2e372ab921
Use dev version of citeproc.
2020-11-22 16:10:30 -08:00
John MacFarlane
3f278f580e
Remove 'static' flag.
...
This isn't really necessary and can be misleading
(e.g. on macOS, where a fully static build isn't
possible). cabal's new option
`--enable-executable-static` does the same. On stack
you can add something like this to the options for your
executable in package.yaml:
ld-options: -static -pthread
2020-11-18 21:08:24 -08:00
John MacFarlane
e17f970ed0
Use citeproc 0.2
2020-11-18 17:49:30 -08:00
John MacFarlane
e6abf3b8ed
Use citeproc 0.1.1.1.
...
Closes #6813 .
2020-11-05 21:23:57 -08:00
John MacFarlane
9de386352a
Require latest commonmark, commonmark-extensions.
...
Fixes a bug with `autolink_bare_uris` and commonmark.
2020-11-05 16:58:36 -08:00
John MacFarlane
391f6e5f80
Use latest commonmark, commonmark-extensions.
2020-11-05 15:05:11 -08:00
John MacFarlane
b5e9c2a7a6
Use citeproc 0.1.1.
2020-11-04 11:15:48 -08:00
John MacFarlane
992657efaa
Use latest commonmark, commonmark-extensions.
...
This fixes a bug with nested blocks in footnotes with the
`footnote` extension to `commonmark`. See jgm/commonmark-hs#63 .
2020-11-01 10:48:47 -08:00
John MacFarlane
2125aea026
Use latest citeproc.
2020-11-01 10:48:47 -08:00
John MacFarlane
3e6d009c6b
Use new citeproc; do note capitalization here, not in citeproc.
2020-10-29 21:53:02 -07:00
John MacFarlane
517c55dae7
Use latest citeproc. Closes #6783 .
2020-10-27 22:21:03 -07:00
John MacFarlane
e6ca13c6c1
stack.yaml - use latest release of skylighting.
2020-10-22 22:06:04 -07:00
John MacFarlane
2059c05f0e
Require citeproc >= 0.1.0.3.
...
In the previous release we pointed to this with cabal.project
and stack.yaml, but jumped the gun because citeproc 0.1.0.3
had not yet been officially released.
2020-10-22 21:45:38 -07:00
John MacFarlane
b876793910
Use latest citeproc.
...
This fixes a problem with author-in-text citations for references
including both an author and an editor. Previously, both were
included in the text, but only the author should be.
Closes #6765 . Added a test.
2020-10-21 23:14:17 -07:00
John MacFarlane
3c8b3eba17
Require citeproc 0.1.0.2.
2020-10-15 13:00:37 -07:00
John MacFarlane
1122d22a2c
Use citeproc 0.1.0.1.
2020-10-13 22:44:05 -07:00
John MacFarlane
229e763646
Depend on latest citeproc.
...
This fixes the citation number issue with ieee.csl and other
styles that do not explicitly sort bibliographies. (Pandoc
was numbering them by their order in the bibliography file,
rather than the order cited, as required by the CSL spec.)
Closes #6741 .
2020-10-13 14:52:09 -07:00
John MacFarlane
6fce81fb61
Use latest citeproc (better grouping/collapsing behavior with prefixes).
2020-10-13 11:06:02 -07:00
John MacFarlane
72f2a1ee9c
Use released citeproc 0.1.
2020-10-09 16:35:05 -07:00
John MacFarlane
3b2dd1e1b3
Use lastest citeproc.
2020-10-07 11:23:15 -07:00
John MacFarlane
d2e4a83dc6
Use latest citeproc.
...
Better solution to the problem of entities in CSL JSON output.
2020-10-07 09:31:44 -07:00
John MacFarlane
7d54e79091
Use latest citeproc.
...
Update chicago-fullnute-bibliography test, which is now correct.
2020-10-03 16:07:55 -07:00
John MacFarlane
27b4c21f72
Update to lastest citeproc
2020-10-01 22:07:55 -07:00
John MacFarlane
46dffbd8e5
Use latest citeproc.
2020-09-27 23:52:28 -07:00
John MacFarlane
eff6b8f27d
Use latest citeproc.
2020-09-27 16:03:31 -07:00
John MacFarlane
3abfcbeef7
Use latest citeproc.
2020-09-26 17:13:55 -07:00