Commit Graph
16858 Commits
Author SHA1 Message Date
John MacFarlane b7e1ce422c Rewrite CSLReferences environment...
...to avoid depending on enumitem, which plays badly with
beamer.  Instead we use a regular list environment.
Thanks to @jpcirrus for the concept.

We also restore the pre-3.1.7 format of the CSLReferences
environment, which again has two parameters. The first
determines whether a hanging indent is used (1 = yes, 0 = no),
and the second is the entry line spacing (0 = none).

Closes #9053.
2023-09-05 20:24:20 -07:00
John MacFarlane 4b1fc4de72 LaTeX template: fix regression with CSL display="block".
We no longer got a line break before the block; this restores it.
Closes #7363.
2023-09-04 16:55:47 -07:00
John MacFarlane aca36563c9 JATS reader: fix conversion of date to ISO 8601 format.
See #8865.
2023-09-04 16:55:47 -07:00
Julia Diaz a267b83bc8 JATS reader: Ignore <processing-meta> element (#9057) 2023-09-04 16:09:38 -07:00
John MacFarlane c017bbed58 LaTeX template: add code allow \cite to break across lines.
Closes #9050.
2023-09-03 15:29:28 -06:00
John MacFarlane 734f1b4578 Updated tested-with in pandoc.cabal. 2023-09-01 15:01:19 -07:00
John MacFarlane 632e3c1809 LaTeX writer: Fix regression.
In 3.1.7, pandoc added two labels to LaTeX figure environments,
one with a phantomsection.

Closes #9045.
2023-09-01 12:21:55 -07:00
John MacFarlane fc0beae420 pandoc-lua-engine: bump lower bound for pandoc.
See #9046.
2023-09-01 12:13:16 -07:00
Benjamin Esham 9190b19fc7 HTML writer: use the ID prefix in the ID for the footnotes section.
In general, the ID prefix makes it possible to combine multiple pieces
of Pandoc-generated HTML with no possibility that IDs will conflict. One
exception to this was that the footnotes were always put into an element
like

    <aside id="foonotes" ...>

This commit applies the ID prefix to this ID as well.
2023-09-01 11:42:48 -07:00
John MacFarlane 5fe3396a22 Add Makefile targets for pandoc-lua.1, pandoc-server.1.
Regenerate these man pages.
2023-08-31 17:57:01 -07:00
John MacFarlane 19385e1833 Clean up pandoc's own man page. 2023-08-31 17:49:30 -07:00
John MacFarlane df56ad7f51 Regenerate pandoc.1 with pandoc 3.1.7 for cleaner man code. 2023-08-31 17:38:25 -07:00
John MacFarlane 0a299a37af Clean up pandoc-server.1 man page 2023-08-31 17:37:46 -07:00
John MacFarlane 104b3bacda Add cabal update and clean to make_artifacts.sh. 3.1.7 2023-08-31 12:45:14 -07:00
John MacFarlane ccf72ddbd3 Set GHCOPTS and CABALOPTS in debpkg target. 2023-08-31 12:38:42 -07:00
John MacFarlane d9fc86888f Update AUTHORS.md. 2023-08-31 09:47:35 -07:00
John MacFarlane 0efcc12cea Allow text 2.1. 2023-08-31 09:34:11 -07:00
John MacFarlane 9599fa748d pandoc-lua-engine: bump to 0.2.1.2 pandoc-lua-engine-0.2.1.2 2023-08-31 09:32:10 -07:00
John MacFarlane 099b00d406 pandoc-lua-engine; allow text 2.1. 2023-08-31 09:29:49 -07:00
John MacFarlane 83b560cd6e pandoc-server: allow text 2.1. pandoc-server-0.1.0.3 2023-08-31 09:28:26 -07:00
John MacFarlane 71c02d5116 Fix spacing errors. 2023-08-31 09:27:47 -07:00
John MacFarlane db72432b0c Update manual date and regenerate man page. 2023-08-31 09:27:10 -07:00
John MacFarlane 781f42cc95 Bump to 3.1.7, update changelog. 2023-08-31 09:26:40 -07:00
John MacFarlane c648cc778b Bump to pandoc-server 0.1.0.3 2023-08-31 09:26:38 -07:00
John MacFarlane bad922a692 LaTeX writer: fix regression in escaping URLs.
In 3.1.6.1 the `~` was handled properly (either literally or with
`%E7`).  This broke in 3.1.6.2, which used URI encoding in both
cases and didn't escape the `\` before `%E7`. This patch restores
the former behavior: `~` isn't escaped if it isn't escaped in the
original URL, and if it is, a backslash is added before `%`.

Closes #9043.
2023-08-31 08:28:40 -07:00
John MacFarlane 6666599af9 Fix compiler warning by removing redundant definition. 2023-08-30 22:32:47 -07:00
John MacFarlane 1e43eb46ce Org reader: don't parse alphabetical lists...
...unless the `fancy_lists` extension is enabled.
Closes #9042.
2023-08-30 22:01:41 -07:00
João Alvim ed48998a89 Fix typos in changelog (#9040) 2023-08-30 14:17:21 -07:00
Julia Diaz e6470e3f7d JATS reader: Multilevel support for <permissions> metadata (#9037)
This revises the earlier support for `<permissions>`: now metadata objects
with multiple fields are created, matching the structure in JATS.
2023-08-30 08:13:03 -07:00
John MacFarlane 09de84fff4 Support images with wikilink syntax.
E.g. `![[foo|bar]]`.  (This requires enabling one of the `wikilinks`
extensions.)

Closes #8853.
2023-08-29 20:04:39 -07:00
John MacFarlane 7dca09d03a Markdown: Allow a citation or reference link to be parsed after a !.
Closes #8254.
2023-08-29 19:25:30 -07:00
John MacFarlane cd3fcd5c0e Markdown reader: fix dropped ! before nonexistent reference.
In e.g. `![foo]` the `!` would be silently dropped if `[foo]`
wasn't a reference link label.

Closes #9038.
2023-08-29 19:14:50 -07:00
John MacFarlane 353177f9e7 Use \cite and \bibitem to link up citations, even with citeproc.
See #9031 and discussion in #9020. This will give us better
accessibility; when tagging is enabled, the citation can be
linked to the bibliography entry.

This changes some of the details of the layout and the default
template. We now make CSLReferences a special enumitem list
that will contain `\bibitem`s.

Internal links inside citations to ids beginning in `ref-` are
put inside a `\cite` instead of `\hyperref`.

Closes #9031.
2023-08-29 09:23:50 -07:00
Julia Diaz 9d28e6029f Add support for <permissions> metadata 2023-08-28 08:33:57 -07:00
John MacFarlane f9153e86bb Update tests for skylighting-format-blaze-html change. 2023-08-27 10:57:09 -07:00
John MacFarlane 18bf7e1c39 Use latest skylighting-format-blaze-html.
This works around a longstanding iOS Safari bug that caused long
lines to be displayed in a different font size in highlighted code.
Closes #7248.
2023-08-27 10:39:22 -07:00
John MacFarlane 6d43490b3a Allow skylighting 0.14 (and require it in pandoc core). 2023-08-26 23:15:41 -07:00
John MacFarlane 65985f5405 LaTeX template: special definition of \st for CJK.
soul's version raises on error on CJK text.
Closes #9019.
2023-08-26 17:18:55 -07:00
Amneesh Singh e4467ba10c Org reader: allow escaping commas in macro arguments
Signed-off-by: Amneesh Singh <natto@weirdnatto.in>
2023-08-26 17:16:34 -07:00
John MacFarlane f7035d080c LaTeX writer link/target improvements.
+ Use `\phantomsection` and `\label` instead of `\hypertarget`.
+ Use `\hyperref` for LaTeX internal links, `\hyperlink` for
  beamer (since `\hyperref` doesn't seem to work).

Closes #9022.
2023-08-26 16:19:01 -07:00
Julia Diaz 9934044668 Correct name of JATS element attrib 2023-08-26 16:07:56 -07:00
John MacFarlane 5410514567 Man writer: avoid a .PP right after a section heading.
This is at best a no-op (in groff man and mandoc) and at worst
(in some formatters) may create extra whitespace.
See #9020.
2023-08-25 21:48:34 -07:00
John MacFarlane a6fe02f46a Man writer: improvements to code and code blocks.
The aim here (see #9020) is to produce more standard and more
portable man pages.  To that end:

- We revert the fanciness introduced in #7506, which employs a
  custom font name V and a macro that makes this act like boldface
  in a terminal and monospace in other formats.  Unfortunately,
  this code uses a mechanism that is not portable (and does not
  work in mandoc).

- Instead of using V for inline code, we simply use CR.
  Note that `\f[CR]` is emitted instead of plain `\f[C]`,
  because there is no C font in man.  (This produces warnings
  in recent versions of groff.)

- For code blocks, we now use the `.EX` and `.EE` macros,
  together with `.IP` for spacing and indentation.  This gives
  more standard code that can be better interpreted e.g. by mandoc.
2023-08-25 21:35:47 -07:00
John MacFarlane 0a298cb1be Lua filters documentation: remove reference to phrenology.
Closes #9024.
2023-08-25 16:23:52 -07:00
John MacFarlane 87716265c1 Man writer: don't emit .hy...
regardless of setting of `hyphenate` variable.  See #9020.
2023-08-24 21:24:33 -07:00
John MacFarlane 3cb6130d1a JATS writer: fix placement of ref-list...
...when no title is specified for the reference section.
(In this case we place it in `back` with an empty title.)
Closes #9017.
2023-08-23 16:10:00 -07:00
John MacFarlane d21a9cd7f8 Also escape % in URLs.
This improves the fix to #9017 in commit
7c4354646b

An alternative would be to avoid backslash escaping `#` and `%`
in URLs, and instead always add `fragile` to the slide environment.
2023-08-23 12:37:49 -07:00
John MacFarlane 7c4354646b LaTeX writer: backslash-escape # in URLs. Closes #9014. 2023-08-23 08:04:57 -07:00
John MacFarlane 54b9eeb6a7 Update AUTHORS.md 3.1.6.2 2023-08-22 15:55:02 -07:00
John MacFarlane 644d75fc65 Update changelog. 2023-08-22 15:53:58 -07:00