Commit Graph
16892 Commits
Author SHA1 Message Date
Albert Krewinkel 2c6f22d2b4 Lua: Use the newest LPeg version (lpeg-1.1.*)
Closes: #9107
2023-09-27 21:04:49 +02:00
samuel-weinhardt edbea270f5 Apply style to h6 2023-09-23 22:10:52 -07:00
samuel-weinhardt 957489de85 Format styles 2023-09-23 22:10:52 -07:00
samuel-weinhardt 35b23526b2 Combine identical styles under shared selectors 2023-09-23 22:10:52 -07:00
John MacFarlane a19cd39a6f JATS writer: fix 3.1.4 regression in handling block-level metadata.
Closes #9092.
2023-09-21 14:22:30 -07:00
John MacFarlane 26d077fa21 T.P.Shared: add addPandocAttributes function.
[API change]

This is meant to simplify addition of attributes to Pandoc
elements; for elements that don't have a slot for attributes,
an enclosing Div or Span is added to hold the attributes.

Ideally this would live in pandoc-types, but for now we
reuse some code from commonmark-pandoc.
2023-09-20 11:55:59 -07:00
John MacFarlane e57953b9f0 Fix uneven indents in LaTeX line block output.
Closes #9088.
2023-09-18 15:59:26 -07:00
Seth Speaks 0d27947b96 HTML reader: parse task lists using input elements (#9066)
Allow the HTML reader to parse task lists of the sort produced by pandoc.
Closes #9047
2023-09-16 09:21:01 -07:00
piq9117 138613156a update nix flake with deps 2023-09-16 00:00:50 -07:00
John MacFarlane 30bef24924 Markdown reader: More accurate check that a normalCite...
...is not a link, bracketed span, or reference.

See #9080.
2023-09-14 15:25:58 -07:00
John MacFarlane 3ff206cc4b Ms writer: improvements in image handling.
See #4475.

+ PDFPIC is now used for PDF images in figures.
+ Inline images that are postscript or PDF are rendered using
  PSPIC or PDFPIC. This isn't ideal, because they will still be
  rendered as if in a separate paragraph, but it's probably
  better than just printing the image name.
+ Units are included in height.

For further improvement, we might consider in Text.Pandoc.PDF
using something like `convertImages` (which we currently use for
converting to PDF via LaTeX) to convert SVG (and other?) images
to PDF so they can be rendered in this way.
2023-09-14 11:26:46 -07:00
John MacFarlane 03d25f9469 stack.yaml - add commonmark-extensions. 2023-09-13 20:34:42 -07:00
John MacFarlane 8317c5cec8 Use latest texmath.
This should improve math in powerpoint, fixing empty boxes
around roots in some cases.
2023-09-13 19:55:22 -07:00
John MacFarlane 3f990ad0a1 Require latest commonmark-extensions 2023-09-13 19:54:40 -07:00
John Purnell c9fe8b81ca LaTeX template: fix \CSLBlock vertical space 2023-09-10 21:22:54 -07:00
John MacFarlane ab154a46b0 Switch to actions/checkout@v4. 2023-09-10 21:11:16 -07:00
dependabot[bot] 8d924ef645 Bump cachix/install-nix-action from 22 to 23 (#9074)
Bumps [cachix/install-nix-action](https://github.com/cachix/install-nix-action) from 22 to 23.
- [Release notes](https://github.com/cachix/install-nix-action/releases)
- [Commits](https://github.com/cachix/install-nix-action/compare/v22...v23)

---
updated-dependencies:
- dependency-name: cachix/install-nix-action
  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>
2023-09-10 21:09:58 -07:00
John MacFarlane cba8bb4658 Allow tasty 1.5. 2023-09-10 11:42:20 -07:00
John MacFarlane 5f5581d45a Fix changelog indentation. 2023-09-10 11:42:11 -07:00
John MacFarlane b65cd517b3 Update man page with correct version. 3.1.8 2023-09-09 10:19:28 -07:00
John MacFarlane 2f5f87408c Update AUTHORS.md 2023-09-09 10:19:26 -07:00
John MacFarlane eeda032711 Bump to 3.1.8. 2023-09-08 22:05:33 -07:00
John MacFarlane 6795f91f85 Update manual and changelog. 2023-09-08 22:05:19 -07:00
John MacFarlane 1d120dc1d3 Remove extra tls in stack.yaml. 2023-09-08 16:27:38 -07:00
John MacFarlane 6076c3fb59 Update tls version in stack.yaml. 2023-09-08 12:52:51 -07:00
John MacFarlane a1e3382a64 Depend on released texmath 0.12.8.2. 2023-09-08 10:27:52 -07:00
John MacFarlane 0d6a3378b4 Update default.csl to latest chicago-author-date.csl. 2023-09-07 15:43:09 -07:00
John MacFarlane 254e22f3e7 LaTeX template: remove space around \strut in CSL commands.
See #9058.
2023-09-07 15:40:55 -07:00
John MacFarlane d051aa9c9d Fix typo in latex template. 2023-09-07 13:02:25 -07:00
John MacFarlane 1ad99f64fa HTML writer: Fix CSL entry-spacing default.
See #9058.
2023-09-07 09:16:25 -07:00
John MacFarlane db9aa72037 Fix default citeproc entry-spacing.
According to the CSL manual, the default entry spacing is 1.
We were treating it as 0.

T.P.Citeproc:  always include an entry-spacing attribute
in the Div if the bibliography element contains an entry-spacing
attribute (previously we omitted it when it was 0).

LaTeX writer: use entry spacing 1 if no entry-spacing
attribute is present.

Update tests.

See #9058.
2023-09-07 09:06:23 -07:00
John MacFarlane 6273220449 Adjust default latex template to improve citeproc output.
- Add a strut to avoid inconsistencies in spacing.
- Remove a break at the end of CSLRightInline to avoid
  inconsistencies in spacing. It shouldn't be necessary
  because the paragraph should extend to the right margin.

See #9058.
2023-09-07 09:04:56 -07:00
John MacFarlane 1c7a57f069 Depend on dev texmath.
Closes #9063.
2023-09-06 21:06:28 -07:00
John MacFarlane a472567115 Org reader: factor out orgAnchor -> Org.Parsing.
A purely internal change. We will use this both in inline
and block parsing.
2023-09-06 20:08:18 -07:00
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