aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2021-04-28Smarter smart quotes.John MacFarlane7-70/+67
Treat a leading " with no closing " as a left curly quote. This supports the practice, in fiction, of continuing paragraphs quoting the same speaker without an end quote. It also helps with quotes that break over lines in line blocks. Closes #7216.
2021-04-28list of figures before list of tables in LaTeX and ConTeXt templates (#7235)Julien Dutant2-6/+6
2021-04-28JATS writer: use either styled-content or named-content for spans.Albert Krewinkel2-15/+35
If the element has a content-type attribute, or at least one class, then that value is used as `content-type` and the span is put inside a `<named-content>` element. Otherwise a `<styled-content>` element is used instead. Closes: #7211
2021-04-27Docx writer: autoset table width if no column has an explicit width.Albert Krewinkel4-7/+11
2021-04-26Add unicode-collation to list of libraries developed to support pandoc.John MacFarlane1-0/+4
2021-04-26docs/org.md: Add note about default export behavior of org-mode in (#7238)Charanjit Singh1-0/+15
Since it seem to be a common source of confusion, this commit adds a note in org-mode documentation referring users to consult org-mode's export documentation when they find themselves in a pinch.
2021-04-25Fixed another typo in cabal.project.John MacFarlane1-1/+1
2021-04-25Fix typo in cabal.project.John MacFarlane1-1/+1
2021-04-25Use dev texmath, citeproc.John MacFarlane3-5/+11
2021-04-25Minor code reformatting.John MacFarlane1-1/+2
Also taking this opportunity to note, for the record, that the commit for #7241 should be marked [API change]. It changes the type of `languagesByExtension` in Highlighting, adding a parameter for a `SyntaxMap`.
2021-04-25Writers: Recognize custom syntax definitions (#7241)Jan Tojnar5-23/+28
Languages defined using `--syntax-definition` were not recognized by `languagesByExtension`. This patch corrects that, allowing the writers to see all custom definitions. The LaTeX still uses the default syntax map, but that's okay in that context, since `--syntax-definition` won't create new listings styles.
2021-04-25Markdown writer: Cleaner (code)blocks with single class (#7242)Jan Tojnar5-8/+14
When a block only has a single class and no other attributes, it is not necessary to wrap the class attribute in curly braces – the class name can be placed after the opening mark as is. This will result in bit cleaner output when pandoc is used as a markdown pretty-printer.
2021-04-25Add quotes properly in markdown YAML metadata fields.John MacFarlane9-17/+16
This fixes a bug, which caused the writer to look at the LAST rather than the FIRST character in determining whether quotes were needed. So we got spurious quotes in some cases and didn't get necessary quotes in others. Closes #7245. Updated a number of test cases accordingly.
2021-04-25Remove biblatex-nussbaum.md test.John MacFarlane1-63/+0
It is basically the same as biblaetx-quotes.md.
2021-04-20stack.yaml - use latest unicode-collation.John MacFarlane1-1/+1
2021-04-20Docx writer: add missing fileAlbert Krewinkel1-0/+181
2021-04-20Docx writer: extract Table handling into separate moduleAlbert Krewinkel3-221/+121
2021-04-19Fix nightly build.John MacFarlane1-2/+2
2021-04-19Issue error message when reader or writer format is malformed.John MacFarlane2-6/+6
Previously we exited with an error status but (due to a bug) no message. Closes #7231.
2021-04-18Use MetaInlines not MetaBlocks for multimarkdown metadata fields.John MacFarlane2-1/+21
This gives better results in converting to e.g. pandoc markdown. Ref: <https://groups.google.com/d/msgid/pandoc-discuss/9728d1f4-040e-4392-aa04-148f648a8dfdn%40googlegroups.com>
2021-04-18CI: Use cabal 2.4 even with ghc 8.0.2John MacFarlane1-2/+2
2021-04-18Use lastest citeproc.John MacFarlane2-2/+2
2021-04-18Use lastest unicode-collation.John MacFarlane2-2/+2
2021-04-18MANUAL: Add information about `lang` and bibliography sorting.John MacFarlane1-10/+17
2021-04-17Update to released unicode-collation, latest citeproc dev version.John MacFarlane16-30/+20
Update citeproc test.
2021-04-17Use document's lang for the lang parameter of citeproc...John MacFarlane1-2/+1
even if it differs from localeLanguage. (It is designed to be possible to override the locale language, and this is especially useful when one wants to use the unicode extension syntx, e.g. fr-u-kb.)
2021-04-17Use BCP47 language codes in citeproc tests.John MacFarlane3-4/+4
2021-04-17Remove Text.Pandoc.BCP47 module.John MacFarlane20-294/+198
[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 MacFarlane6-74/+77
[API change]
2021-04-17Use new citeproc + unicode-collation.John MacFarlane3-1/+145
Add command test for unicode-collation.
2021-04-16JATS writer: reduce unnecessary use of <p> elements for wrappingAlbert Krewinkel7-144/+166
The `<p>` element is used for wrapping in cases were the contents would otherwise not be allowed in a certain context. Unnecessary wrapping is avoided, especially around quotes (`<disp-quote>` elements). Closes: #7227
2021-04-15Use latest xml-conduit.John MacFarlane2-1/+2
2021-04-10JATS writer: convert spans to <named-content> elementsAlbert Krewinkel2-6/+22
Spans with attributes are converted to `<named-content>` elements instead of being wrapped with `<milestone-start/>` and `<milestone-end>` elements. Milestone elements are not allowed in documents using the articleauthoring tag set, so this change ensures the creation of valid documents. Closes: #7211
2021-04-10JATS writer: add footnote number as label in backmatterAlbert Krewinkel3-12/+17
Footnotes in the backmatter are given the footnote's number as a label. The articleauthoring output is unaffected from this change, as footnotes are placed inline there. Closes: #7210
2021-04-08Fix regression in grid tables for wide characters.John MacFarlane2-5/+41
In the translation from String to Text, a char-width-sensitive splitAt' was dropped. This commit reinstates it. Closes #7214.
2021-04-08Lua filter: respect Inlines/Blocks filter functions in pandoc.walk_*Albert Krewinkel2-3/+10
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