aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2021-01-22Update README and man page.John MacFarlane3-28/+73
2021-01-22Update changelog.John MacFarlane1-0/+149
2021-01-22ImageSize: use viewBox for svg if no length, width.John MacFarlane2-18/+20
This change allows pandoc to extract size information from more SVGs. Closes #7045.
2021-01-22Use citeproc 0.3.0.5.John MacFarlane2-2/+2
2021-01-22Merge pull request #7042 from tarleb/jats-element-citationsJohn MacFarlane8-25/+367
JATS writer: use element citations
2021-01-22JATS writer: allow to use element-citationAlbert Krewinkel7-7/+346
2021-01-22Add biblatex, bibtex as output formats (closes #7040).John MacFarlane6-6/+312
* `biblatex` and `bibtex` are now supported as output as well as input formats. * New module Text.Pandoc.Writers.BibTeX, exporting writeBibTeX and writeBibLaTeX. [API change] * New unexported function `writeBibtexString` in Text.Pandoc.Citeproc.BibTeX.
2021-01-21Text.Pandoc.Citeproc: use finer grained importsAlbert Krewinkel1-18/+21
This allows to import the module in writers without causing a circular dependency.
2021-01-19JATS writer: Ensure that disp-quote is always wrapped in p.John MacFarlane4-97/+131
Closes #7041.
2021-01-18RST writer: fix #7039.John MacFarlane1-2/+2
We were losing content from inside spans with a class, due to logic that is meant to avoid nested inline structures that can't be represented in RST. The logic was a bit stricter than necessary. This commit fixes the issue.
2021-01-16Revert "Markdown reader: support GitHub wiki's internal links (#2923) (#6458)"John MacFarlane3-58/+0
This reverts commit 6efd3460a776620fdb93812daa4f6831e6c332ce. Since this extension is designed to be used with GitHub markdown (gfm), we need to implement the parser as a commonmark extension (commonmark-extensions), rather than in pandoc's markdown reader. When that is done, we can add it here.
2021-01-16Markdown reader: support GitHub wiki's internal links (#2923) (#6458)Gautier DI FOLCO3-0/+58
Canges overview: * Add a `Ext_markdown_github_wikilink` constructor to `Extension` [API change]. * Add the parser `githubWikiLink` in `Text.Pandoc.Readers.Markdown` * Add tests.
2021-01-16Recognize more extensions as markdown by default.John MacFarlane1-0/+5
`mkdn`, `mkd`, `mdwn`, `mdown`, `Rmd`. Closes #7034.
2021-01-15Improve .gitignore.John MacFarlane1-0/+5
2021-01-15Use citeproc >= 0.3.0.4.John MacFarlane3-9/+9
2021-01-15Use dev version of citeproc.John MacFarlane3-15/+17
Change a citation test which had wrong disambiguation (see jgm/citeproc#44).
2021-01-13Use simple default.nix.John MacFarlane2-7/+14
Remove nix makefile targets.
2021-01-12Use project.nix instead of default.nix for generated file.John MacFarlane2-3/+3
2021-01-12Delete default.nix.John MacFarlane2-56/+1
It is generated and shouldn't be in repository.
2021-01-12CONTRIBUTING: note on GNU xargsJohn MacFarlane1-0/+3
2021-01-12Gitignore: add .DS_Store, .origJohn MacFarlane1-0/+2
2021-01-12Add files for using nix-shell.John MacFarlane3-1/+66
'make nix-shell' enters a nix shell with pandoc dependencies installed.
2021-01-12Markdown writer: cleaned up raw formats.John MacFarlane1-34/+35
We now react appropriately to gfm, commonmark, and commonmark_x as raw formats.
2021-01-12Docx writer: handle table header using styles.John MacFarlane34-17/+35
Instead of hard-coding the border and header cell vertical alignment, we now let this be determined by the Table style, making use of Word's "conditional formatting" for the table's first row. For headerless tables, we use the tblLook element to tell Word not to apply conditional first-row formatting. Closes #7008.
2021-01-11Use commonmark 0.1.1.3.John MacFarlane2-2/+2
2021-01-11MANUAL.txt: update description of `-L`/`--lua-filter`.Albert Krewinkel1-18/+10
The example filter was outdated, a reference to the separate Lua filters documentation is added instead.
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