John MacFarlane
20f82b0a8b
Makefile target to get module dependeny subgraphs.
...
E.g. what depends on Text.Pandoc.Parsing?
make modules.pdf ROOTNODE=T.P.Parsing
This is helpful for figuring out what we can split out as separate
packages.
2022-10-01 12:34:27 -07:00
John MacFarlane
c51eeea4c7
Add Makefile target to create a directed graph of module dependencies.
2022-10-01 11:52:54 -07:00
Link Swanson
4e29d6d379
Remove unsupported element from pptx reference doc ( #8342 )
...
The default template contained text above the header, which can mislead
users into thinking there is a way to put text there using pandoc
See #6338 .
2022-10-01 10:30:07 -07:00
John MacFarlane
08b9530fc1
Fix nightly Windows build so it uses nightly flag.
2022-10-01 10:23:30 -07:00
John MacFarlane
42b6e3907c
Fix nightly flag build.
2022-10-01 09:56:50 -07:00
John MacFarlane
215d62ccd6
Remove build versions info from --version output.
2022-09-30 17:18:15 -07:00
John MacFarlane
aa0e9c4d6e
Move --version handling to pandoc-cli.
...
Print flag settings (lua, server) and versions of all relevant packages.
Add suffix for nightly builds.
Move `nightly` flag from pandoc to pandoc-cli.
Closes #8339 .
2022-09-30 16:46:39 -07:00
John MacFarlane
2bca1315ce
Update RELEASE-CHECKLIST.
2022-09-30 16:46:39 -07:00
Albert Krewinkel
1148ead64c
App: move initial input-to-Pandoc code to internal submodule
2022-09-30 23:42:41 +02:00
Albert Krewinkel
cfc2024d37
Use server as command to start the pandoc server
2022-09-30 18:41:51 +02:00
Albert Krewinkel
1663dfc850
Use released gridtables 0.1.0.0
2022-09-30 18:31:55 +02:00
Albert Krewinkel
b6a571d577
pandoc-cli: Allow building a binary without Lua support
...
Disabling the `lua` cabal flag will result in a binary without Lua.
2022-09-30 08:33:40 -07:00
Albert Krewinkel
5be9052f5f
[API Change] Extract Lua code into new package pandoc-lua-engine
...
The flag 'lua53` must now be used with that package if pandoc is to be
compiled against Lua 5.3.
2022-09-30 08:33:40 -07:00
Albert Krewinkel
79980eee4a
[API Change] Parameterize convertWithOpts over scripting engine.
2022-09-30 08:33:40 -07:00
Albert Krewinkel
eaf702a10f
Change imports in Lua code to only use exported pandoc modules
2022-09-30 08:33:40 -07:00
Albert Krewinkel
a20b92097a
App: stop including the HsLua version in version info output
2022-09-30 08:33:40 -07:00
Albert Krewinkel
0ab014ed1e
[API Change] App: parameterize options over the scripting engine
2022-09-30 08:33:40 -07:00
Albert Krewinkel
78814f27e0
[API Change] Filter: Parameterize applyFilters over scripting engine.
...
Pass the scripting engine as a parameter so it can be swapped out.
2022-09-30 08:33:40 -07:00
Albert Krewinkel
4d365ca3ff
[API Change] Lua: export new function T.P.Lua.getEngine
...
The function returns the Lua scripting engine.
2022-09-30 08:33:40 -07:00
Albert Krewinkel
04902d26da
[API Change] Change type of Text.Pandoc.Lua.applyFilter
...
The module Text.Pandoc.Filter.Lua has been merged into Text.Pandoc.Lua.
The function `applyFilter` now has type
``` haskell
applyFilter :: (PandocMonad m, MonadIO m)
=> Environment-> [String]-> FilePath-> Pandoc-> m Pandoc
```
where `Environment` is defined in Text.Pandoc.Filter.Environment.
2022-09-30 08:33:40 -07:00
Albert Krewinkel
0e947c7473
[API Change] Filter: export function applyJSONFilter
2022-09-30 08:33:40 -07:00
Albert Krewinkel
084e246126
[API Change] Remove modules T.P.Writers.Custom and T.P.Readers.Custom.
...
The functions `writeCustom` and `readCustom` are available from module
Text.Pandoc.Lua.
2022-09-30 08:33:40 -07:00
Albert Krewinkel
1a1e6457c6
[API Change] Export module Text.Pandoc.Class.IO
...
The module is useful when defining instances of class PandocMonad for
types that are also instances of MonadIO.
2022-09-30 08:33:40 -07:00
Albert Krewinkel
14bcb4268b
[API Change] Add new error constructor PandocNoScriptingEngine.
...
The exit code for this error is 89.
2022-09-30 08:33:40 -07:00
Albert Krewinkel
704f337697
[API Change] Export new module Text.Pandoc.Scripting
...
The module contains the central data structure for scripting engines.
2022-09-30 08:33:40 -07:00
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