aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2021-04-05Commonmark writer: Use backslash escapes for `<` and `|`...John MacFarlane2-1/+17
instead of entities. Closes #7208.
2021-04-05SelfContained: remove unneeded imports.John MacFarlane1-2/+0
2021-04-05JATS writer: escape disallows chars in identifiersAlbert Krewinkel5-109/+162
XML identifiers must start with an underscore or letter, and can contain only a limited set of punctuation characters. Any IDs not adhering to these rules are rewritten by writing the offending characters as Uxxxx, where `xxxx` is the character's hex code.
2021-04-05SelfContained: use application/octet-stream for unknown mime types...John MacFarlane1-5/+4
instead of halting with an error. Closes #7202.
2021-04-03Fix typo (#7200)obcat1-1/+1
2021-04-02Fix "phrase" in DocBook: take classes from "role" not "class".John MacFarlane1-1/+1
Closes #7195. Revises #6438.
2021-04-01Org writer: Use LaTeX style maths deliminators (#7196)tecosaur2-9/+9
Org works better with LaTeX-style delimiters.
2021-03-31Treat tabs as spaces in ODT Reader. (#7185)niszet4-1/+9
2021-03-31Require text for trypandoc (#7193)Roman Beránek1-1/+1
2021-03-30Update org.md (#7189)Anti-Distinctlyminty1-2/+1
SELECT_TAGS supported since ac83b9c37c39a49878e7d864fb276c0e4caed338
2021-03-29Powerpoint writer: allow monofont to be specified in metadata...John MacFarlane2-6/+19
...not just using `--variable` on the command line (as in other writers). Closes #7187.
2021-03-28Fixed typo #7159TatianaPorras1-1/+1
This commit fixes the typo in the Lua filters documentation, see #7159
2021-03-28Fixed "The this" typo in lua-filters.mdTatianaPorras1-1/+1
The documentation for Lua filters said "The this module defines..." This has been fixed to say "This module defines..."
2021-03-24Allow attoparsec 0.14.x.John MacFarlane1-1/+1
2021-03-24Fix DocBook reader mathml regression...John MacFarlane4-5/+147
...caused by the switch in XML libraries. Also fixed a similar issue in JATS. Closes #7173.
2021-03-22Require latest skylighting (fixes a bug in XML syntax highlighting).John MacFarlane2-4/+4
2021-03-21Simplify T.P.Asciify and export toAsciiText [API change].John MacFarlane3-395/+18
Instead of encoding a giant (and incomplete) map, we now just use unicode-transforms to normalize the text to a canonical decomposition, and manipulate the result. The new `toAsciiText` is equivalent to the old `T.pack . mapMaybe toAsciiChar . T.unpack` but should be faster.
2021-03-20Update changelog, AUTHORS.John MacFarlane2-36/+56
2021-03-20Support `yaml_metadata_block` extension form commonmark, gfm.John MacFarlane4-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-20Move yamlMetaBlock from Markdown reader to T.P.Readers.Metadata.John MacFarlane2-22/+22
2021-03-20Markdown reader: export `yamlMetaBlock`.John MacFarlane1-17/+23
[API change] This will allow us to parse YAML metadata blocks in other readers, potentially.
2021-03-20Text.Pandoc.Parsing: remove F type synonym.John MacFarlane5-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-20T.P.Readers.Metadata: made `yamlBsToMeta`, `yamlBsToRefs` polymorphic...John MacFarlane1-15/+15
on the parser state, instead of requiring ParserState. [API change]
2021-03-20RST writer: use NonEmpty for init, last.John MacFarlane1-8/+12
2021-03-20Include Header.Attr.attributes as XML attributes on sectionErik Rask2-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-20Add date on changelogJohn MacFarlane1-1/+1
2021-03-20Update man page and manual date.John MacFarlane2-3/+3
2021-03-20Bump to 2.13, update changelogJohn MacFarlane2-6/+48
2021-03-20T.P.Shared: remove `backslashEscapes`, `escapeStringUsing`.John MacFarlane8-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-19Tests: Use getExecutablePath from base...John MacFarlane4-5/+3
avoiding the need to depend on the executable-path package.
2021-03-19Fix fallback to default partials on templates.John MacFarlane1-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-19Tests: factor out setupEnvironment in Test.Helpers.John MacFarlane3-25/+26
This avoids code duplication between Command and Old.
2021-03-19Fix finding of data files from test programs.John MacFarlane2-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-19cabal.project: move flags: to top level (not under pandoc:).John MacFarlane1-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-19Hlint suggestion.John MacFarlane1-2/+3
2021-03-19CI: test with different flags.John MacFarlane1-3/+9
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-19T.P.Shared: Remove ToString, ToText typeclasses [API change].John MacFarlane2-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-19Use skylighting 0.10.5.John MacFarlane2-4/+4
This fixes a bad regression in Haskell syntax highlighting.
2021-03-19Protect partial uses of maximum with NonEmpty.John MacFarlane21-86/+108
2021-03-19Use NonEmpty instead of minimumDef.John MacFarlane4-8/+9
2021-03-19Docx reader: Don't reimplement NonEmpty.John MacFarlane1-5/+1
2021-03-18Use minimumDef instead of minimum (partial function).John MacFarlane4-9/+8
2021-03-18Require safe >= 0.3.18 and remove cpp.John MacFarlane2-6/+1
2021-03-18Rewrite a foldl1 as a foldl'.John MacFarlane1-1/+5
2021-03-18Remove another foldr1 partial function use.John MacFarlane1-5/+6
2021-03-18T.P.Readers.Odt.StyleReader: rewrite foldr1 use as foldr.John MacFarlane1-5/+6
This avoids a partial function.
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-18Minor revisions to provisional changelog.John MacFarlane1-6/+4
2021-03-18Bump to 2.12.1 and update changelog.John MacFarlane2-1/+94