Commit graph

13567 commits

Author SHA1 Message Date
Albert Krewinkel
e3a6d651e1
Org reader: update behavior of author, keywords export settings
The behavior of the `#+AUTHOR` and `#+KEYWORD` export settings has
changed: Org now allows multiple such lines and adds a space between the
contents of each line. Pandoc now always parses these settings as meta
inlines; setting values are no longer treated as comma-separated lists.
Note that a Lua filter can be used to restore the previous behavior.
2020-06-28 18:01:30 +02:00
Albert Krewinkel
54f6faa10f
Org reader: refactor export setting handling 2020-06-28 15:41:56 +02:00
Albert Krewinkel
cd3941d34e
doc/org.md: describe all supported export options in detail 2020-06-27 10:10:16 +02:00
Albert Krewinkel
8dce28d949
Org reader: read description lines as inlines
`#+DESCRIPTION` lines are treated as text with markup. If multiple such
lines are given, then all lines are read and separated by soft
linebreaks.

Closes: #6485
2020-06-27 09:11:00 +02:00
Albert Krewinkel
9e6e9a7221
Org reader: honor tex export option
The `tex` export option can be set with `#+OPTION: tex:nil` and allows
three settings:

 - `t` causes LaTeX fragments to be parsed as TeX or added as raw TeX,
 - `nil` removes all LaTeX fragments from the document, and
 - `verbatim` treats LaTeX as text.

The default is `t`.

Closes: #4070
2020-06-25 20:31:33 +02:00
John MacFarlane
f1c678a97e re-add pandoc-citeproc to cabal.project. 2020-06-24 09:43:47 -07:00
John MacFarlane
52ac585967 Remove redundant pattern match in pptx writer. 2020-06-23 13:04:42 -07:00
John MacFarlane
9b7282bb0f LaTeX reader: Retain the Div around tables with attributes.
We'll need this to store table attributes until all writers
are adjusted to react to attributes on the Table element.
2020-06-23 11:12:40 -07:00
John MacFarlane
3b25511e47 Use released pandoc-citeproc. 2020-06-23 10:44:22 -07:00
Albert Krewinkel
b837f17b84
Cleanup changelog entries for jira, Lua (#6479)
Shorten changelog by combining related entries; remove entry Lua
regression, it affected only in the development version.
2020-06-23 08:33:32 -07:00
John MacFarlane
90b2c5a5e4 Add test for #6481. 2020-06-23 08:27:19 -07:00
John MacFarlane
ee782ccfec Markdown reader: Don't require blank line after grid table.
This fixes #6481, allowing grid tables to be enclosed
in fenced divs with no intervening blank lines.
2020-06-23 08:24:45 -07:00
Albert Krewinkel
97ad96437c
CI: fix typo in GitHub CI workflow config
Switch `ignore-paths` with `paths-ignore`.
2020-06-23 15:36:46 +02:00
John MacFarlane
9672ff8271 Update changelog, AUTHORS.md. 2020-06-22 22:06:18 -07:00
John MacFarlane
7f8105159c Handle native Underline in Powerpoint writer.
(Instead of old Span with underline class.
Spans with `underline` will no longer be rendered
as underlined text.)
2020-06-22 17:56:28 -07:00
John MacFarlane
b1561d8e47 Use native Underline instead of Span in Jira 2020-06-22 17:55:57 -07:00
John MacFarlane
25326986db Update AUTHORS 2020-06-22 17:54:40 -07:00
John MacFarlane
6716d1c702 Bump version to 2.10. Update tested-with.
We need a major version bump because of the new pandoc-types.
2020-06-22 16:59:20 -07:00
John MacFarlane
c5c8bc96a1 Use released pandoc-types 1.21. 2020-06-22 16:39:04 -07:00
John MacFarlane
76fc51f2ba Use --enable-local-file-access in invoking wkhtmltopdf.
wkhtmltopdf changed in recent versions to require this for
access to local files.

This fixes PDF via HTML5 with `--css`.

Closes #6474.
2020-06-22 16:33:20 -07:00
Albert Krewinkel
064303e2c9
Jira writer: always escape braces
Braces are now always escaped, even within words or when surrounded by
whitespace. Jira and Confluence treat braces specially.

Package jira-wiki-markup must be version 1.3.2 or later.

Fixes: #6478
2020-06-22 16:30:11 +02:00
Mauro Bieg
f91121fe56
MANUAL: clarify partial naming (#6476) 2020-06-21 10:29:55 -07:00
Albert Krewinkel
f5d7d41cbd
Recognize images with uppercase extensions
Fixes: #6472
2020-06-20 18:14:18 +02:00
Albert Krewinkel
b907d25fe4
CI: use GitHub workflow command to set system path
This way, the PATH environment variable does not have to be set
repeatedly in each step.
2020-06-20 09:12:51 +02:00
John MacFarlane
112e98def6 Use latest skylighting. 2020-06-19 15:31:31 -07:00
John MacFarlane
9d0506e404 LaTeX writer: escape ^ specially for listings.
Closes #6460.
2020-06-17 10:12:55 -07:00
John MacFarlane
a8b3117e04 RST reader: pass arbitrary attributes through in code blocks.
Exceptions: name (which becomes the id), class (which becomes the
classes), and number-lines (which is treated specially to fit
with pandoc highlighting).

Closes #6465.
2020-06-17 09:57:56 -07:00
Michael Reed
bf95282436
Fix MIME type for TrueType fonts in EPUBs (#6464)
Per the EPUB 3.2 spec, "application/x-font-truetype" is no longer a
valid identifier for TrueType (.ttf) fonts [1]. This fixes warnings when
validating pandoc-generated EPUBs using `epubcheck` [2].

References [3].

[1]: https://www.w3.org/publishing/epub3/epub-spec.html#sec-core-media-types
[2]: https://github.com/w3c/epubcheck
2020-06-17 09:15:50 -07:00
Albert Krewinkel
a6a7f08a2b
MANUAL: describe jira as "Jira/Confluence wiki markup"
In the past, Jira's wiki markup was also used by – and could be imported
into – Atlassian Confluence.

Closes: #6351
2020-06-15 21:16:35 +02:00
Laurent P. René de Cotret
e8f532780b
Remove unused dependency vector (#6462) 2020-06-15 10:03:41 -07:00
John MacFarlane
2d9d779fbe linux CI: use ppa to install older ghc/cabal versions. 2020-06-15 10:02:31 -07:00
John MacFarlane
aa9bcce4f9 Bump jira-wiki-markup in stack.yaml. 2020-06-14 23:38:41 -07:00
John MacFarlane
368360e005 Linux CI: use cabal 3.2 for everything.
The ubuntu images no longer contain older cabal versions, it
semes.
2020-06-14 23:37:21 -07:00
John MacFarlane
43787143d2 CI: use ubuntu-18.04 instead of 20.04. 2020-06-14 16:45:01 -07:00
John MacFarlane
c449788440 CI: use cabal 3.2, also specify OS versions instead of 'latest.' 2020-06-14 16:41:12 -07:00
Mathieu Boespflug
bbf04df900
Docbook reader: implement <procedure> (#6442)
A `<procedure>` contains a sequence of `<step>`'s, or `<substeps>`
that themselves contain `<step>`'s.
2020-06-14 10:45:52 -07:00
Mathieu Boespflug
89bbe76ace
Docbook reader: implement <phrase> (#6438)
A `<phrase>` has no semantic meaning. It is only useful to hang an
`id` or other attributes around a piece of text.
2020-06-14 10:45:19 -07:00
Mathieu Boespflug
390bd51fdc
Docbook reader: treat envar and systemitem like code (#6435) 2020-06-14 10:44:22 -07:00
Mathieu Boespflug
e321843f32
Docbook: implement <replaceable> (#6437)
A `<replaceable>` is a placeholder that a user is instructed to
replace with a value of their own, like
`<replaceable>prefix</replacable>/bin/foo`. In the standard Docbook
toolchain, this typically appears emphasized, and no other adornement.
But a `<replaceable>` is nearly always in a code element, where
emphasis won't work. So we do the same thing as for `<optional>`:
decorate the content with brackets.
2020-06-14 10:43:53 -07:00
Mathieu Boespflug
12a35dd0d0
Docbook: map <simplesect> to unnumbered section (#6436)
A <simplesect> is a section like any other, except that it never
contains an subsection, and is typically rendered unnumbered.
2020-06-14 10:40:00 -07:00
Frederik Elwert
7716caaf2a
Make polyglossia package options list-aware in the LaTeX template. (#6444) 2020-06-14 10:38:02 -07:00
John MacFarlane
f699d64a1a Switch CI to use ghc 8.8.3.
This should fix CI failures.
2020-06-14 10:06:21 -07:00
dbecher-ito
a0559d952b
Distinguish between single and double quotes when using enquote package (#6457) 2020-06-14 10:02:17 -07:00
Albert Krewinkel
16889a01b9
Jira reader: require jira-wiki-markup 1.3.1 or later
This solves the following problems of the Jira reader:

 * Two consecutive markup chars are now parsed verbatim; styled text
   must not be empty.
 * Styled text may not contain newlines.
 * Links to anchors are now parsed as links.

Fixes: #6343
Fixes: #6325
Fixes: #6407
2020-06-14 11:46:59 +02:00
John MacFarlane
eacd17c867 nightly: add ls statements to diagnose linux build failure. 2020-06-13 11:43:49 -07:00
John MacFarlane
fa6ffcaf02 Textile reader: support "pre." for code blocks.
Cloess #6454.
2020-06-13 10:59:02 -07:00
John MacFarlane
de4fb05dcc Ipynb reader: handle application/pdf output as image.
Closes #6430.
2020-06-09 09:47:26 -07:00
John MacFarlane
8d07940828 Ipynb reader: properly handle image/svg+xml as an image.
Partially addresses #6430.
2020-06-09 09:41:34 -07:00
Mo
a71278b83e
doc: fix FreeBSD port link (#6422)
The FreeBSD port was renamed from pandoc to hs-pandoc in 2010.
The old pandoc port is still at version 1.5.1.1
2020-06-07 17:34:14 -07:00
Mathieu Boespflug
9d076ed7ea
Make it possible to compile using Stack on NixOS (#6439)
On NixOS, it is necessary to compile with `stack --nix`. It is
furthermore necessary to provide zlib headers when `--nix` is enabled.
2020-06-07 17:32:16 -07:00