aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2021-01-10JATS writer: fix citations (#7018)Albert Krewinkel6-241/+72
* JATS writer: keep code lines at 80 chars or below * JATS writer: fix citations
2021-01-10Update default CSL to use latest chicago-author-date.csl.John MacFarlane1-2/+12
2021-01-10Fix infinite HTTP requests when writing epubs from URL source.John MacFarlane1-5/+9
Due to a bug in code added to avoid overwriting the cover image if it had the form `fileX.YYY`, pandoc made an endless sequence of HTTP requests when writing epub with input from a URL. Closes #7013.
2021-01-10T.P.Citeproc: factor out and export `getStyle`.John MacFarlane1-45/+55
2021-01-10T.P.Citeproc: factor out getLang.John MacFarlane1-8/+15
2021-01-10Bump to 2.11.4.John MacFarlane1-1/+1
API change: export getReferences from T.P.Citeproc.
2021-01-10T.P.Citeproc: refactor and export `getReferences`.John MacFarlane1-28/+51
See #7016.
2021-01-09Org reader: allow multiple pipe chars in todo sequencesAlbert Krewinkel2-4/+20
Additional pipe chars, used to separate "action" state from "no further action" states, are ignored. E.g., for the following sequence, both `DONE` and `FINISHED` are states with no further action required. #+TODO: UNFINISHED | DONE | FINISHED Previously, parsing of the todo sequence failed if multiple pipe chars were included. Closes: #7014
2021-01-08Update copyright notices for 2021 (#7012)Albert Krewinkel175-200/+200
2021-01-07gfm/commonmark writer: implement start number on ordered lists.John MacFarlane2-1/+12
Previously they always started at 1, but according to the spec the start number is respected. Closes #7009.
2021-01-07T.P.Parsing: modify gridTableWith' for headerless tables.John MacFarlane6-84/+22
If the table lacks a header, the header row should be an empty list. Previously we got a list of empty cells, which caused an empty header to be emitted instead of no header. In LaTeX/PDF output that meant we got a double top line with space between. @tarleb @despres - please let me know if this is problematic for some reason I'm not grasping.
2021-01-06Remove `\setupthinrules` from default context template.John MacFarlane3-6/+0
The width parameter this used is not actually supported, and the command didn't do anything.
2021-01-05HTML writer: fix implicit_figure at end of footnotes.John MacFarlane2-3/+27
Closes #7006.
2021-01-05Implement defaults file inheritance (#6924)David Martschenko14-33/+189
Allow defaults files to inherit options from other defaults files by specifying them with the following syntax: `defaults: [list of defaults files or single defaults file]`.
2021-01-04LaTeX reader: handle filecontents environment.John MacFarlane3-6/+65
Closes #7003.
2021-01-04EPUB writer: adjust internal links to identifiers...John MacFarlane1-0/+20
defined in raw HTML sections after splitting into chapters. Closes #7000.
2021-01-03EPUB writer: recognize `Format "html4"`, `Format "html5"` as raw HTML.John MacFarlane1-2/+8
2021-01-03EPUB writer: adjust internal links to images, links, and tables...John MacFarlane1-0/+6
after splitting into chapters. Previously we only did this for Div and Span and Header elements. See #7000.
2021-01-03Org reader: mark verbatim code with class "verbatim". (#6998)Dimitri Sabadie2-3/+3
* Replace org-mode’s verbatim from code to codeWith. This adds the `"verbatim"` class so that exporters can apply a specific style on it. For instance, it will be possible for HTML to add a CSS rule for code + verbatim class. * Alter test for org-mode’s verbatim change. See previous commit for further detail on the new implementation.
2021-01-02LaTeX reader: put contents of unknown environments in a Div...John MacFarlane1-1/+1
when `raw_tex` is not enabled. (When `raw_tex` is enabled, the whole environment is parsed as a raw block.) The class name is the name of the environment. Previously, we just included the contents without the surrounding Div, but having a record of the environment's boundaries and name can be useful. Closes #6997.
2021-01-02LaTeX writer: revert table line height increase in 2.11.3.John MacFarlane7-80/+63
In 2.11.3 we started adding `\addlinespace`, which produced less dense tables. This wasn't an intentional change; I misunderstood a comment in the discussion leading up to the change. This commit restores the earlier default table appearance. Note that if you want a less dense table, you can use something like `\def\arraystretch{1.5}` in your header. Closes #6996.
2021-01-01Org reader: restructure output of captioned code blocksAlbert Krewinkel2-17/+15
The Div wrapper of code blocks with captions now has the class "captioned-content". The caption itself is added as a Plain block inside a Div of class "caption". This makes it easier to write filters which match on captioned code blocks. Existing filters will need to be updated. Closes: #6977
2020-12-30Mediawiki reader: allow space around storng/emph delimiters.John MacFarlane2-6/+25
Closes #6993.
2020-12-30Undo the "Use fromRight" hlint hint.John MacFarlane2-2/+5
2020-12-30Hlint fixesJohn MacFarlane2-2/+3
2020-12-30Update ms table tests.John MacFarlane1-0/+14
2020-12-30Ms writer: don't justify inside table cells.John MacFarlane1-1/+3
2020-12-30MANUAL: Document use of citations in note styles.John MacFarlane1-0/+28
See #6828.
2020-12-29CircleCI: fix stack installation.John MacFarlane1-1/+1
homebrew no longer has a bottle for haskell-stack for the old macOS version we're building on.
2020-12-29Bump to 2.11.3.2, update changelog and man pageJohn MacFarlane5-6/+64
2020-12-29Use citeproc 0.3.0.3.John MacFarlane2-2/+2
Fixes an issue in author-only citations when both an author and translator are present.
2020-12-29Improve fix to #6983.John MacFarlane1-1/+3
If we have a paragraph then a bookmarkEnd, we don't need to insert the empty paragraph (and in fact it alters the spacing). Closes #6983.
2020-12-28Docx writer: fix nested tables with captions.John MacFarlane1-4/+6
Previously we got unreadable content, because docx seems to want a `<w:p>` element (even an empty one) at the end of every table cell. Closes #6983.
2020-12-28Update test for new citeproc and require it in cabal.John MacFarlane2-2/+2
2020-12-28Use latest citeproc release.John MacFarlane1-1/+1
2020-12-28HTML reader: use renderTags' from Text.Pandoc.Shared.Albert Krewinkel1-25/+3
The `renderTags'` function was duplicated when the reader used `Text` as its string type. The duplication is no longer necessary. A side effect of this change is that empty `<col>` elements are written as self-closing tags in raw HTML blocks.
2020-12-28MANUAL: note that textarea content is never parsed as Markdown.Albert Krewinkel1-2/+2
2020-12-27Use meta-description instead of description in templates.John MacFarlane3-4/+7
Since this is an attribute value, we need to prepare it in the writer.
2020-12-27templates: added the `description` metatag to both html4 and html5 templates ↵Jerry Sky2-0/+6
(#6982) The `description` meta tag will make the generated HTML documents more complete and SEO-friendly.
2020-12-27Require texmath 0.12.1.John MacFarlane3-5/+2
2020-12-27Add support for writing nested tables to asciidoc (#6972)timo-a2-7/+114
Added field to WriterState that denotes the current nesting level for traversing tables. Depending on the value of that field nested tables are recognized and written. Asciidoc supports one level of nesting. If deeper tables are to be written, they are omitted and a warning is issued.
2020-12-27Powerpoint writer: allow arbitrary OOXML in raw inline elementsAlbert Krewinkel2-23/+28
The raw text is now included verbatim in the output. Previously is was parsed into XML elements, which prevented the inclusion of partial XML snippets.
2020-12-24Citeproc: fix handling of empty URL variables (`DOI`, etc.).John MacFarlane1-1/+3
The `linkifyVariables` function was changing these to links which then got treated as non-empty by citeproc, leading to wrong results (e.g. ignoring nonempty URL when empty DOI is present). Addresses part 2 of jgm/citeproc#41.
2020-12-20HTML writer: don't include p tags in CSL bibliography entries.John MacFarlane1-2/+7
Fixes a regression in 2.11.3. Closes #6966
2020-12-20LaTeX writer: support colspans and rowspans in tables. (#6950)Albert Krewinkel10-97/+326
Note that the multirow package is needed for rowspans. It is included in the latex template under a variable, so that it won't be used unless needed for a table.
2020-12-20Fixed table with file extensions and interpreterswuffi1-1/+2
Assigned .pl file extension to perl interpreter and .rb to ruby
2020-12-18Bump to 2.11.3.1 and update changelog and man page.John MacFarlane3-2/+15
2020-12-18Use citeproc 0.3.0.1.John MacFarlane2-2/+2
2020-12-18Remove data/templates/README.markdown.John MacFarlane1-49/+0
2020-12-18New advice for pre-commit filter.John MacFarlane1-1/+2
Without `--diff-filter=MA` it will try to lint deletions, and fail because the file is not present.