Commit graph

15559 commits

Author SHA1 Message Date
Brian Leung
67daf96bdd
Org reader: allow attrs for Org tables. (#8049)
Tables with attributes are no longer wrapped in Div elements;
attributes are added directly to the table element.
2022-05-02 17:25:57 +02:00
Albert Krewinkel
843eeae13d
JATS template: include particles, prefix, suffix in names 2022-05-01 13:02:53 +02:00
John MacFarlane
c1105e6b06 HTML writer: avoid doubled style attribute...
when height and width are added to style because of an image,
but the image already has a style attribute.

Closes #8047.
2022-04-28 15:49:20 -07:00
John MacFarlane
c05f95773d Update manfilter for greater portability.
The tables in our man pages were not rendering correctly
with mandoc, now used by default with macOS. mandoc doesn't
allow man formatting inside table cells.

For maximal portability, we now render the tables in plain
format and include them as code blocks in the man page.

Closes #8045.
2022-04-27 10:02:37 -07:00
John MacFarlane
50c9848c34 HTML writer: Add 'footnotes' identifier to footnotes section.
Closes #8043.
2022-04-26 13:03:02 -07:00
Albert Krewinkel
8689d9c0d6
Fix tests after changes to JATS template 2022-04-26 19:32:31 +02:00
Albert Krewinkel
3f354ce4b8
JATS template: unconditionally include permissions element
Fixes a bug that caused license information to be omitted when no copyright
information was provided.

Fixes: #8040
2022-04-26 17:48:27 +02:00
John MacFarlane
4c485fbf41 nightly: use ghcup instead of haskell/actions 2022-04-24 22:52:03 -07:00
dependabot[bot]
955cb1fbc9
Bump haskell/actions from 1 to 2 (#8039)
Bumps [haskell/actions](https://github.com/haskell/actions) from 1 to 2.
- [Release notes](https://github.com/haskell/actions/releases)
- [Commits](https://github.com/haskell/actions/compare/v1...v2)

---
updated-dependencies:
- dependency-name: haskell/actions
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-24 22:47:58 -07:00
John MacFarlane
16f0316fba Add tsv (tab separated values) as an input format.
We us ethe simple spec at
<https://www.iana.org/assignments/media-types/text/tab-separated-values>.

API change: Text.Pandoc.Readers.CSV now exports `readTSV`.

Internal change:  In Text.Pandoc.CSV, CSVOptions has changed
so that csvQuote takes a Maybe value.

Closes #7974.
2022-04-24 12:25:04 -07:00
Hos Es
b1990b0657
LaTeX template: Fix <200c> character rendering (#8036)
Renamed `\textormath` to `\TextOrMath`.
2022-04-23 11:38:47 +02:00
John MacFarlane
ef69474a69 Markdown writer: disable soft wrapping when hard_line_breaks enabled.
We were already doing this for `markdown`; this commit does
the same thing for `markua` and `commonmark` and `gfm`.

Closes #8035.
2022-04-22 17:20:21 -07:00
John MacFarlane
281e2599dc RIS reader: make parser more forgiving.
Allow blank lines after entries.

Allow entries with no space after the `-`, provided they
just have a newline, e.g. `DB -\n`.

Closes #8034.
2022-04-22 10:59:07 -07:00
John MacFarlane
f9b2ca7465 HTML writer: do not include the deprecated doc-endnote role.
doc-endnote was deprecated in DPUB-ARIA 1.1.
Closes #8030.
2022-04-21 08:07:37 -07:00
John MacFarlane
f3cfeba3ef Don't parse inline notes with blank lines inside.
Previously we parsed them but discarded part of the content.
Closes #8028.
2022-04-20 13:34:41 -07:00
John MacFarlane
ec27946869 LaTeX reader: support \includesvg.
Closes #8027.
2022-04-19 13:01:12 -07:00
John MacFarlane
6dc692bc5f Fix compiler warnings from last commit. 2022-04-18 15:19:21 -07:00
John MacFarlane
6a041a1b75 Don't replace links with empty spans in TOC.
This was a performance enhancement which probably isn't
too significant.  Closes #8020.

Note that, with this change, T.P.Shared.deLink isn't used
anywhere in the code base; perhaps we should deprecate it
(or remove it, but this would be an API change).
2022-04-18 14:22:31 -07:00
John MacFarlane
990eb85dc7 Fix 2.18 release date in changelog.
Closes #8023.
2022-04-17 13:14:57 -07:00
Albert Krewinkel
e1dc292a0c
MANUAL: remove spurious backtick. 2022-04-13 11:40:18 +02:00
John MacFarlane
dc03399cc3 Add 'nightly' flag.
This causes a `-nightly-COMPILEDATE` suffix to be added the
the output of `--version`.

This is used in the nightly CI builds.

Closes #8016.
2022-04-12 18:03:26 -07:00
John MacFarlane
f460936528 Revert "Add 'nightly' flag and build with this for nightlies."
This reverts commit f81f5a2090.
2022-04-12 10:06:02 -07:00
John MacFarlane
ebad679107 Revert "Add CPP to avoid warning with nightly flag disabled."
This reverts commit 30f4f85f91.
2022-04-12 10:05:59 -07:00
John MacFarlane
98034e8673 Revert "Nightly builds: ensure that data files are baked in."
This reverts commit a2818e97eb.
2022-04-12 10:05:24 -07:00
John MacFarlane
a2818e97eb Nightly builds: ensure that data files are baked in.
It seems that stack is replacing ALL flag settings rather
than overriding just one with `--flag`?

This should address #8016 but we await testing after
tonight's nightly is built.
2022-04-12 09:19:01 -07:00
John MacFarlane
30f4f85f91 Add CPP to avoid warning with nightly flag disabled. 2022-04-11 22:36:18 -07:00
John MacFarlane
f81f5a2090 Add 'nightly' flag and build with this for nightlies.
This flag causes a suffix '-nightly-YYYY-MM-DD' to be added
to the version for nightlies.

Closes #8016.
2022-04-11 17:17:11 -07:00
John MacFarlane
0ddddf2f37 Revert "Add info about git commit and date to --version info."
This reverts commit 9d7c01e4a4.
2022-04-11 13:14:38 -07:00
John MacFarlane
c13db98dce Revert "Relax version bound on githash so the version in stackage works."
This reverts commit 69ad7cbcbd.
2022-04-11 13:14:36 -07:00
John MacFarlane
69ad7cbcbd Relax version bound on githash so the version in stackage works. 2022-04-11 11:35:54 -07:00
John MacFarlane
9d7c01e4a4 Add info about git commit and date to --version info.
See #8016.
2022-04-11 10:40:51 -07:00
Castedo Ellerman
810879a02b
Add HTML to formats including abstract (#8014)
Default HTML template is also including metadata variable `abstract`
2022-04-10 16:40:49 -07:00
John MacFarlane
356ece29cb Commonmark/markua/gfm writers: avoid excessive indentation...
on bullet lists.  They are now nested by 2 spaces instead of 4.

See #8011.
2022-04-08 20:52:37 -07:00
John MacFarlane
813f3d5dd4 Shared.taskListItemToAscii: handle asciidoctor's characters.
Asciidoctor uses different unicode characters for task
lists; we should recognize them too and be able to convert
them to ascii task lists in formats like gfm.

Closes #8011.
2022-04-08 18:20:56 -07:00
John MacFarlane
7fb74b74df JATS reader: strip ref- prefix from ref id in xref.
This completes commit 807a574e9d.
Closes #8007.
2022-04-06 23:14:10 -07:00
Naveen
125210c108
Set permissions for GitHub actions (#8005)
- Included permissions for the action. https://github.com/ossf/scorecard/blob/main/docs/checks.md#token-permissions

https://docs.github.com/en/actions/using-jobs/assigning-permissions-to-jobs

Signed-off-by: naveensrinivasan <172697+naveensrinivasan@users.noreply.github.com>
2022-04-04 20:58:46 -07:00
John MacFarlane
4c8ad1fbaf Minor changelog tweaks 2022-04-04 11:34:47 -07:00
John MacFarlane
4902e83bdc Update AUTHORS.md. 2022-04-04 09:47:32 -07:00
John MacFarlane
221ae4c8cb Update man page. 2022-04-04 09:43:27 -07:00
John MacFarlane
ce0b119d57 Update changelog 2022-04-04 09:43:23 -07:00
John MacFarlane
c47b2a21bd Bump to 2.18. 2022-04-04 09:42:55 -07:00
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