aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2022-01-14Include following newline in latex ControlSeq token.token-newlineJohn MacFarlane
This gives behavior that comes closer to LaTeX's own. If we don't absorb the following newline, it gets interpreted as a SoftBreak, inserting a spurious space in some contexts.
2022-01-14LaTeX reader: Simplify decision about unknown commands...John MacFarlane
...at the start of a paragraph, taking them to be inline only if they're followed by regular text. This is simpler than our previous test (checking to see that none of the commands on the line are inline), but it is less fragile. (The old test broke with some changes, soon to be committed, that change tokenization of control sequences, including trailing newlines.)
2022-01-14T.P.Readers.LaTeX.Parsing: don't export totoks.John MacFarlane
Make the first param of `tokenize` a SourcePos instead of SourceName, and use it instead of `totoks`.
2022-01-14Update man page.2.17.0.1John MacFarlane
2022-01-14Bump to 2.17.0.1, update changelog.John MacFarlane
2022-01-14Add FAQ on images in ipynb containers.John MacFarlane
Closes #7749.
2022-01-14Use commonmark-pandoc 0.2.1.2.John MacFarlane
Fixes #7769.
2022-01-14Add pandoc-lua-marshal-0.1.3.1 to stack.yamlJohn MacFarlane
2022-01-14Require pandoc-lua-marshal 0.1.3.1Albert Krewinkel
Fixes a problem with `List.includes` and `List.find` that caused a Lua stackoverflow and subsequent program crash. Fixes: #7831
2022-01-13HTML template: load header-includes before math (#7833)Kolen Cheung
MathJax expect the config comes before loading the MathJax script. This change of order allows one to config MathJax via header-includes, which loads before the MathJax script. This potentially is a breaking change. However, the only kind math supported by pandoc that is configurable seems to be katex, and according to src/Text/Pandoc/Writers/HTML.hs the way it is configured is hard-coded (katex doesn't seem to offer MathJax style config that is independent of loading katex.) So it seems it is safe to change this order without breaking others' documents. c.f. #2750
2022-01-13When reading defaults file, stop at a line `...`.John MacFarlane
This line signals the end of a YAML document. This restores the behavior we got with HsYaml. yaml complains about content past this line. See https://github.com/jgm/pandoc/issues/4627#issuecomment-1012438765
2022-01-13Use ghc4pandoc 9.0.2 image for faster linux builds.John MacFarlane
2022-01-13Add test for #7826 notes-after-punctuation.John MacFarlane
2022-01-12Fix 'make trypandoc' target.John MacFarlane
2022-01-12Citeproc: allow `notes-after-punctuation` to work...John MacFarlane
with numerical styles that use superscripts (e.g. american-medical-association.csl), as well as with note styles. The default setting of `notes-after-punctuation` is true for note styles and false otherwise. This restores a behavior of pandoc-citeproc that wasn't properly carried over to Citeproc. Closes #7826. See also jgm/pandoc-citeproc#384.
2022-01-12Changelog formatting.John MacFarlane
2022-01-12Changelog formatting fix.John MacFarlane
2022-01-12Fix typo in changelog.John MacFarlane
2022-01-12Fix typo in changelog.John MacFarlane
2022-01-12Use ghc4pandoc 8.10.7 docker image for linux builds.2.17John MacFarlane
9.2.1 still fails without special treatment.
2022-01-12Use ghc 9.2.1 docker image for deb pkg.John MacFarlane
2022-01-12Update manual date and man page.John MacFarlane
2022-01-12Bump version to 2.17.John MacFarlane
2022-01-12Update README.md.John MacFarlane
2022-01-12Update AUTHORS.md.John MacFarlane
2022-01-12Changelog improvements.John MacFarlane
2022-01-12Add minor changelog updates.Albert Krewinkel
2022-01-12Update changelog.md (provisional).John MacFarlane
2022-01-12Use commonmark-extensions 0.2.3.John MacFarlane
2022-01-12Use ipynb 0.2.John MacFarlane
2022-01-11Use citeproc 0.6.0.1.John MacFarlane
2022-01-11Use latest texmath (0.12.4).John MacFarlane
2022-01-11Docx writer: Handle bullets correctly in lists by not reusing numIds (#7822)Michael Hoffmann
Make sure that we only create one bullet per list item in docx. In particular, when a div is a list item, its contained paragraphs will now no longer wrongly get individual bullets. This is accomplished by making sure that for each list, we only use the associated numId once. Any repeated use would add incorrect bullets to the document. Closes #7689
2022-01-10DocBook reader: Collapse internal spaces in literal...John MacFarlane
and other similar tags. This seems to accord with what the docbook toolchain does. Closes #7821.
2022-01-10HTML writer: don't break attributes values when wrapping.John MacFarlane
2022-01-10Fix regression: allow blank lines in HTML attributes.John MacFarlane
The commit 7a9832166e36f77402d5e0259647e9f5c7ba4e58 had the effect that blank lines would be collapsed in HTML attributes. We also roll back a change that collapsed multiple spaces into one.
2022-01-10Minor reformatting of cabal fileJohn MacFarlane
2022-01-10doc/jats.md: link JATSMartin Fischer
2022-01-09Docs: document `fancy_lists` in doc/org.md (#7820)Lucas Viana
Document the changes introduced in #7812
2022-01-09Update commits for dev dependencies, allow text 2.0.John MacFarlane
2022-01-09pandoc.cabal: add a test file to extra-source-files.John MacFarlane
2022-01-09make check: check for unreleased dependenciesJohn MacFarlane
2022-01-09Use dev version of citeproc.John MacFarlane
2022-01-09Add manual section on EPUB styling.John MacFarlane
2022-01-09EPUB template improvements.John MacFarlane
Include abstract in default template. Also ensure that the essential styles needed by pandoc (`styles.html` partial) are included in the templates. This is important for correct formatting of CSL bibliographies. Note that much of the styling in `styles.html` will be ignored for EPUB, because of the conditional on `document-css`, but if it is desired, you can set the `document-css` variable.
2022-01-09Improve abstract in HTML template.John MacFarlane
* Add localized title "abstract", unless `abstract-title` variable is set. * Add `abstract-title` div to abstract CSS. * Move abstract CSS out of CSL conditional. * Ensure that abstract is aligned left but indented on all sides. * Use smaller font for abstract. Improves #7588.
2022-01-09Add abstract to default html template (#7588)Jannik Buhr
2022-01-09Org reader: support alphabetical (fancy) listsLucas Viana
This adds support for alphabetical lists in org by enabling the extension Ext_fancy_lists, mimicking the behaviour of Org Mode when org-list-allow-alphabetical is enabled. Enabling Ext_fancy_lists will also make Pandoc differentiate between the delimiters of ordered lists (periods or closing parentheses). Org does this differentiation by default when exporting to some formats (e.g. plain text) but does not in others (e.g. html and latex), so I decided to copy Pandoc's markdown reader behaviour.
2022-01-08Org writer: fix list items starting with a code block...John MacFarlane
or other non-paragraph content. Closes #7810.
2022-01-08Avoid blank lines after tight sublists in org, haddock.John MacFarlane
T.P.Writers.Shared `endsWithPlain` now returns True if the list ends with a list which ends with a Plain. See #7810.