Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2021-03-20 | Support `yaml_metadata_block` extension form commonmark, gfm. | John MacFarlane | 4 | -1/+50 | |
This is a bit more limited than with markdown, as documented in the manual: - The YAML block must be the first thing in the input. - The leaf notes are parsed in isolation from the rest of the document. So, for example, you can't use reference links if the references are defined later in the document. Closes #6537. | |||||
2021-03-20 | Move yamlMetaBlock from Markdown reader to T.P.Readers.Metadata. | John MacFarlane | 2 | -22/+22 | |
2021-03-20 | Markdown reader: export `yamlMetaBlock`. | John MacFarlane | 1 | -17/+23 | |
[API change] This will allow us to parse YAML metadata blocks in other readers, potentially. | |||||
2021-03-20 | Text.Pandoc.Parsing: remove F type synonym. | John MacFarlane | 5 | -9/+9 | |
Muse and Org were defining their own F anyway, with their own state. We therefore move this definition to the Markdown reader. | |||||
2021-03-20 | T.P.Readers.Metadata: made `yamlBsToMeta`, `yamlBsToRefs` polymorphic... | John MacFarlane | 1 | -15/+15 | |
on the parser state, instead of requiring ParserState. [API change] | |||||
2021-03-20 | RST writer: use NonEmpty for init, last. | John MacFarlane | 1 | -8/+12 | |
2021-03-20 | Include Header.Attr.attributes as XML attributes on section | Erik Rask | 2 | -2/+82 | |
Add key-value pairs found in the attributes list of Header.Attr as XML attributes on the corresponding section element. Any key name not allowed as an XML attribute name is dropped, as are keys with invalid values where they are defined as enums in DocBook, and xml:id (for DocBook 5)/id (for DocBook 4) to not intervene with computed identifiers. | |||||
2021-03-20 | Add date on changelog | John MacFarlane | 1 | -1/+1 | |
2021-03-20 | Update man page and manual date. | John MacFarlane | 2 | -3/+3 | |
2021-03-20 | Bump to 2.13, update changelog | John MacFarlane | 2 | -6/+48 | |
2021-03-20 | T.P.Shared: remove `backslashEscapes`, `escapeStringUsing`. | John MacFarlane | 8 | -47/+77 | |
[API change] These are inefficient association list lookups. Replace with more efficient functions in the writers that used them (with 10-25% performance improvements in haddock, org, rtf, texinfo writers). | |||||
2021-03-19 | Tests: Use getExecutablePath from base... | John MacFarlane | 4 | -5/+3 | |
avoiding the need to depend on the executable-path package. | |||||
2021-03-19 | Fix fallback to default partials on templates. | John MacFarlane | 1 | -0/+4 | |
If the directory containing a template does not contain the partial, it should be sought in the default data files. Closes #7164. | |||||
2021-03-19 | Tests: factor out setupEnvironment in Test.Helpers. | John MacFarlane | 3 | -25/+26 | |
This avoids code duplication between Command and Old. | |||||
2021-03-19 | Fix finding of data files from test programs. | John MacFarlane | 2 | -2/+5 | |
Apparently Cabal sets a `pandoc_datadir` environment variable so that the data files will be sought in the source directory rather than in the final destination (where they aren't yet installed). So we no longer need to set `--data-dir` in the tests. We just need to make sure `pandoc_datadir` is set in the environment when we call the program in the test suite. This will fix the issue with loading of pandoc.lua when pandoc is built with `-embed_data_files`, reported in #7163. Closes #7163. | |||||
2021-03-19 | cabal.project: move flags: to top level (not under pandoc:). | John MacFarlane | 1 | -5/+1 | |
If it's under the pandoc stanza, it can't be overriden on the command line, it seems. Also we remove ghc-options. | |||||
2021-03-19 | Hlint suggestion. | John MacFarlane | 1 | -2/+3 | |
2021-03-19 | CI: test with different flags. | John MacFarlane | 1 | -3/+9 | |
2021-03-19 | Narrow version bounds for skylighting, citeproc, and texmath. | John MacFarlane | 1 | -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-19 | T.P.Shared: Remove ToString, ToText typeclasses [API change]. | John MacFarlane | 2 | -24/+4 | |
T.P.Parsing: revise type of readWithM so that it takes a Text rather than a polymorphic ToText value. These typeclasses were there to ease the transition from String to Text. They are no longer needed, and they may clash with more useful versions under the same name. This will require a bump to 2.13. | |||||
2021-03-19 | Use skylighting 0.10.5. | John MacFarlane | 2 | -4/+4 | |
This fixes a bad regression in Haskell syntax highlighting. | |||||
2021-03-19 | Protect partial uses of maximum with NonEmpty. | John MacFarlane | 21 | -86/+108 | |
2021-03-19 | Use NonEmpty instead of minimumDef. | John MacFarlane | 4 | -8/+9 | |
2021-03-19 | Docx reader: Don't reimplement NonEmpty. | John MacFarlane | 1 | -5/+1 | |
2021-03-18 | Use minimumDef instead of minimum (partial function). | John MacFarlane | 4 | -9/+8 | |
2021-03-18 | Require safe >= 0.3.18 and remove cpp. | John MacFarlane | 2 | -6/+1 | |
2021-03-18 | Rewrite a foldl1 as a foldl'. | John MacFarlane | 1 | -1/+5 | |
2021-03-18 | Remove another foldr1 partial function use. | John MacFarlane | 1 | -5/+6 | |
2021-03-18 | T.P.Readers.Odt.StyleReader: rewrite foldr1 use as foldr. | John MacFarlane | 1 | -5/+6 | |
This avoids a partial function. | |||||
2021-03-18 | Don't bake in extra stack size to the executables. | John MacFarlane | 1 | -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-18 | Minor revisions to provisional changelog. | John MacFarlane | 1 | -6/+4 | |
2021-03-18 | Bump to 2.12.1 and update changelog. | John MacFarlane | 2 | -1/+94 | |
2021-03-18 | Use -A8m for default rtsopts for benchmark | John MacFarlane | 1 | -1/+1 | |
2021-03-18 | Revert the -j related changes in make_artifacts.sh. | John MacFarlane | 1 | -3/+3 | |
This led to very slow build times. | |||||
2021-03-18 | Change -A256m to -A8m in GHCOPTS | John MacFarlane | 1 | -1/+1 | |
2021-03-18 | pandoc.cabal: bake in -A8m to rtsopts. | John MacFarlane | 1 | -1/+1 | |
This reserves a larger allocation area and reduces GC, speeding up execution. | |||||
2021-03-18 | build-arm.sh : remove strict checking on first ssh access | John MacFarlane | 1 | -0/+2 | |
2021-03-18 | make_artifacts.sh: try using -j for cabal rather than -j4 ghc-options. | John MacFarlane | 2 | -5/+5 | |
2021-03-17 | Use random 1.2.0 in stack.yaml. | John MacFarlane | 1 | -0/+3 | |
2021-03-17 | Docx writer: make nsid in abstractNum deterministic. | John MacFarlane | 34 | -6/+4 | |
Previously we assigned a random number (though in a deterministic way). But changes in the random package mean we get different results now on different architectures, even with the same random seed. We don't need random values; so now we just assign a value based on the list number id, which is guaranteed to be unique to the list marker. | |||||
2021-03-17 | Update bounds for random (#7156) | Alexey Kuleshevich | 1 | -1/+1 | |
2021-03-17 | Fix benchmark in ci. | John MacFarlane | 1 | -1/+1 | |
2021-03-17 | Benchmark improvements. | John MacFarlane | 4 | -18/+13 | |
* 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-17 | Makefile: Add comment documenting benchmark settings. | John MacFarlane | 1 | -0/+3 | |
2021-03-17 | Fix regression with `tex_math_backslash` in Markdown reader. | John MacFarlane | 1 | -1/+1 | |
Added regression test. Closes #7155. | |||||
2021-03-17 | Add test for #7155. | John MacFarlane | 1 | -0/+15 | |
2021-03-17 | Remove unnecessary tasty-bench from extra-deps | John MacFarlane | 1 | -1/+0 | |
2021-03-17 | Revert "Makefile: add --static to quick target" | John MacFarlane | 1 | -1/+1 | |
This reverts commit 6075b17ae11e5f1670d5d6e715431c4242dfd943. | |||||
2021-03-16 | Makefile: add --static to quick target | John MacFarlane | 1 | -1/+1 | |
2021-03-16 | Disable redundant brackets check in .hlint.yaml. | John MacFarlane | 1 | -8/+2 | |