summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2023-09-07Adjust default latex template to improve citeproc output.John MacFarlane
- 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-06Depend on dev texmath.John MacFarlane
Closes #9063.
2023-09-06Org reader: factor out orgAnchor -> Org.Parsing.John MacFarlane
A purely internal change. We will use this both in inline and block parsing.
2023-09-05Rewrite CSLReferences environment...John MacFarlane
...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-04LaTeX template: fix regression with CSL display="block".John MacFarlane
We no longer got a line break before the block; this restores it. Closes #7363.
2023-09-04JATS reader: fix conversion of date to ISO 8601 format.John MacFarlane
See #8865.
2023-09-04JATS reader: Ignore `<processing-meta>` element (#9057)Julia Diaz
2023-09-03LaTeX template: add code allow `\cite` to break across lines.John MacFarlane
Closes #9050.
2023-09-01Updated tested-with in pandoc.cabal.John MacFarlane
2023-09-01LaTeX writer: Fix regression.John MacFarlane
In 3.1.7, pandoc added two labels to LaTeX figure environments, one with a phantomsection. Closes #9045.
2023-09-01pandoc-lua-engine: bump lower bound for pandoc.John MacFarlane
See #9046.
2023-09-01HTML writer: use the ID prefix in the ID for the footnotes section.Benjamin Esham
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-08-31Add Makefile targets for pandoc-lua.1, pandoc-server.1.John MacFarlane
Regenerate these man pages.
2023-08-31Clean up pandoc's own man page.John MacFarlane
2023-08-31Regenerate pandoc.1 with pandoc 3.1.7 for cleaner man code.John MacFarlane
2023-08-31Clean up pandoc-server.1 man pageJohn MacFarlane
2023-08-31Add cabal update and clean to make_artifacts.sh.John MacFarlane
2023-08-31Set GHCOPTS and CABALOPTS in debpkg target.John MacFarlane
2023-08-31Update AUTHORS.md.John MacFarlane
2023-08-31Allow text 2.1.John MacFarlane
2023-08-31pandoc-lua-engine: bump to 0.2.1.2John MacFarlane
2023-08-31pandoc-lua-engine; allow text 2.1.John MacFarlane
2023-08-31pandoc-server: allow text 2.1.John MacFarlane
2023-08-31Fix spacing errors.John MacFarlane
2023-08-31Update manual date and regenerate man page.John MacFarlane
2023-08-31Bump to 3.1.7, update changelog.John MacFarlane
2023-08-31Bump to pandoc-server 0.1.0.3John MacFarlane
2023-08-31LaTeX writer: fix regression in escaping URLs.John MacFarlane
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-30Fix compiler warning by removing redundant definition.John MacFarlane
2023-08-30Org reader: don't parse alphabetical lists...John MacFarlane
...unless the `fancy_lists` extension is enabled. Closes #9042.
2023-08-30Fix typos in changelog (#9040)João Alvim
2023-08-30JATS reader: Multilevel support for `<permissions>` metadata (#9037)Julia Diaz
This revises the earlier support for `<permissions>`: now metadata objects with multiple fields are created, matching the structure in JATS.
2023-08-29Support images with wikilink syntax.John MacFarlane
E.g. `![[foo|bar]]`. (This requires enabling one of the `wikilinks` extensions.) Closes #8853.
2023-08-29Markdown: Allow a citation or reference link to be parsed after a `!`.John MacFarlane
Closes #8254.
2023-08-29Markdown reader: fix dropped `!` before nonexistent reference.John MacFarlane
In e.g. `![foo]` the `!` would be silently dropped if `[foo]` wasn't a reference link label. Closes #9038.
2023-08-29Use `\cite` and `\bibitem` to link up citations, even with citeproc.John MacFarlane
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-28Add support for <permissions> metadataJulia Diaz
2023-08-27Update tests for skylighting-format-blaze-html change.John MacFarlane
2023-08-27Use latest skylighting-format-blaze-html.John MacFarlane
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-26Allow skylighting 0.14 (and require it in pandoc core).John MacFarlane
2023-08-26LaTeX template: special definition of `\st` for CJK.John MacFarlane
soul's version raises on error on CJK text. Closes #9019.
2023-08-26Org reader: allow escaping commas in macro argumentsAmneesh Singh
Signed-off-by: Amneesh Singh <natto@weirdnatto.in>
2023-08-26LaTeX writer link/target improvements.John MacFarlane
+ 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-26Correct name of JATS element attribJulia Diaz
2023-08-25Man writer: avoid a .PP right after a section heading.John MacFarlane
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-25Man writer: improvements to code and code blocks.John MacFarlane
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-25Lua filters documentation: remove reference to phrenology.John MacFarlane
Closes #9024.
2023-08-24Man writer: don't emit `.hy`...John MacFarlane
regardless of setting of `hyphenate` variable. See #9020.
2023-08-23JATS writer: fix placement of ref-list...John MacFarlane
...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-23Also escape % in URLs.John MacFarlane
This improves the fix to #9017 in commit 7c4354646b57aa0d505dc955f856b8c3443c8db4 An alternative would be to avoid backslash escaping `#` and `%` in URLs, and instead always add `fragile` to the slide environment.