Commit graph

12025 commits

Author SHA1 Message Date
John MacFarlane
00cd11c6e2 Shared: withTempDir is no longer used in the codebase.
Add comment to remove it in next major release.
2019-02-02 12:36:32 -08:00
John MacFarlane
cb1ede5b08 PDF: More conservative solution to #777.
Now, instead of always creating temp dirs in the home
directory on Windows, we only do it if the system tempdir
name contains tildes.  (This will be the case for longer
usernames only.)

Closes #1192.
2019-02-02 12:35:27 -08:00
John MacFarlane
737c0a684e PDF: use system temp dir and set TEXMFOUTPUT.
Previously the temp directory was created inside the working
directory, so that programs like epstopdf.pl would be allowed
to run in restricted mode.  However, setting TEXMFOUTPUT allows
these programs to run in the tmpdir inside the system temp
directory.

This is a better solution than cd51983.  Using the system
temp dir prevents problems when pandoc is run inside a synced
directory (e.g. dropbox).

Partially addresses #1192.
2019-02-02 11:31:29 -08:00
Mauro Bieg
9225583ccf
MIME: add WebP
fixes #5267
2019-02-02 10:05:06 +01:00
John MacFarlane
a6e3f1c775 LaTeX writer: use right fold for escapeString.
This is more elegant than the explicit recursive
we were using.
2019-02-01 22:12:54 -08:00
John MacFarlane
f5ebe98773 LaTeX writer: code simplification in escaping. 2019-02-01 21:59:58 -08:00
John MacFarlane
20a0b4433f Markdown writer: use markdown="1" when appropriate for Divs.
When `native_divs` and `markdown_in_html_blocks` are disabled
but `raw_html` and `markdown_attribute` are enabled...
2019-02-01 21:49:02 -08:00
John MacFarlane
633a9ecfec LaTeX writer: avoid {} after control sequences when escaping.
`\ldots{}.` doesn't behave as well as `\ldots.` with the latex
ellipsis package.  This patch causes pandoc to avoid emitting
the `{}` when it is not necessary.  Now `\ldots` and other
control sequences used in escaping will be followed by either
a `{}`, a space, or nothing, depending on context.

Thanks to Elliott Slaughter for the suggestion.
2019-02-01 21:17:46 -08:00
Albert Krewinkel
b436087bc8
doc/lua-filters.md: fix docs for OrderedList items 2019-02-01 21:19:52 +01:00
John MacFarlane
e752669e50 LaTeX reader: don't let \egroup match {.
`braced` now actually requires nested braces.
Otherwise some legitimate command and environment
definitions can break (see test/command/tex-group.md).
2019-01-31 22:50:51 -08:00
John MacFarlane
7c424b315c Tests: avoid calling findPandoc multiple times. 2019-01-31 20:56:20 -08:00
John MacFarlane
fdf7f07f62 Old tests: remove need for temp files by using pipeProcess. 2019-01-31 17:25:36 -08:00
John MacFarlane
4e6ef53295 More improvements on lua-filters docs. 2019-01-31 10:13:36 -08:00
John MacFarlane
d7a13b4a58 linux/Dockerfile : use default -O1 instead of -O2. 2019-01-30 22:54:08 -08:00
John MacFarlane
13c1cb82b6 stack.yaml - use latest texmath. 2019-01-30 22:10:20 -08:00
John MacFarlane
7974a5d169 Update manual. 2019-01-30 22:00:54 -08:00
John MacFarlane
00c4ef2923 Update changelog. 2019-01-30 21:59:43 -08:00
Tristan Stenner
e782577eec Manual: document date-meta template variable (#5260)
In HTML based formats the `date` metadata variable is converted to ISO 8601
and available as `$date-meta`, but it's not documented at the moment.
2019-01-30 16:39:12 -08:00
John MacFarlane
51f042279c Update copyright year in version. 2019-01-30 14:45:35 -08:00
John MacFarlane
572bd4103c Use lts-13 in makefile 2019-01-30 14:38:35 -08:00
John MacFarlane
18a9c7c0e0 Update stack.yaml to use lts-13. 2019-01-30 14:38:35 -08:00
Albert Krewinkel
7b7db934a8
doc/lua-filters.md: use 3rd level headers for module fields 2019-01-30 21:41:40 +01:00
John MacFarlane
dea292aace Update changelog. 2019-01-30 11:44:47 -08:00
leungbk
ac83b9c37c Org reader: add support for #+SELECT_TAGS. 2019-01-30 18:27:38 +01:00
leungbk
dc43174573 Org reader: separate filtering logic from conversion function. 2019-01-30 18:27:38 +01:00
John MacFarlane
c9454a4176 Add cpp to avoid warning. 2019-01-28 16:50:47 -08:00
John MacFarlane
2932ac8574 Add isPrefixOf to imports. 2019-01-27 12:27:24 -08:00
Agustín Martín Barbero
9894d05fe3 Improve writing metadata for docx, pptx and odt (#5252)
* docx writer: support custom properties.  Solves the writer part of #3024.
  Also supports additional core properties:  `subject`, `lang`, `category`,
  `description`.

* odt writer: improve standard properties, including the following core properties:
  `generator` (Pandoc/VERSION), `description`, `subject`, `keywords`,
  `initial-creator` (from authors), `creation-date` (actual creation date).
  Also fix date.

* pptx writer: support custom properties.  Also supports additional core
  properties: `subject`, `category`, `description`.

* Includes golden tests.

* MANUAL: document metadata support for docx, odt, pptx writers
2019-01-26 16:14:35 -08:00
John MacFarlane
ff0aaa549d Normalize Windows paths to account for change in ghc 8.6.
When pandoc is compiled with ghc 8.6, Windows paths are treated
differently, and paths beginning `\\server` no longer work.
This commit rewrites such patsh to `\\?\UNC\server` which works.

The change operates at the level of argument parsing, so it
only affects the command line program.

See #5127 and the discussion there.
2019-01-26 16:07:39 -08:00
John MacFarlane
446583e322 Texinfo writer: use header identifier for anchor if present.
Previously we were overwriting an existing identifier
with a new one.  Closes #4731.
2019-01-25 17:11:28 -08:00
John MacFarlane
a5ac58f82f MediaWiki reader: use _ instead of - in auto-identifiers.
Partially addresses #4731.
We may not still be exactly matching mediawiki's algorithm
for identifiers.
2019-01-25 17:10:49 -08:00
John MacFarlane
2e7cfe1bba LaTeX writer: add # special characeters for listings.
This character needs special handling in lstinline.
Closes #4939.
2019-01-25 16:49:31 -08:00
John MacFarlane
7ccaa77797 LaTeX template: Set default listings language for lua, assembler.
Otherwise we get an error when trying to compile code
with lua or assembler code.

To change the default dialect (currenty 5.3 for lua
and x86masm for assembler), you can use `--include-in-header`
to inject something like

    \lstset{defaultdialect=[5.2]Lua}

Closes #5227.
2019-01-25 16:22:56 -08:00
John MacFarlane
7012782b79 Update ipynb example in manual. 2019-01-25 16:12:45 -08:00
John MacFarlane
7444427609 Revert "CircleCI - use -O0 only for cabal-v2 builds."
This reverts commit 062a8fb10b.
2019-01-25 10:08:05 -08:00
John MacFarlane
5ccba09550 Revert "CircleCI - store artifact from stack build."
This reverts commit ecccb69ec7.
2019-01-25 10:07:44 -08:00
John MacFarlane
32119ce04c Revert "circleci - use .gz for build artifact."
This reverts commit f28d39efae.
2019-01-25 10:07:35 -08:00
John MacFarlane
f28d39efae circleci - use .gz for build artifact. 2019-01-25 09:43:09 -08:00
John MacFarlane
ecccb69ec7 CircleCI - store artifact from stack build. 2019-01-25 09:24:29 -08:00
John MacFarlane
062a8fb10b CircleCI - use -O0 only for cabal-v2 builds.
Stack build will not disable optimizations; this way we
can create a nightly.
2019-01-25 09:11:23 -08:00
John MacFarlane
c32bcaa2d3 Remove travis.yml. 2019-01-25 09:11:05 -08:00
John MacFarlane
bfa1bf9302 Regenerated README.md with CircleCI badge instead of travis. 2019-01-25 08:41:39 -08:00
John MacFarlane
ed78d44615 Tweaked circleci. 2019-01-25 08:17:59 -08:00
John MacFarlane
aec7afa24a Fix cabal.project. 2019-01-25 08:11:24 -08:00
John MacFarlane
4c958f1589 Add some ghc options in circleci config. 2019-01-25 07:31:22 -08:00
John MacFarlane
511cc2563a CircleCI: Set workflow version to 2.1. 2019-01-25 07:15:16 -08:00
John MacFarlane
cbd8662b63 Add .circleci config. 2019-01-25 07:00:28 -08:00
John MacFarlane
1c8097136b Update pandoc-citeproc commit in stack.yaml. 2019-01-25 06:58:28 -08:00
John MacFarlane
975d8efb3b cabal.project - set flag defaults, revise pandoc-citeproc commit. 2019-01-25 06:56:08 -08:00
John MacFarlane
2f54470266 Ipynb: Put all jupyter metadata under 'jupyter' key. 2019-01-24 16:51:56 -08:00