aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2021-01-29Markdown writer: handle math right before digit.John MacFarlane2-1/+11
We insert an HTML comment to avoid a `$` right before a digit, which pandoc will not recognize as a math delimiter.
2021-01-29JATS templates: tag author.name as string-nameAlbert Krewinkel3-0/+9
The partitioning the components of a name into surname, given names, etc. is not always possible or not available. Using `author.name` allows to give the full name as a fallback to be used when `author.surname` is not available.
2021-01-29JATS writer: escape special chars in reference elements.Albert Krewinkel1-3/+6
Prevents the generation of invalid markup if a citation element contains an ampersand or another character with a special meaning in XML.
2021-01-27Improve docs for cite-method.John MacFarlane1-1/+4
2021-01-26Clean up BibTeX parsing.John MacFarlane4-37/+25
Previously there was a messy code path that gave strange results in some cases, not passing through raw tex but trying to extract a string content. This was an artefact of trying to handle some special bibtex-specific commands in the BibTeX reader. Now we just handle these in the LaTeX reader and simplify parsing in the BibTeX reader. This does mean that more raw tex will be passed through (and currently this is not sensitive to the `raw_tex` extension; this should be fixed). Closes #7049.
2021-01-26LaTeX writer: change BCP47 lang tag from jp to jaMauro Bieg1-1/+1
fixes #7047
2021-01-26Lua: always load built-in Lua scripts from default data-dirAlbert Krewinkel4-46/+44
The Lua modules `pandoc` and `pandoc.List` are now always loaded from the system's default data directory. Loading from a different directory by overriding the default path, e.g. via `--data-dir`, is no longer supported to avoid unexpected behavior and to address security concerns.
2021-01-23Update AUTHORS.md.John MacFarlane1-0/+2
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.