| Age | Commit message (Collapse) | Author |
|
In transforming pandoc Cite to citeproc Citation,
extract a `citationSuffix` and `citationPrefix` from the
last item's suffix and first item's prefix, respectively, if
they contain a `|` character which separates the item's suffix
or prefix from the whole Citation's.
for example:
[for example, see |@C1; @A3; @B4|, and others]
Here "for example, see" acts as a prefix for the whole
group and will remain at the beginning even if the citation
items are reordered by citeproc. Similarly, ", and others"
will be a suffix for the whole group.
Closes #10894.
Notes:
1. The org reader now adds global prefixes and suffixes the
same way as the Markdown reader: as affixes to the first item's
prefix or the last item's suffix, separated by a pipe (`|`).
2. The org writer, however, has not been modified to convert the
`|` to a `;`, as required by org-cite syntax.
3. This change doesn't currently do what one would expect, because
of changes that were made to citeproc to prevent citation items
with prefixes and suffixes from being sorted. Hence in
`test/command/10894.md`, we have test output
```
(Doe, 2020; Smith, 2021)
```
without affixes, but
```
(see Smith, 2021; Doe, 2020, and others)
```
with affixes. To make this work well, we'd need to remove the citeproc
code that prevented bad results before we had proper global
prefixes and suffixes. However, removing this code would mean that
existing documents would render differently, unless the new pipe
syntax for citation affixes were used. That may be something we want
to avoid.
4. The use of pipes to separate out global affixes from item-level
affixes is a kludge that could be avoided if we added additional
fields to Cite in the pandoc AST. However, AST changes are disruptive,
so perhaps it's not worth doing that.
|
|
Handle global prefix and suffix properly.
Use all and only the styles mentioned in oc-basic.el.
|
|
|
|
Update the test so it reflects the right output, and fix the
solution.
Really closes #11006.
|
|
The `nocite` metadata field can now be used to supply additional
citations that don't appear in the text, just as with citeproc and
LaTeX's bibtex and natbib.
Closes: #10680
|
|
These require an additional blank line in some cases.
Closes #11006.
|
|
|
|
We only use it when the URL is all ASCII, since the `\url` macro
causes problems when used with some non-ASCII characters.
Closes #8802.
|
|
[API change]
This will prevent unnecessary conversion of units.
Closes #8957.
|
|
[API change]
This allows us to cache the HTTP client manager and reuse it for
many requests, instead of creating it again (an expensive
operation) for each request. (The documentation for `newManager`
advises sharing a single manager between requests.)
This fixes a memory leak and performance issue in files with
a large number of remote images. Closes #10997.
|
|
Previously fenced divs were not used in this case, causing the writer to fall back to raw HTML.
Closes #10955.
|
|
Org doesn't reliable display these as links if they have hard breaks.
Closes #9000.
|
|
It previously converted things like `11ccc` to an integer;
now it requires that the whole string be parsable as an integer.
Closes #9184.
|
|
|
|
|
|
This adds a reader and writer for an XML format equivalent to `native`
and `json`.
XML schemas for validation can be found in `tools/pandoc-xml.*`.
The format is documented in `doc/xml.md`.
API changes:
- Add module Text.Pandoc.Readers.XML, exporting `readXML`.
- Add module Text.Pandoc.Writers.XML, exporting `writeXML`.
A new unexported module Text.Pandoc.XMLFormat is also added.
|
|
Each supported engine is now printed on a line of its own.
|
|
These are the development versions of the LaTeX binaries; installable,
e.g., with `tlmgr install latex-base-dev`.
Closes: #10991
|
|
|
|
|
|
(#10990)
|
|
|
|
|
|
[API change] New Avif constructor on ImageType.
Closes #10979.
|
|
Closes #10984.
|
|
Previously, the first line of a definition details item always used a
colon and three spaces instead of respecting the tab-stop setting, which
could lead to round-tripping issues.
Likewise, the indentation of continuation paragraphs in definition lists
now matches the two-characters leader of the first line for Markua
output.
Fixes: #10890
|
|
Closes: #9724
|
|
from the latest chicago-author-date.csl. (Note that this goes
from the 17th to the 18th edition.)
Update tests.
|
|
Closes #10965.
|
|
Text.Pandoc.App.CommandLineOptions and pandoc-cli/src/pandoc.hs
had similar code for generating version information.
To avoid duplication, we now export `versionInfo` from
Text.Pandoc.App [API change]. (The function is reexported from the
non-public module Text.Pandoc.App.CommandLineOptions.) This function
has three parameters that can be filled in when it is called by
pandoc-cli.
This change will make it simpler to revise version information.
|
|
This reverts commit 2cf9b55421d7026dac8c45730b8538f13e4bbb78.
|
|
Export `copyrightMessage` from the unexported module
Text.Pandoc.App.CommandLineOptions
and reexport from Text.Pandoc.App [API change].
This avoids the need for a duplicated version in pandoc-cli, which can
now depend on the library's exported version.
|
|
Per GNU guidelines:
https://www.gnu.org/prep/standards/html_node/_002d_002dversion.html
|
|
Closes #10961.
|
|
|
|
for every PDF engine, not just LaTeX/ConTeXt.
This is part of the fix for #10911.
|
|
Omit the wrapper sourceCode divs added by pandoc around code blocks.
More intelligently identify which class to use for the one class
allowed in GFM code blocks. If there is a class of form `language-X`,
use `X`; otherwise use the first class other than `sourceCode`.
Closes #10926.
|
|
This is the name expected by the default template.
|
|
|
|
|
|
for start numbers on ordered lists.
Also remove legacy support for override on listitem in the
reader.
See #10912.
|
|
on ordered lists. Closes #10912.
|
|
Closes #10915
|
|
Closes #10900.
|
|
Closes #10898.
|
|
Closes #7691.
|
|
If the `four_space_rule` extension is not enabled,
figure out the indentation needed for child blocks dynamically,
by looking at the first nonspace content after the `:` marker.
Previously the four-space rule was always obeyed.
Remove the old `compact_definition_lists` extension. This was
neded to preserve backwards compatibility after pandoc 1.12
was released, but at this point we can get rid of it.
T.P.Extensions: remove `Ext_compact_definition_lists` constructor
for `Extension` [API change].
Fix tight/loose detection for definition lists, to conform to
the documentation.
Closes #10889.
|
|
|
|
|
|
Fix headings with colspans. If the heading contains a colspan, we still
need to include information in the header line about the colspecs.
Fix headerless tables. The top line should encode colspan information.
Closes #10855.
|