aboutsummaryrefslogtreecommitdiff
path: root/pandoc.cabal
AgeCommit message (Collapse)AuthorFilesLines
2021-05-09Change reader types, allowing better tracking of source positions.John MacFarlane1-0/+1
Previously, when multiple file arguments were provided, pandoc simply concatenated them and passed the contents to the readers, which took a Text argument. As a result, the readers had no way of knowing which file was the source of any particular bit of text. This meant that we couldn't report accurate source positions on errors or include accurate source positions as attributes in the AST. More seriously, it meant that we couldn't resolve resource paths relative to the files containing them (see e.g. #5501, #6632, #6384, #3752). Add Text.Pandoc.Sources (exported module), with a `Sources` type and a `ToSources` class. A `Sources` wraps a list of `(SourcePos, Text)` pairs. [API change] A parsec `Stream` instance is provided for `Sources`. The module also exports versions of parsec's `satisfy` and other Char parsers that track source positions accurately from a `Sources` stream (or any instance of the new `UpdateSourcePos` class). Text.Pandoc.Parsing now exports these modified Char parsers instead of the ones parsec provides. Modified parsers to use a `Sources` as stream [API change]. The readers that previously took a `Text` argument have been modified to take any instance of `ToSources`. So, they may still be used with a `Text`, but they can also be used with a `Sources` object. In Text.Pandoc.Error, modified the constructor PandocParsecError to take a `Sources` rather than a `Text` as first argument, so parse error locations can be accurately reported. T.P.Error: showPos, do not print "-" as source name.
2021-05-01Add new internal module Text.Pandoc.Writers.GridTableAlbert Krewinkel1-0/+2
2021-04-25Use dev texmath, citeproc.John MacFarlane1-1/+1
2021-04-20Docx writer: extract Table handling into separate moduleAlbert Krewinkel1-0/+2
2021-04-18Use lastest unicode-collation.John MacFarlane1-1/+1
2021-04-17Remove Text.Pandoc.BCP47 module.John MacFarlane1-1/+0
[API change] Use Lang from UnicodeCollation.Lang instead. This is a richer implementation of BCP 47.
2021-04-17Move getLang from BCP47 -> T.P.Writers.Shared.John MacFarlane1-0/+1
[API change]
2021-04-15Use latest xml-conduit.John MacFarlane1-1/+1
2021-03-31Require text for trypandoc (#7193)Roman Beránek1-1/+1
2021-03-24Allow attoparsec 0.14.x.John MacFarlane1-1/+1
2021-03-22Require latest skylighting (fixes a bug in XML syntax highlighting).John MacFarlane1-2/+2
2021-03-20Bump to 2.13, update changelogJohn MacFarlane1-1/+1
2021-03-19Tests: Use getExecutablePath from base...John MacFarlane1-1/+0
avoiding the need to depend on the executable-path package.
2021-03-19Narrow version bounds for skylighting, citeproc, and texmath.John MacFarlane1-4/+4
This reduces the chance that tests will fail due to behavior changes in one of these dependencies. (See e.g. #7163)
2021-03-19Use skylighting 0.10.5.John MacFarlane1-2/+2
This fixes a bad regression in Haskell syntax highlighting.
2021-03-18Require safe >= 0.3.18 and remove cpp.John MacFarlane1-1/+1
2021-03-18Don't bake in extra stack size to the executables.John MacFarlane1-1/+1
I don't think this is necessary; stack overflows generally indicate a code problem and should be fixed (and have been when reported).
2021-03-18Bump to 2.12.1 and update changelog.John MacFarlane1-1/+1
2021-03-18Use -A8m for default rtsopts for benchmarkJohn MacFarlane1-1/+1
2021-03-18pandoc.cabal: bake in -A8m to rtsopts.John MacFarlane1-1/+1
This reserves a larger allocation area and reduces GC, speeding up execution.
2021-03-17Update bounds for random (#7156)Alexey Kuleshevich1-1/+1
2021-03-17Benchmark improvements.John MacFarlane1-2/+4
* Build `+RTS -A256m -RTS` into default ghc-options for benchmark, so we don't have to specify this separately on the command line. This is necessary to get accurate benchmark results; otherwise we are largely measuring garbage collecting, some not related to the current benchmark. * Switch back from gauge to tasty-bench. * Allow specifying BASELINE file in 'make bench' for comparison (otherwise the latest is chosen by default). * Remove obsolete reference to weigh-pandoc from CONTRIBUTING.md. * Remove `-Rghc-timing` from 'make bench'.
2021-03-16Increase heap space in runtime for benchmarks.John MacFarlane1-0/+1
Otherwise we're essentially benchmarking garbage collecting, which can give very inconsistent results.
2021-03-15Switch to gauge for now for benchmarks.John MacFarlane1-3/+3
tasty-bench is displaying odd behavior, with different timings depending on the `--pattern` specified.
2021-03-15Require texmath 0.12.2John MacFarlane1-1/+1
2021-03-14Require latest doclayout and skylighting.John MacFarlane1-3/+3
2021-03-13Use eciteproc >= 0.3.0.9John MacFarlane1-1/+1
2021-03-13Use jira-wiki-markup 1.3.4Albert Krewinkel1-1/+1
Jira reader: * Fixed parsing of autolinks (i.e., of bare URLs in the text). Previously an autolink would take up the rest of a line, as spaces were allowed characters in these items. * Emoji character sequences no longer cause parsing failures. This was due to missing backtracking when emoji parsing fails. Jira writer: * Block quotes are only rendered as `bq.` if they do not contain a linebreak.
2021-03-09Re-add a needed dependency for benchmark.John MacFarlane1-0/+1
2021-03-09Revert "Use -Wunused-packages on ghc >= 8.10."John MacFarlane1-2/+0
This reverts commit 7a1d0f01e94d115f361ead110b60174bfc732033. This option gives confusing output when a build is interrupted, suggesting that packages aren't required when we just didn't get to the model that requires them.
2021-03-09Remove some unused packages from pandoc.cabal.John MacFarlane1-4/+2
2021-03-09Use -Wunused-packages on ghc >= 8.10.John MacFarlane1-0/+2
2021-03-04Bump version to 2.12John MacFarlane1-1/+1
2021-03-03Revert "Add T.P.Readers.LaTeX.Include."John MacFarlane1-1/+0
This reverts commit b569b0226d4bd5e0699077089d54fb03d4394b7d. Memory usage improvement in compilation wasn't very significant.
2021-03-03Add T.P.Readers.LaTeX.Include.John MacFarlane1-0/+1
2021-03-03Remove T.P.Readers.LaTeX.Accent.John MacFarlane1-1/+0
Incorporate accentCommands into T.P.Readers.LaTeX.Inline.
2021-03-03Split out T.P.Readers.LaTeX.Inline.John MacFarlane1-5/+6
2021-03-02Split out T.P.Writers.LaTeX.Util.John MacFarlane1-0/+1
2021-03-02Split out T.P.Writers.LaTeX.Citation.John MacFarlane1-0/+1
2021-03-02Split out T.P.Writers.LaTeX.Lang.John MacFarlane1-0/+1
2021-03-02Split up T.P.Writers.Markdown...John MacFarlane1-0/+2
with T.P.Writers.Markdown.Types and T.P.Writers.Markdown.Inline. The module was difficult to compile on low-memory system.s
2021-03-01Make T.P.Readers.LaTeX.Types an unexported module.John MacFarlane1-1/+1
[API change] This is really an implementation detail that shouldn't be exposed in the public API.
2021-03-01Factor out T.P.Readers.LaTeX.Macro.John MacFarlane1-0/+1
2021-02-28Factor out T.P.Readers.LaTeX.Math.John MacFarlane1-0/+1
2021-02-28trypandoc: add 2 second timeout.John MacFarlane1-1/+1
2021-02-28Factor out T.P.Readers.LaTeX.Citation.John MacFarlane1-0/+1
2021-02-27Factor out T.P.Readers.LaTeX.Table.John MacFarlane1-0/+1
2021-02-27Split off T.P.Readers.LaTeX.Accent.John MacFarlane1-0/+1
To help reduce memory demands compiling the main LaTeX reader.
2021-02-27Use skylighting 0.10.4.John MacFarlane1-2/+2
This version of skylighting uses xml-conduit rather than hxt. This speeds up parsing of XML syntax definitions fourfold, and removes four packages from pandoc's dependency graph: hxt-charproperties hxt-unicode hxt-regex-xmlschema hxt
2021-02-22Use latest skylighting.John MacFarlane1-2/+2