John MacFarlane
12de77958f
Update AUTHORS.
pandoc-cli-3.2
pandoc-lua-engine-0.2.1.5
3.2
2024-05-11 12:36:02 -07:00
John MacFarlane
8188eec85f
Updaet manual date and man pages.
2024-05-11 12:32:43 -07:00
John MacFarlane
1cdda054de
Bump tls and zip-archive in stack.yaml, update README.md.
2024-05-11 12:31:00 -07:00
John MacFarlane
b419770850
Bump pandoc, pandoc-cli to 3.2, update changelog.
...
Also bump pandoc-lua-engine to 0.2.1.5 and allow pandoc 3.2.
2024-05-11 12:01:16 -07:00
John MacFarlane
469ba09f20
Provisional changelog updates.
2024-05-11 10:00:01 -07:00
John MacFarlane
7349bed982
Use new releases texmath, skylighting, djot
2024-05-10 23:50:28 -07:00
John MacFarlane
73bbff51a2
Bump skylighting version.
2024-05-10 23:20:09 -07:00
Albert Krewinkel
e5c135e68e
Lua: add a pandoc.log module.
2024-05-10 19:03:29 -07:00
Albert Krewinkel
673edabac0
Logging: add new log message type ScriptingInfo [API change]
2024-05-10 19:03:29 -07:00
John MacFarlane
e13845d085
Document handout variable for beamer.
...
Cloess #9742 .
2024-05-10 16:44:53 -07:00
John MacFarlane
3d8c70e611
Document formats affected by --slide-level.
...
Closes #9745 .
2024-05-10 16:43:16 -07:00
Gokul Rajiv
74add4b126
RST reader: fix figclass and align annotations for figures ( #9744 )
...
Fixes #7473
Previously, `figclass`es weren't being extracted correctly.
`figclass` and `align` annotations are now implemented following the rst docs: these options apply to the figure while other options are passed onto the underlying image.
2024-05-10 15:55:06 -07:00
Albert Krewinkel
7394bc920c
Collect transforms in new module T.P.Transforms. [API change]
...
Bundles all document transformations, i.e., functions that run
predefined filters on Pandoc documents.
2024-05-10 11:16:41 -07:00
Albert Krewinkel
edf21e6dab
MANUAL: update the list of required LaTeX packages ( #9728 )
2024-05-07 08:03:50 -07:00
Albert Krewinkel
ddc66cad0b
Lua: update to pandoc-lua-marshal version 0.2.7.
...
This fixes counterintuitive behavior of the `content` property on
BulletList and OrderedList items. Unmarshalling of that field now
matches the behavior of the constructor.
Fixes : #8916
2024-05-06 17:06:43 +02:00
Albert Krewinkel
0f29d8195e
Lua: use hslua-module-zip-1.1.3 to fix the windows build
2024-05-05 21:16:31 +02:00
Albert Krewinkel
018922d10f
Lua: use newest zip module.
...
This adds a `symlink` function to Entry objects, allowing to check if an
entry represents a symbolic link.
2024-05-05 17:54:33 +02:00
Albert Krewinkel
32f0ed9ea3
Lua: improve pandoc.json.decode docs.
2024-05-05 00:25:29 +02:00
Albert Krewinkel
1a15c9f6a9
tools/update-lua-module-docs.lua: cleanup, fix code
2024-05-04 23:56:01 +02:00
Albert Krewinkel
e8cb6449dc
tools/update-lua-module-docs.lua: improve script-internal docs
2024-05-04 23:27:07 +02:00
Albert Krewinkel
c45f163b4d
Lua: fix generated docs.
...
Update and fix docs for `pandoc.types.Version` and `pandoc.utils.type`.
2024-05-04 22:17:01 +02:00
John MacFarlane
6000a17394
Markdown reader: allow repeated labels in numbered example lists.
...
Previously if you tried to use the same label as an earlier
example list item, you'd get a new number, not the old one,
and references to the label would go to the second occurrence.
Now an existing label will be reused, and no new number will
be generated. Caveat: this only works reliably when the
re-used example list item occurs by itself in a list, or
occurs in a list of previously used example list items that
occur in exactly the same order as previously.
2024-05-03 12:25:55 -07:00
John MacFarlane
2da454d36b
Markdown reader: fix normalCite so it doesn't consume...
...
...past a closing `]` boundary. This was causing an
exponential performance bug on long lists of links
containing potential emphasis characters.
Closes #9710 .
2024-05-02 13:02:41 -07:00
John MacFarlane
517f6bb711
Markdown reader: generalize inlinesInBalancedBrackets...
...
to `inBalancedBrackets`, with a parameter for the inner parser.
2024-05-02 13:02:41 -07:00
Guilhem Saurel
bd8529257e
LaTeX template: add titlegraphicoptions variable ( #9207 )
...
Including a title graphic on a beamer template might require some
options, like e.g. `height=1.5cm` to ensure some image will fit at its
place in a given template.
2024-05-02 09:35:29 -07:00
Albert Krewinkel
509cc3ac87
T.P.Error: Improve reporting of unsupported extensions errors.
...
Amend the error message with instructions on how to list all supported
extensions.
Closes : #9247
2024-04-30 10:54:24 +02:00
Salim B
c18fd22045
Use latest KaTeX CDN asset ( #9707 )
2024-04-29 15:40:17 -07:00
Leo Heitmann Ruiz
7c47a214ed
INSTALL.md: Minor tweaks. ( #9705 )
2024-04-29 00:45:38 -04:00
John MacFarlane
5b9a8ea99c
Typst writer: add blank line in definition lists with multiple definitions.
...
See discussion #9704 .
2024-04-28 14:58:18 -04:00
guqicun
e2f43baac1
Fix some typos ( #9638 )
...
Signed-off-by: guqicun <guqicun@outlook.com >
2024-04-26 10:13:37 +02:00
John MacFarlane
a3697f91fa
LaTeX writer: use polytonicgreek instead of polutonikogreek...
...
with babel. polutonikogreek is outdated.
Also recognize both in the LaTeX reader.
Closes #9698 .
2024-04-26 01:25:24 -04:00
John MacFarlane
03630a2c6e
Update copyright dates to 2024.
2024-04-25 18:16:49 -07:00
John MacFarlane
1904fa53fa
pandoc-cli: ensure UTF8 when emitting version info.
2024-04-25 17:49:38 -07:00
John MacFarlane
5736c2f8b3
CommandLineOptions: simplify output for OptVersion.
...
Omit the information about versions of dependencies.
We no longer emit version info at this level anyway;
pandoc-cli intercepts `--version`.
This code would only be called if someone used the pandoc
library function `handleWithOptInfo` in their own program.
2024-04-25 17:46:39 -07:00
John MacFarlane
49df8131a5
Markdown writer: don't try to align columns in pipe tables...
...
...with lines greater than COLUMNS.
The alignment just reduces readibility when the lines soft wrap.
2024-04-25 14:26:17 -07:00
John MacFarlane
f5c7d4dcf7
Markdown writer: don't use raw_attribute syntax for raw...
...
blocks, unless there is no other option.
Mainly this is motivated by #9677 . If we put raw tex in a
raw_attribute block, then the macros don't get interpreted
when it is read again by pandoc's markdown reader.
2024-04-23 15:45:55 -07:00
Salim B
b37ad70959
Harmonize typographic dashes ( #9688 )
...
Standardize on `---` with no space.
2024-04-23 15:38:01 -07:00
John MacFarlane
6578dcd912
LaTeX reader: parse flalign, flalign* math environments.
...
We parse these as Math elements with an `aligned` environment.
Semantically it's not exactly the same, but better than falling
back to raw LaTeX.
Closes #9679 .
2024-04-23 15:20:45 -07:00
John MacFarlane
b6cff6b96d
Docx reader: issue warning rather than error...
...
when we can't parse EndNote citations. See #8433 .
2024-04-23 15:00:42 -07:00
John MacFarlane
88eff14732
Logging: Make DocxParserWarning a WARNING, not INFO.
2024-04-23 15:00:37 -07:00
John MacFarlane
7534d4f42e
Add note to cabal.project so we won't forget skylighting releases.
2024-04-22 19:12:15 -07:00
John MacFarlane
8faa0f009f
RTF reader: don't try to handle non-default code pages.
...
Emit a warning instead.
Closes #9683 .
2024-04-22 18:00:00 -07:00
John MacFarlane
148cacc1d7
Logging: add UnsupportedCodePage constructor to LogMessage.
...
[API change]
2024-04-22 17:59:38 -07:00
John MacFarlane
71c6fecd14
Revert "Depend on encoding and begin to implement code pages in RTF reader."
...
This reverts commit 6d38ee74f1 .
2024-04-22 17:23:08 -07:00
John MacFarlane
8687754554
Revert "RTF reader: remove debugging trace left in by accident."
...
This reverts commit f54bbcd363 .
2024-04-22 17:23:00 -07:00
John MacFarlane
f54bbcd363
RTF reader: remove debugging trace left in by accident.
2024-04-22 16:18:13 -07:00
John MacFarlane
6d38ee74f1
Depend on encoding and begin to implement code pages in RTF reader.
...
See #9683 . TODO: implement language shifting with `\langN` and
`\deflangN`, taking account of `\fcharsetN`.
2024-04-22 16:16:26 -07:00
John MacFarlane
fc2ac99296
RTF reader: more changes to handle different ANSI code pages.
...
So far we don't actually handle any non-default code pages;
this just moves things into position.
2024-04-22 12:21:38 -07:00
John MacFarlane
5962141137
RTF reader: internal refactoring.
...
We now use a HexChars token instead of HexChar; this allows
us to store sequences of escaped words, which will be important
for handling ANSI code pages that can have mulitbyte sequences.
Also, we add an optional parameter to ANSI for the code page.
So far this doesn't do anthing.
All prep for #9683 .
2024-04-22 09:25:43 -07:00
John MacFarlane
ef338abbb7
MANUAL: use more descriptive link text for ODT.
...
Closes #9673 .
2024-04-22 07:57:50 -07:00