aboutsummaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2022-11-19RST writer: use special `mark` role for Span with class `mark`.markJohn MacFarlane
See #7743.
2022-11-19LaTeX writer: support highlighted text for Span with class `mark`.John MacFarlane
See #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-19Docx writer: render Span with class `mark` as highlighted.John MacFarlane
Currently yellow is hardcoded. Maybe think about using a style. See #7743.
2022-11-19Markdown writer: support `mark` extension.John MacFarlane
See #7743.
2022-11-19Markdown reader: parse `==..==` if `mark` extension enabled.John MacFarlane
See #7743.
2022-11-19Extensions: Add `Ext_mark` extension.John MacFarlane
This is for highlighting blocks of text. This is not part of the pandoc extensions by default. See #7743.
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
2022-10-29Re-export lookupEntity from Text.Pandoc.XML [API change].John MacFarlane
2022-10-29T.P.XML: use lookupEntity from commonmark-hs.John MacFarlane
2022-10-29T.P.Parsing.General: change `characterReference`, `charsInBalanced`.John MacFarlane
`characterReference` now returns a Text (as it should, because some named references don't correspond to a single Char), and uses the `lookupEntity` function from commonmark-hs instead of the slow one from tagsoup. `charsInBalanced` now takes a Text parser rather than a Char parser as argument. [API change]
2022-10-27Don't fail on inline metadata beginning with newline.John MacFarlane
Closes #8358.
2022-10-27T.P.Writers.Shared `toTableOfContents`: handle nested Divs better.John MacFarlane
Closes #8402.
2022-10-27T.P.PDF: fix papersize on PDF generation via ms.John MacFarlane
We need to set an option in pdfroff in addition to including a macro in the ms file. With this fix, `-Vpapersize=a4` should be sufficient to produce A4 PDF via ms. Closes #8403.
2022-10-26LaTeX reader: fix TEXINPUTS handling.John MacFarlane
If TEXINPUTS ends with `:`, then the system default TEXINPUTS is added. We handle this by just adding the working directory in this case. Closes #8392.
2022-10-26ICML writer: use Contents element for images with raw data...John MacFarlane
instead of a link with a data: uri. Closes #8398.
2022-10-25Remove type alias WriterProperties.John MacFarlane
I don't think this aids clarity, and anyway it's not exported.
2022-10-24Rename T.P.Readers.Odt -> T.P.Readers.ODT.John MacFarlane
For consistency with Writers.ODT. Similarly, rename `readOdt` -> `readODT`. [API change]
2022-10-24Rename T.P.Writers.Docbook -> T.P.Writers.DocBook.John MacFarlane
Similarly, rename `writeDocbook` -> `writeDocBook`, for consistency with the DocBook reader's naming. [API change]
2022-10-24ODT reader: fix relative links.John MacFarlane
ODT adds a `../` to relative links (see #3524); this needs to be removed when converting from ODT.
2022-10-24ODT writer: further refinement to #3524.John MacFarlane
Don't alter the link if the path is empty.
2022-10-24ODT writer:John MacFarlane
Revise commit 9496ce818bfc22cb8e823a04de8f5791fd84c8dd so it doesn't change image links. (These should have already been adjusted.) See #3524.
2022-10-24ODT writer: fix relative links.John MacFarlane
Closes #3524.
2022-10-21LaTeX reader: parse short table caption.John MacFarlane
See jgm/pandoc-types#103. This is not too useful yet, because writers don't do anything with the short caption.
2022-10-20Text.Pandoc.Parsing: remove `nested` [API change].John MacFarlane
It was not being used, and in fact it was a bad idea from the beginning, as it had no hope of solving the problem it was introduced to solve.
2022-10-20Add custom extensions.John MacFarlane
T.P.Extensions [API change]: + Add CustomExtension constructor to Extension. + Remove Bounded, Enum instances for Extension. + Add `extensionsToList` function. + Revise `readExtension` so it can handle CustomExtension, and so that it returns a Text rather than Maybe Text. + Add `showExtension`. T.P.Format: + Revise error checking to handle CustomExtension.