Commit graph

13039 commits

Author SHA1 Message Date
John MacFarlane
0dff9b3cd2 Fix revealjs slide structure regression with certain slide levels.
Partially addresses #6030.
2020-01-05 09:42:35 -08:00
John MacFarlane
b96febddef Added a needed pragma. 2020-01-04 10:07:26 -08:00
John MacFarlane
8ed749702f Add type annotations to assist ghci. 2020-01-04 09:55:15 -08:00
John MacFarlane
c5b6321b21 Remove unneeded import. 2020-01-04 09:47:44 -08:00
John MacFarlane
82f0b2755b HTML writer: Add newlines to make slide show output more readable. 2020-01-04 09:36:01 -08:00
John MacFarlane
f391560c1a PDF: fix runTeXProgram so that the input source is always overwritten.
Previously it wasn't overridden if the file already existed,
which led to bad results on subsequent runs when
`pdf-engine-opt=-output-directory=` was used to specify
an explicit temp dir.

Closes #6027.
2020-01-03 21:57:15 -08:00
Albert Krewinkel
4914855275
Fix test/tables.org
Editor usage mistake caused a broken reference file.
2020-01-03 08:38:58 +01:00
Albert Krewinkel
c3a00c1fdc
Org writer: remove extra spaces from table cells
Closes: #6024
2020-01-03 00:00:57 +01:00
John MacFarlane
2c1a911bc1 LaTeX writer: properly handle unnumbered headings level 4+.
Closes #6018.

Previously the `\paragraph` command was used instead of
`\paragraph*` for unnumbered level 4 headings.
2020-01-01 22:32:27 -07:00
John MacFarlane
4affd40194 BCP47: change getLang so it can handle block-level contents.
Some readers (e.g. RST) will populate the `lang` metadata field
with block-level content.  `getLang` has been modified to handle
this.  Previously in these cases the LaTeX writer would not properly
set the "main language" of the document.

Closes #6008.
2019-12-30 23:21:22 -07:00
Arfon Smith
5847624124 Update JATS dtd (#6020)
The current DTD for the JATS writer template is for Journal Publishing (JATS-journalpublishing1.dtd), which does not permit ext-link as a valid child (https://jats.nlm.nih.gov/publishing/tag-library/1.1/element/publisher-name.html).

This update modifies the default output template to be the less restrictive JATS archiving and interchange DTD which systems like PubMed use internally to represent their articles.
2019-12-30 22:18:55 -08:00
John MacFarlane
82f44592ae Fix parsing bug affected indented code after raw HTML.
Closes #6009, #5360.
2019-12-27 13:08:22 -08:00
Heiko Schlittermann
ea2c5152ec Allow framebreaks for beamer's TOC (#6012) 2019-12-27 10:58:36 -08:00
John MacFarlane
b8bd845542 Add a needed try. 2019-12-27 10:37:01 -08:00
Felix Yan
1ff732269e Use HTTPS in copyright message (#6010)
Since the website now redirect to https automatically, it would be nice to just use https in the help text.
2019-12-26 12:26:24 -08:00
John MacFarlane
5484a6349b Change date on changelog. 2019-12-22 22:59:30 -08:00
John MacFarlane
5de761482a Macos release workflow: just copy pandoc.1 rather than regenerating. 2019-12-22 22:58:53 -08:00
John MacFarlane
ef63ade26b trypandoc: add jira as input format. 2019-12-22 22:11:41 -08:00
John MacFarlane
3fcdeb2f6e Update changelog. 2019-12-22 22:09:13 -08:00
John MacFarlane
71fab252d5 Ensure that later default file values for variable replace earlier ones.
The semigroup instance for doctemplates Context does a left-biased
union on the underlying Map.  That means that if you union
`{a: 1}` and `{a: 2}`, you get `{a: 1}`.  This commit causes
pandoc to do the operation in the opposite order, so that later
default files take precedence in the values they assign to
keys.

See #5988.
2019-12-22 22:01:30 -08:00
John MacFarlane
7ba55d7405 Improve pandoc man page generation.
Use before and after includes rather than special template.
2019-12-22 21:30:01 -08:00
Albert Krewinkel
2cf89ade85 doc/lua-filters.md: replace metadata example with image centering (#6004)
Metadata defaults can be given via the command line `--metadata-file`.
Adding raw format snippets is a common use case for Lua filters, so it
seems sensible to provide an example.

Thanks to @efx for proposing this filter.

Closes: pandoc/lua-filters#70
2019-12-22 16:09:30 -08:00
John MacFarlane
8d64cb6954 Use alpine 3.10 in building linux binary.
For some reason the bulid fails with alpine 3.11,
with a linker error finding -lz.  See #6003.
It would be good to figure out how to make it work
with alpine 3.11.
2019-12-22 09:26:29 -08:00
Albert Krewinkel
2578166556
changelog: combine entries for issue #5984. 2019-12-22 09:36:28 +01:00
John MacFarlane
434a483eab Revert "linux release-candidate build: try setting LIBRARY_PATH."
This reverts commit 392c14311f.

It didn't help.
2019-12-21 20:28:50 -08:00
John MacFarlane
392c14311f linux release-candidate build: try setting LIBRARY_PATH.
For some reason ld can't find zlib in the latest build.
Maybe this will help?
2019-12-21 13:35:16 -08:00
John MacFarlane
eca39d6cf1 HTML writer: more tweaks to avoid round-trip failures...
having to do with makeSections.
2019-12-21 12:26:29 -08:00
John MacFarlane
80a0e56a5d HTML reader tests: modify round-trip tests...
to avoid a special failure case involving makeSections.
2019-12-21 12:15:35 -08:00
John MacFarlane
f8e85ca4a8 Update README.md. 2019-12-21 10:30:56 -08:00
John MacFarlane
cd03ccca58 Update man page and MANUAL date. 2019-12-21 10:30:28 -08:00
John MacFarlane
d399b1fb38 Update changelog. 2019-12-21 10:29:21 -08:00
John MacFarlane
42f0b0cdab Fix regression with --number-sections.
Starting with 2.8, `--number-sections` also had the
effect of `--section-divs`, even if `--section-divs` was
not specified.
2019-12-21 09:20:07 -08:00
Jared Lander
e77c218fbc Added glsl mime type for WebGL maps (#6000)
Added glsl mime type for WebGL maps
2019-12-20 22:01:18 -08:00
John MacFarlane
18b530d613 MANUAL: A bit clearer explanation for --base-header-level.
We now say exactly how to work around the deprecation of this
option.
2019-12-20 17:04:38 -08:00
Albert Krewinkel
2c13773be8
Jira writer: use jira-wiki-markup renderer
Pandoc's AST is translated into the Jira AST, which is then rendered by
the dedicated Jira printer.

The following improvements are included in this change:

- non-jira raw blocks are fully discarded instead of showing as blank
  lines;
- table cells can contain multiple blocks;
- unnecessary blank lines are removed from the output;
- markup chars within words are properly surrounded by braces;
- preserving soft linebreaks via `--wrap=preserve` is supported.

Note that backslashes are rendered as HTML entities, as there appears no
alternative to produce a plain backslash if it is followed by markup.
This may cause problems when used with confluence, where rendering seems
to fail in this case.

Closes: #5926
2019-12-20 17:12:46 +01:00
Albert Krewinkel
b06124e43a
Org reader: report errors properly
Errors during parsing are now returned in full and no longer replaced by
a custom message.
2019-12-19 20:39:29 +01:00
Albert Krewinkel
0a3cc7260c
Org reader: fix parsing problem for colons in headline
Fixed a problem where words surrounded by colons could causing parse
failures in some cases when they occurred in headers.

Fixes: #5993
2019-12-19 20:38:51 +01:00
Albert Krewinkel
5bd2d28b19
Org reader: wrap named table in div, using name as id
Closes: #5984
2019-12-18 22:28:26 +01:00
Albert Krewinkel
89bbfa1891
pandoc.cabal: remove redundancies in extra-source-files 2019-12-18 08:05:19 +01:00
John MacFarlane
a70e62f0ac Add Jira to list of input formats in cabal description. 2019-12-17 21:08:48 -08:00
Albert Krewinkel
96c80b156d Add jira reader (#5913)
Closes #5556
2019-12-17 21:07:46 -08:00
John MacFarlane
5029233293 Adjust test to work with Windows (I hope). 2019-12-17 14:13:05 -08:00
John MacFarlane
fedea375e1 Provisional changelog. 2019-12-17 12:19:10 -08:00
John MacFarlane
1bc20fae0d Bump to 2.9.1. 2019-12-17 12:13:09 -08:00
John MacFarlane
d0918627ca Improved --toc generation. 2019-12-17 11:59:52 -08:00
John MacFarlane
80728c8b31 PDF: Ensure UTF8 when printing source in --verbose mode.
This may fix #5997.
2019-12-17 11:59:52 -08:00
John MacFarlane
01b89d87f4 Templates: strip directory before trying to find partial in data files.
Closes #5987.
2019-12-17 11:59:52 -08:00
John MacFarlane
20cf4e47b0 Improved makeSections so we don't get doubled attributes.
Closes #5986.
2019-12-17 11:59:52 -08:00
John MacFarlane
11bab77120 HTML reader: Add "nav" to list of block-level tags. 2019-12-17 11:59:52 -08:00
John MacFarlane
b0c5ecbb1a Added test for #5986. 2019-12-17 11:59:52 -08:00