aboutsummaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2022-12-06fixup! T.P.Scripting: add CustomComponents, and change...issue8417Albert Krewinkel
2022-12-05T.P.Scripting: add CustomComponents, and change...John MacFarlane
...the ScriptingEngine fields. Instead of separate fields for custom readers and writers, we now have a single function that loads any number of "components" from a script: these may be custom readers, custom writers, templates for writers, or extension configs. (Note: it's possible to have a custom reader and a custom writer for a format together in the same file.) This is primarily motivated by the need for a smoother check for custom templates and extensions for `-D` and `--list-extensions`, but it also seems more elegant. This is a partial implementation of #8417.
2022-12-05T.P.Format: Monoid, Semigroup instance for ExtensionsConfig.John MacFarlane
2022-12-05Lua: support `-D` CLI option for custom writers [API change]Albert Krewinkel
A new error `PandocNoTemplateError` (code 87) is thrown if a template is required but cannot be found.
2022-12-04Fix metadata parsing corner case.John MacFarlane
Closes #8465.
2022-12-04HTML writer: remove obsolete stuff about mathml-script.John MacFarlane
This was a shim we used to include for mathml support. We don't do anything with this any more, so this is dead code.
2022-12-04HTML writer: include math links if there are raw...John MacFarlane
commands or environments that can be interpreted as math e.g. by MathJax. See #8469.
2022-12-04EPUB writer: make title page optional.John MacFarlane
New command line option: `--epub-title-page=true|false`. New `writerEpubTitlePage` field on `WriterOptions` [API change]. New `optEpubTitlePage` field on `Opts` [API change]. Closes #6097.
2022-12-02Avoid using 'error' for unassigned table cells.John MacFarlane
Instead, throw a regular pandoc error. This is not necessarily a programming error, as it can be triggered by inserting a cell with ColSpan 0 in the AST. Unfortunately the types don't prevent that. Closes #8468.
2022-12-01Multiple input files with --file-scope:John MacFarlane
fix case where the links are URL-encoded, e.g. with `%20`. Closes #8467.
2022-11-29HTML writer: Add prooftree to list of math environments.John MacFarlane
This will cause raw LaTeX prooftree environments to be rendered appropriately when `--mathjax` is used. Closes #8462.
2022-11-29DocBook writer: Fix position of textobject.John MacFarlane
It is a child of `inlinemediaobject`, not `imageobject`. Add regression tests for #8437. Closes #8437.
2022-11-29AsciiDoc writer: in link text, only replace commas...John MacFarlane
...with entities when they're in Str elements. If a link contains an image, it may have attributes, and the commas there should not be converted. See #8437, #8070.
2022-11-29DocBook writer: don't indent contents of title element.John MacFarlane
2022-11-29DocBook writer: render image alt text using textobject element.John MacFarlane
See #8437.
2022-11-29DocBook reader: support href on link...John MacFarlane
even in a fragment. (We now just look for an `href` attribute without worrying about the namespace.) See #8437.
2022-11-29DocBook reader: parse title from imageobject/objectinfo.John MacFarlane
See #8437.
2022-11-28Textile Reader:vkraven
- Adding a Parser to look for ordered list start attribute numbers if any - Add command test for ordered list start attributes (#2465) - Cleanup and formatting
2022-11-25LaTeX reader: Add `unnumbered` class for `\part*`.John MacFarlane
Closes #8447.
2022-11-21Docx writer: support relative image widths.Albert Krewinkel
Image widths given in percent are interpreted to be relative to the text width. This is similar to the way percent widths are handled in other writers, e.g. HTML and LaTeX. Previously, percent widths were taken relative to the image's native size.
2022-11-19Docx reader: Support parsing of highlighted text.John MacFarlane
2022-11-19RST reader: support `mark` role for round-trip.John MacFarlane
2022-11-19LaTeX reader: support more soul commands, including `\hl`.John MacFarlane
2022-11-19Add support for `mark` extension for highlighted text.John MacFarlane
+ Extensions: Add `Ext_mark` extension. This is not part of the pandoc extensions by default. + Markdown reader: parse `==..==` if `mark` extension enabled. + Markdown writer: support `mark` extension. + Docx writer: render Span with class `mark` as highlighted. Currently yellow is hardcoded. + LaTeX writer: support highlighted text for Span with class `mark`. + RST writer: use special `mark` role for Span with class `mark`. + Update MANUAL.txt. Closes #7743.
2022-11-19LaTeX writer: Use soul instead of ulem for strikeout, underline.John MacFarlane
This handles things like hyphenation, line breaks, and nonbreaking spaces better. Closes #8411.
2022-11-11Markdown writer: escape `!` before `[`.John MacFarlane
See #8254.
2022-11-11Use 'literal tag' instead of 'text (T.unpack tag)' in tagWithAttrsWout Gevaert
2022-11-11Change the Mediawiki writer to use the 'new' table structureWout Gevaert
Now MediaWiki tables can use colspan and rowspan :D
2022-11-11[API change] Add functions htmlAddStyle, htmlAlignmentToString and htmlAttrs ↵Wout Gevaert
to Writers/Shared.hs The functions htmlAddStyle and htmlAlignmentToString are moved from Writers/HTML.hs, where they were called 'addStyle' and 'alignmentToString' respectively. The function htmlAttrs is split off from tagWithAttrs in Writers/Shared.hs. It creates a representation of an Attr object, as one would see in a tagWithAttrs (but without the tag)
2022-11-10Better error when parsing EndNote references fails.John MacFarlane
(Tell them that it concerns EndNote references.)
2022-11-09In --verbose mode add message when running citeproc.John MacFarlane
(As with other filters.)
2022-11-08Ms writer: remove -C option on PSPIC.John MacFarlane
Some old versions don't support this option, and since it's the default it shouldn't be necessary.
2022-11-06EPUB writer: refactor to use T.P.Chunks.issue6122John MacFarlane
2022-11-06Move SecInfo, toTOCTree to T.P.Chunks.John MacFarlane
Also add `secPath` to `SecInfo`.
2022-11-06Add Text.Pandoc.Chunks.John MacFarlane
This module provides functions to split Pandoc documents into chunks to be rendered in separate files, e.g. one per section. Internal identifiers are rewritten appropriately to point to the new locations. See #6122.
2022-11-06Fix warnings.John MacFarlane
2022-11-06EPUB writer: refactor createChaptersAndRefTable.John MacFarlane
2022-11-06T.P.Writers.Shared: refactor toTableOfContents.John MacFarlane
We now export `toTOCTree` and `SecInfo`, which provide a more neutral way of generating TOC information from Blocks, and we use these in `toTableOfContents`. This is desirable because some output formats may require a TOC structure that isn't just a rendered pandoc list.
2022-11-02Text.Pandoc.App: Change `parseOptionsFromArgs` and `parseOptions`... (#8406)John MacFarlane
They now return `Either OptInfo Opt`. Add `OptInfo` type. Add `handleOptInfo` function. This performs the IO actions for things like `--version` that were previously done in `parseOptionsFromArgs`. An argument for a `ScriptingEngine` has been added, to facilitate printing custom templates and custom extensions for Lua filters. (However, at this stage nothing is yet done with it.) [API change]
2022-11-02EPUB writer: add includeTitlePage param to createNavEntry.John MacFarlane
So far this isn't used, but it contributes to solving #6097.
2022-11-02EPUB writer: Simplify params for createNavEntry.John MacFarlane
2022-11-02ODT reader: handle "section" elements.John MacFarlane
Previously these were simply skipped! Closes #8409.
2022-11-02ipynb reader: add cell id to attachment filename...John MacFarlane
...when storing in the MediaBag. Otherwise attachments with the same name can overwrite each other. Closes #8415.
2022-10-31Fix import.John MacFarlane
2022-10-31Add explicit imports to fix compiler warnings.John MacFarlane
2022-10-31First stab at mtl 2.3 compliance.John MacFarlane
This will no doubt produce a bunch of warnings and hence CI failures, which we'll need to work around with explicit imports.
2022-10-30hlint suggestions.John MacFarlane
2022-10-30hlint suggestions.John MacFarlane
2022-10-29Fix an import warning.John MacFarlane
2022-10-29Use T.P.XML lookupEntity in Jira reader.John MacFarlane