Commit Graph
6818 Commits
Author SHA1 Message Date
Albert Krewinkel d17b257c89 Org reader: allow multiple #+SUBTITLE export settings
The values of all lines are read as inlines and collected in the
`subtitle` metadata field.
2020-06-29 17:03:33 +02:00
Nikolay Yakimov 11dc9f84f5 Remove obsolete RelaxedPolyRec extension (#6487) 2020-06-28 22:35:33 -07:00
John MacFarlane 8a1690dec1 PDF: all verbose output now goes to stderr, not stdout.
Closes #6483.
2020-06-28 12:11:23 -07:00
Albert Krewinkel 19175af811 JATS reader: parse abstract element into metadata field of same name (#6482)
Closes: #6480
2020-06-28 10:35:50 -07:00
Albert Krewinkel d2d5eb8a99 Org reader: read #+INSTITUTE values as text with markup
The value is stored in the `institute` metadata field and used in the
default beamer presentation template.
2020-06-28 19:25:57 +02:00
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 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 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 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
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 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 f5d7d41cbd Recognize images with uppercase extensions
Fixes: #6472
2020-06-20 18:14:18 +02: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
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
dbecher-ito a0559d952b Distinguish between single and double quotes when using enquote package (#6457) 2020-06-14 10:02:17 -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
John MacFarlane 7c6dbd37eb Change default revealjs-url to use CDN version of revealjs v4.
See #6408.
2020-05-30 12:10:27 -07:00
Lucas Escot de0df52998 Fixed Katex standalone script (#6399)
Global macros are now persistent when using the HTML Writer with the --katex
option.
2020-05-28 11:31:23 -07:00
John MacFarlane 4b5d2aa485 FB2 writer: properly handle cover-image containing spaces.
Closes #6391.
2020-05-21 14:08:08 -07:00
John MacFarlane f6dfacf9d6 Add "summary" to list of block-level HTML tags.
Closes #6385.  (The summary element needs to be the first
child of details and should not be enclosed by p tags.)

NOTE:  you need to include a blank line before the closing
`</details>`, if you want the last part of the content to
be parsed as a paragraph.
2020-05-20 07:45:14 -07:00
John MacFarlane 311d4c9dfc LaTeX reader: don't parse beyond \end{document}.
This required some internal changes to `\subfile` handling.

Closes #6380.
2020-05-19 15:17:00 -07:00
Lila f4185fcef0 Use CSS in favor of <br> for display math (#6372)
Some CSS to ensure that display math is
displayed centered and on a new line is now included
in the default HTML-based templates; this may be
overridden if the user wants a different behavior.
2020-05-18 22:45:44 -07:00
Albert Krewinkel 1d3a3a027a Org writer: clean-up Div handling 2020-05-17 21:55:11 +02:00
John MacFarlane 5a20cc07dd Docx writer: enable column and row bands for tables.
This change will not have any effect with the default style.
However, it enables users to use a style (via a reference.docx)
that turns on row and/or column bands.

Closes #6371.
2020-05-16 15:50:59 -07:00
John MacFarlane bde3d7622d OpenDocument writer: add custom-style "Abstract" in metadata abstract.
This ensures that the abstract is rendered with style Abstract.
2020-05-16 14:39:20 -07:00
John MacFarlane a2ce28fa4d OpenDocument/ODT writer: enable custom-style attribute on a Div.
This allows you to apply a custom style to contained paragraphs.
2020-05-16 14:37:33 -07:00
John MacFarlane 6082e73927 DocBook writer: add id of figure to enclosed image. 2020-05-14 21:23:47 -07:00
John MacFarlane 8c026d5ec0 Fix underline in RTF writer.
It should be `\ul` not `\pnul`.
2020-05-14 09:44:44 -07:00
John MacFarlane be9e93d4ae LaTeX writer: create hypertarget for links with identifier.
Closes #6360.
2020-05-12 14:37:07 -07:00
Albert Krewinkel 9c76c52e9b Lua: fix regression in package searcher
This caused `require 'module'` to fail for third party packages.

Fixes: #6361
2020-05-12 17:10:30 +02:00
John MacFarlane 8fc57664f8 Implement implicit_figures extension for commonmark reader.
Closes #6350.
2020-05-08 07:56:54 -07:00
John MacFarlane 83880b0dbc Shared.makeSections: omit number attribute when unnumbered class...
...is present.  Previously the attribute was included but given
an empty value, and this caused the table of contents creation
functions in T.P.Writers.Shared to think these items had numbers,
which meant that they were included in the TOC even if the `unlisted`
class was used.

Closes #6339.
2020-05-05 14:31:48 -07:00
Joseph C. Sible 6fad52b057 Avoid unnecessary guard (#6340) 2020-05-05 08:46:35 -07:00
John MacFarlane 680793803a Fix mediawiki reader with gfm_auto_identifiers.
Previously the `-` was being replaced by `_`.
Closes #6335.
2020-05-04 09:20:27 -07:00
andrebauer 97fe2ea16c LaTeX Writer: Add support for customizable alignment of columns in beamer (#6331)
Add support for customizable alignment of columns in beamer.
Closes #4805, closes #4150.
2020-05-02 17:08:16 -07:00
Albert Krewinkel 0fafe9dd32 Lua filters: improve error messages for failing filters (#6332)
Print the Lua error properly instead of displaying their `show` string.
2020-05-02 16:12:42 -07:00
Jesse Rosenthal 9e7572da1f PowerPoint writer: write math input verbatim in speaker notes.
OMML in speaker notes would lead to corrupt PowerPoint output. We now
output the OMML verbatim as LaTeX in the speaker notes.

Closes #6301.
2020-04-30 10:12:52 -04:00
Vaibhav Sagar 9c2b659eeb Support new Underline element in readers and writers (#6277)
Deprecate `underlineSpan` in Shared in favor of `Text.Pandoc.Builder.underline`.
2020-04-28 07:53:06 -07:00