summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2022-10-03[API Change] Base custom writers on Writer type.Albert Krewinkel
The `T.P.Lua.writeCustom` function changed to allow either a TextWriter or ByteStringWriter to be returned. The global variables `PANDOC_DOCUMENT` and `PANDOC_WRITER_OPTIONS` are no longer set when the writer script is loaded. Both variables are still set in classic writers before the conversion is started, so they can be used when they are wrapped in functions.
2022-10-02Officially deprecate writeJATS...John MacFarlane
in favor of writeJatsArchiving.
2022-10-02Add T.P.Citeproc.Name.John MacFarlane
This exports `toName`, which previously had been part of T.P.Citeproc.BibTeX. T.P.Readers.RIS,EndNote can now depend on this module without transitively depending on the LaTeX reader, which is used in T.P.Citeproc.BibTeX. Closes #8345.
2022-10-01JATS writer: use `<break/>` for LineBreak...John MacFarlane
in the limited contexts that accept it. Closes #8344.
2022-09-30Move `--version` handling to pandoc-cli.John MacFarlane
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-30App: move initial input-to-Pandoc code to internal submoduleAlbert Krewinkel
2022-09-30[API Change] Extract Lua code into new package pandoc-lua-engineAlbert Krewinkel
The flag 'lua53` must now be used with that package if pandoc is to be compiled against Lua 5.3.
2022-09-30[API Change] Parameterize `convertWithOpts` over scripting engine.Albert Krewinkel
2022-09-30Change imports in Lua code to only use exported pandoc modulesAlbert Krewinkel
2022-09-30App: stop including the HsLua version in version info outputAlbert Krewinkel
2022-09-30[API Change] App: parameterize `options` over the scripting engineAlbert Krewinkel
2022-09-30[API Change] Filter: Parameterize `applyFilters` over scripting engine.Albert Krewinkel
Pass the scripting engine as a parameter so it can be swapped out.
2022-09-30[API Change] Lua: export new function T.P.Lua.getEngineAlbert Krewinkel
The function returns the Lua scripting engine.
2022-09-30[API Change] Change type of Text.Pandoc.Lua.applyFilterAlbert Krewinkel
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[API Change] Filter: export function `applyJSONFilter`Albert Krewinkel
2022-09-30[API Change] Remove modules T.P.Writers.Custom and T.P.Readers.Custom.Albert Krewinkel
The functions `writeCustom` and `readCustom` are available from module Text.Pandoc.Lua.
2022-09-30[API Change] Add new error constructor `PandocNoScriptingEngine`.Albert Krewinkel
The exit code for this error is 89.
2022-09-30[API Change] Export new module Text.Pandoc.ScriptingAlbert Krewinkel
The module contains the central data structure for scripting engines.
2022-09-30[API Change] Rename `pandocVersion` to `pandocVersionText`...Albert Krewinkel
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-29Factor out xml-light into an internal library.John MacFarlane
2022-09-29Remove deprecated option `--strip-empty-paragraphs`.John MacFarlane
2022-09-29Remove deprecated `--atx-headers` option.John MacFarlane
2022-09-29Add `--list-tables` option.John MacFarlane
[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-29rST writer: list tables rendering, closes #4564danse
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-29LaTeX writer: use `\includesvg` for SVGs...John MacFarlane
...and include the `svg` package. Closes #8334.
2022-09-28HTML Reader: Tests for 'tt' and 'code' elements (#8330).Justin Wood
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 4abb9d0ad8dbb88fbc443a78d5a1b116cb7a5816 was originally part of this PR as well.
2022-09-28HTML reader: fix regression for `<tt>`.John MacFarlane
It was no longer being parsed as Code. See #8330.
2022-09-28HTML writer: prevent `<a>` inside `<a>`.John MacFarlane
If a link text contains a link, we replace it with a span. See #7585.
2022-09-27T.P.Shared: deprecate makeMetaJohn MacFarlane
2022-09-27T.P.Shared: deprecate notElemTextJohn MacFarlane
2022-09-27T.P.Citeproc.MetaValue: remove unused function metaValueToPathJohn MacFarlane
2022-09-27T.P.Readers.LaTeX.Parsing: remove unused function toksToStringJohn MacFarlane
2022-09-27T.P.Shared: removed deprecated `deLink`.John MacFarlane
[API change]
2022-09-27T.P.Shared: Removed deprecated `crFilter`.John MacFarlane
[API change]
2022-09-27Remove some dead code (unused definitions) from Odt reader.John MacFarlane
2022-09-27Fix small whitespace things.John MacFarlane
2022-09-27Allow `url` field in bibtext (input and output).John MacFarlane
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-27pandoc-cli: support `-E` flag in pandoc-luaAlbert Krewinkel
2022-09-26LaTeX writer: ignore languages with no babel equivalent...John MacFarlane
instead of generating an invalid command in the preamble. Closes #8325.
2022-09-25T.P.Citeproc.Locator: update `sub verbo` to `sub-verbo`.John MacFarlane
This is a change in the term's canonical name in citeproc. As a result of this change, `sub verbo` locators have not worked in pandoc since citeproc 0.7. This patch fixes `sub verbo`. Closes #8315.
2022-09-23Use hslua-cli package for pandoc-lua interfaceAlbert Krewinkel
2022-09-22Org writer: pass through unknown languages in code blocks.John MacFarlane
Previously we whitelisted the language for begin_src, and produced begin_example if the language was not found on the whitelist. Closes #8278.
2022-09-22Make pandoc behave like a Lua interpreter when called as `pandoc-lua`. (#8311)Albert Krewinkel
2022-09-22Split pandoc-server, pandoc-cli into separate packages. (#8309)John MacFarlane
This also removes the unnecessary Setup.hs from pandoc. Cabal does not need this with build-type 'simple'.
2022-09-21LaTeX writer: do not repeat caption on headless tablesAlbert Krewinkel
The caption of headless tables was repeated on each page that contained part of the table. It is now made part of the "first head", i.e. the table head that is printed only once.
2022-09-21LaTeX writer: clarify why `\endfirsthead` is used for tablesAlbert Krewinkel
2022-09-20Export `applyFilter` from T.P.Lua.Filter.John MacFarlane
Motivation: now we need not have any logic referring to hslua types (LuaE) in T.P.Filter.Lua. This restricts the parts of Pandoc that deal directly with hslua to T.P.Lua (and in tests, Tests.Lua). [API changes] T.P.Lua now exports `applyFilter`, `readCustom`, and `writeCustom`. The lower-level function `runFilterFile` is no longer exported.
2022-09-20Add T.P.Lua.Reader, T.P.Lua.Writer.John MacFarlane
(Unexported modules, presently.) These contain the definitions of `readCustom` and `writeCustom` that were previously in T.P.Readers.Custom and T.P.Writers.Custom. Motivation is to ensure that all of the Lua-related code is under the T.P.Lua tree. This will make it easier to make pandoc-lua a separate package or put lua support under a flag, if we decide to do that.
2022-09-20Text.Pandoc.App: export `IpynbOutput(..)`.John MacFarlane
[API change]
2022-09-20Ms writer: properly format display equations.John MacFarlane
Previously they were being translated to eqn as inline equations. Closes #8308.