Albert Krewinkel
ddaadc88bc
[API Change] Rename pandocVersion to pandocVersionText...
...
and add a new `pandocVersion` value with type `Version`. This is
consistent with the type used for `pandocTypesVersion` and allows to use
the value where a Version type is required.
2022-09-30 08:33:40 -07:00
John MacFarlane
e099de1d4d
Factor out xml-light into an internal library.
2022-09-29 10:53:16 -07:00
John MacFarlane
931ccd0376
Remove deprecated option --strip-empty-paragraphs.
2022-09-29 10:37:46 -07:00
John MacFarlane
6227144216
Remove deprecated --atx-headers option.
2022-09-29 10:29:29 -07:00
John MacFarlane
48d0bfc675
Add --list-tables option.
...
[API change] Add writerListTables to WriterOptions.
RST writer: Remove sensitivity to "list-table" class in table attributes.
Instead, just check `writerListTables` in writer options.
See #4564 .
2022-09-29 10:20:58 -07:00
John MacFarlane
57fd3c4f81
cabal.project: move back to using flags:.
...
If we add the flag to constraints, it can't be overridden on
the command line.
2022-09-29 10:19:30 -07:00
danse
c974ed0cae
rST writer: list tables rendering, closes #4564
...
When a table is marked with a "list-table" attribute class, it will
now be rendered using the list table syntax documented here
http://docutils.sourceforge.net/docs/ref/rst/directives.html#list-table
2022-09-29 09:56:00 -07:00
John MacFarlane
45820e79f4
Makefile: remove 'stack clean' from clean target
2022-09-29 09:40:57 -07:00
John MacFarlane
1393037f4e
LaTeX writer: use \includesvg for SVGs...
...
...and include the `svg` package.
Closes #8334 .
2022-09-29 09:31:39 -07:00
John MacFarlane
7aaecc6ae1
cabal.project: set flag on per-package basis
2022-09-29 09:31:29 -07:00
John MacFarlane
9169eee7e1
Bump pandoc version to 3.0.
...
In light of the package splitting changes.
2022-09-29 08:18:02 -07:00
John MacFarlane
a3e4ddef1a
Require latest released texmath
2022-09-28 22:36:12 -07:00
John MacFarlane
a56654a83c
Use released commonmark-extensions.
2022-09-28 22:02:54 -07:00
John MacFarlane
c40d61ce1b
Use released skylighting-format-blaze-html
2022-09-28 21:09:41 -07:00
Justin Wood
740396d1ed
HTML Reader: Tests for 'tt' and 'code' elements ( #8330 ).
...
tt is a deprecated element in HTML, but is still used in the wild in
some places, support reading it as just another 'code' element.
Commit 4abb9d0ad8 was originally
part of this PR as well.
2022-09-28 14:04:07 -07:00
John MacFarlane
4abb9d0ad8
HTML reader: fix regression for <tt>.
...
It was no longer being parsed as Code.
See #8330 .
2022-09-28 13:45:48 -07:00
John MacFarlane
fd1b3f2b6f
Bump version to 2.20, depend on >= 2.20 in pandoc-cli, pandoc-server.
2022-09-28 08:50:11 -07:00
John MacFarlane
bcf06e7f5e
HTML writer: prevent <a> inside <a>.
...
If a link text contains a link, we replace it with a span.
See #7585 .
2022-09-28 08:34:50 -07:00
John MacFarlane
2ff0b9a9ef
Tests.Command: remove unused runTest.
2022-09-27 22:14:43 -07:00
John MacFarlane
fde83cdcab
T.P.Server: remove parseServerOpts.
...
[API change]
We only use `parseServerOptsFromArgs`.
2022-09-27 22:10:04 -07:00
John MacFarlane
e12144d5be
T.P.Shared: deprecate makeMeta
2022-09-27 21:26:19 -07:00
John MacFarlane
263579167a
T.P.Shared: deprecate notElemText
2022-09-27 21:24:06 -07:00
John MacFarlane
1e2e029048
T.P.Citeproc.MetaValue: remove unused function metaValueToPath
2022-09-27 21:21:06 -07:00
John MacFarlane
cc2078530c
T.P.Readers.LaTeX.Parsing: remove unused function toksToString
2022-09-27 21:19:11 -07:00
John MacFarlane
26f733f424
T.P.Shared: removed deprecated deLink.
...
[API change]
2022-09-27 21:08:10 -07:00
John MacFarlane
eb371b0555
T.P.Shared: Removed deprecated crFilter.
...
[API change]
2022-09-27 21:07:51 -07:00
John MacFarlane
fa2901f0e2
Add hie.yaml for haskell language server.
2022-09-27 20:51:40 -07:00
John MacFarlane
b5bf559766
Makefile: add weeder target.
2022-09-27 18:01:34 -07:00
John MacFarlane
21bf9ae885
Remove some dead code (unused definitions) from Odt reader.
2022-09-27 17:59:03 -07:00
John MacFarlane
4932ee324d
Makefile: add whitespace check to 'check'.
2022-09-27 13:42:23 -07:00
John MacFarlane
a27e10111a
Fix small whitespace things.
2022-09-27 13:03:26 -07:00
John MacFarlane
301f905839
Makefile: add transitive-deps target.
2022-09-27 12:52:27 -07:00
John MacFarlane
78c0016526
Makefile: Add coverage target
2022-09-27 12:39:43 -07:00
John MacFarlane
04d79eac30
CI: Update files that don't trigger CI.
2022-09-27 10:47:40 -07:00
John MacFarlane
84c053222c
Update Makefile.
2022-09-27 10:23:50 -07:00
John MacFarlane
3162f111ef
CI: remove macos tests.
...
These take much longer than the others and slow down CI,
but there are almost never issues on macos that wouldn't show on linux.
2022-09-27 10:05:25 -07:00
John MacFarlane
e6db278061
Split benchmarks out of CI into separate action.
...
The benchmark action is only run on manual dispatch.
Rationale: this action dramatically slows down CI.
It is nice to run benchmarks, but we don't need them all the time.
We add (non-optimized) testing of benchmark compilation to one of
the CI builds.
2022-09-27 09:34:57 -07:00
John MacFarlane
e92f1a5ecf
Allow url field in bibtext (input and output).
...
This field is not officially supported, but many styles
can handle it (<https://www.bibtex.com/f/url-field/ >),
and others will ignore it.
Closes #8287 .
2022-09-27 09:04:36 -07:00
John MacFarlane
5849317bd3
Add link to pandoc-lua manual.
2022-09-27 08:48:34 -07:00
John MacFarlane
d2b300e96d
pandoc-server: minor code simplification.
2022-09-27 08:46:29 -07:00
John MacFarlane
c5961db10d
MANUAL.txt: clarify what background-image does in reveal.js.
...
Closes #6450 .
2022-09-27 08:42:46 -07:00
Albert Krewinkel
efecff1f2f
pandoc-cli: support -E flag in pandoc-lua
2022-09-27 08:42:27 -07:00
Albert Krewinkel
175b791529
pandoc-cli: support "lua" and "serve" as commands
...
Pandoc behaves like `pandoc-lua` and `pandoc-server` if the first
argument is `lua` and `serve`, respectively.
2022-09-27 08:42:27 -07:00
Albert Krewinkel
a3fd6c674d
pandoc-cli: update to hslua-cli-1.2
2022-09-27 08:42:27 -07:00
Albert Krewinkel
2bad9a9aa4
pandoc-cli: Avoid the CPP language extension
...
Alternative behavior for the *server* flag is implemented by using
separate modules.
2022-09-27 08:42:27 -07:00
John MacFarlane
5e6b28cd0e
CI: Test compilation without 'server' flag.
2022-09-26 22:03:27 -07:00
John MacFarlane
efea562234
LaTeX writer: ignore languages with no babel equivalent...
...
instead of generating an invalid command in the preamble.
Closes #8325 .
2022-09-26 21:37:38 -07:00
Albert Krewinkel
de0e3ff5f6
pandoc-lua: support more command line flags
2022-09-26 19:50:39 +02:00
Pranesh Prakash
62f0e9ffd9
Made example for blank_before_blockquote clearer ( #8324 )
...
Changed the "nested" to "not nested" to make it clear it wouldn't get nested.
2022-09-26 10:47:25 -07:00
John MacFarlane
13ee8b82da
Add server flag to pandoc-cli.
...
This allows the executable to be built without support for
"server mode."
2022-09-26 09:25:54 -07:00