aboutsummaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2022-04-02LaTeX reader: avoid a thunk in sRawTokens.John MacFarlane
2022-04-01Fix regression with `ascii_identifiers` and Turkish undotted i.John MacFarlane
Closes #8003.
2022-03-31Revert "Parsing.General: make manyChar1, etc. more strict."John MacFarlane
This reverts commit c1ab48874c04142988505ca5c5caa6626bb68211. Mistake in measurement.
2022-03-31Parsing.General: make manyChar1, etc. more strict.John MacFarlane
Profiling the muse reader revealed that these were creating huge thunks.
2022-03-31RTF reader: increased stricness.John MacFarlane
This leads to some performance improvements.
2022-03-31Markdown reader: add some strictness.John MacFarlane
This improves some benchmarks significantly.
2022-03-30Lua: allow to pass Sources to pandoc.read (#8002)Albert Krewinkel
Sources, the data type passed to the `Reader` function in custom readers, are now accepted as input to `pandoc.read`.
2022-03-30STrictness improvement in RTF reader.John MacFarlane
2022-03-30LaTeX writer: add () after booktabs rules.John MacFarlane
These commands take optional arguments with () and [], which can lead to problems if the content of the table cell begins with these characters. Closes #8001.
2022-03-30HTML writer: Further performance improvements.John MacFarlane
2022-03-30Add mime type for mkv extension (#7181).John MacFarlane
2022-03-30HTML writer: add a performance shortcut to strToHtml.John MacFarlane
2022-03-29Fixed two thunk leaks in RTF reader.John MacFarlane
This further reduces memory usage. See #7943.
2022-03-29JATS reader: handle pub-date.John MacFarlane
Closes #8000.
2022-03-29LaTeX writer: support `page`,`trim`,`clip` attributes on images.John MacFarlane
These are actually supported by `\includegraphics`, though this is not well documented. See https://tex.stackexchange.com/questions/7938/pdflatex-includegraphics-and-multi-page-pdf-files Partially addresses #7181.
2022-03-29RST reader: wrap math in Span to preserve attributes (#7998)Albert Krewinkel
Math elements with a name, classes, or other fields are wrapped in a `Span` with these attributes.
2022-03-29Refactor Text.Pandoc.Writers.EPUB (#7991)Jonathan Dönszelmann
Refactor for readability. Co-authored-by: Ola Wolska <[email protected]@gmail.com> Co-authored-by: Ivar de Bruin <[email protected]> Co-authored-by: Jaap de Jong <[email protected]>
2022-03-29Include Lua version in `--version` output. (#7997)Albert Krewinkel
2022-03-29Remove redundant dependency on hslua-marshalling.Albert Krewinkel
The package is a dependency of hslua; all important modules are re-exported.
2022-03-28JATS reader: strip 'ref-' from ref id in constructing CSL id.John MacFarlane
This allows better round-tripping, because the JATS writer adds the `ref-` prefix to the citation id to get the ref element's id.
2022-03-28JATS reader: improve refs parsing.John MacFarlane
Handle issn and isbn; use simpler form for issued date.
2022-03-28JATS writer: Fix handling of CSL variable 'page'.John MacFarlane
Not 'pages' as we had before. It should go to 'lpage' and 'rpage', not 'page-range'. See https://jats.nlm.nih.gov/archiving/tag-library/1.1/element/page-range.html Fixed some mistakes in test #7042.
2022-03-28JATS reader: support PMID, DOI, issue in citations.John MacFarlane
Closes #7995.
2022-03-28JATS writer: keep edition info in element citations.Albert Krewinkel
Closes: #7993
2022-03-27JATS writer: avoid doubled ref-list element.John MacFarlane
Previously when generating JATS with the `element_citations` extension enabled, the references were put in a doubly-nested ref-list element (`<ref-list><ref-list>...`). This is now fixed. Closes #7990.
2022-03-26Docx writer: add bookmark with table id to table (#7989)Nikolai Korobeinikov
This allows tables with ids to be linked to. Closes #7285.
2022-03-25Rename T.P.Parsing.Combinators -> T.P.Parsing.General.John MacFarlane
Because many of the exported things aren't combinators... Also remove redundant explot of indentWith from T.P.Parsing.Lists.
2022-03-25T.P.Parsing: use explicit imports.John MacFarlane
2022-03-25More optimization of RTF reader.John MacFarlane
2022-03-25RTF reader: optimize parsing of unformatted text.John MacFarlane
2022-03-25Sources: small strictness optimizationJohn MacFarlane
2022-03-24RTF reader: more memory usage optimizations.John MacFarlane
See #7943.
2022-03-24Small optimizations in RTF reader.John MacFarlane
2022-03-24[API change] Unify grid table parsing (#7971)Albert Krewinkel
Grid table parsing in Markdown and rst are updated use the same functions. Functions are generalized to meet requirements for both formats. This change also lays the ground for further generalizations in table parsers, including support for advanced table features. API changes in Text.Pandoc.Parsing: - Parse results of functions `tableWith'` and `gridTableWith'` are now a `mf TableComponents` instead of a quadruple of alignments, column widths, header rows and body rows. Additional exports from Text.Pandoc.Parsing: - `tableWith'` - `TableComponents` - `TableNormalization` - `toTableComponents` - `toTableComponents'`
2022-03-24RTF reader: more efficient parsing of command parameters.John MacFarlane
2022-03-22JATS writer: encode author "others" as `<etal/>`Albert Krewinkel
Citeproc adopted the BibTeX convention to use the author name "others" when there are additional authors that are not named. JATS uses the `<etal>` element for this.
2022-03-18Parsing.GridTable: simplify column handling code.Albert Krewinkel
2022-03-18Writers.GridTable: improve module documentation.Albert Krewinkel
2022-03-18Markdown writer: move table-related code into submodule.Albert Krewinkel
2022-03-16Allow formatted bibliography to be placed in metadata fields.John MacFarlane
This modifies `processCitations` so that pandoc will look not just in the document body but in metadata for a Div with id `refs` in which to place the formatted bibliography. Thus, one can include a metadata field, say `refs`, whose content is an empty div with id `refs`, and the formatted bibliography will be put into this metadata field. It may then be interpolated into a template using the variable `refs`. Closes #7969. Closes #526 by providing a way to interpolate references into a template.
2022-03-14Remove `native_divs` from allowed gfm extensions.John MacFarlane
This allows `<div>` to be suppressed using `-raw_html`. Previously `native_divs` was enabled but could not be suppressed, because it was not in the list of available extensions for commonmark-based formats. Closes #7965.
2022-03-13Shared: define ordNub as alias for nubOrd from containers package (#7963)Albert Krewinkel
This requires at least containers 0.6.0.1, which ships with the oldest GHC version currently supported by pandoc (GHC 8.6).
2022-03-12Document more functions in T.P.Parsing and T.P.Shared.Albert Krewinkel
2022-03-12LaTeX reader: better handling of `\usepackage`.John MacFarlane
If the package is local but causes parse errors, parse everything up to the error and skip the rest. Issue a CouldNotParseIncludeFile warning indicating that parsing failed at that point. T.P.Logging: add CouldNotParseIncludeFile constructor.
2022-03-12T.P.Readers.LaTeX.Parsing: Monoid and Semigroup instances for TokStream.John MacFarlane
2022-03-11LaTeX reader: further optimizations for inline parsing.John MacFarlane
2022-03-11LaTeX reader: use custom TokStream...John MacFarlane
that keeps track of whether macros are expanded. This allows us to improve performance a bit by avoiding unnecessary runs of the macro expansion code (e.g. from 24 ms to 20 ms on our standard benchmark).
2022-03-11Parsing: partition module into (internal) submodules (#7962)Albert Krewinkel
2022-03-11Org writer: stop indenting property drawers, quote blocksAlbert Krewinkel
This follows the current default org-mode behavior. Closes: #3245
2022-03-10Org reader: allow multiple `#+bibliography:`.John MacFarlane