12135 Commits
Author SHA1 Message Date
John MacFarlane 9a511660ab Update manual date, man page, README.md. 2.7 2019-03-03 09:46:21 -08:00
John MacFarlane 994ca26199 cabal.project - update pandoc-citeproc version. 2019-03-03 09:16:28 -08:00
John MacFarlane 7895e2386d Update bash completion template.
Added `--ipynb-output` and `latexmk` pdf-engine.
2019-03-03 09:15:46 -08:00
John MacFarlane 70ab78e294 Use latest pandoc-citeproc. Updated cahngelog. 2019-03-02 17:49:55 -08:00
John MacFarlane e4b71bc8e4 Changelog rewording and reformatting. 2019-03-02 17:40:09 -08:00
John MacFarlane 52bea747a0 Update changelog. 2019-03-02 17:25:51 -08:00
John MacFarlane b083a3c384 JATS reader: Support fig-group block element (#5317). 2019-03-02 16:52:19 -08:00
John MacFarlane a4eaacc396 Add John KetzerX to AUTHORS 2019-03-02 16:49:40 -08:00
John MacFarlane 3eb50cc2e9 Require texmath 0.11.2.1 2019-03-02 16:29:59 -08:00
John MacFarlane 4ef0e13c47 Shared: remove withTempDir. 2019-03-02 15:12:33 -08:00
John MacFarlane 4774cf507e Bump version to 2.7. 2019-03-02 15:06:53 -08:00
John MacFarlane 0bed0ab5a3 Use XDG data directory for user data directory.
Instead of `$HOME/.pandoc`, the default user data directory is
now `$XDG_DATA_HOME/pandoc`, where `XDG_DATA_HOME` defaults to
`$HOME/.local/share` but can be overridden by setting the environment
variable.

If this directory is missing, then `$HOME/.pandoc` is searched
instead, for backwards compatibility.  However, we recommend
moving local pandoc data files from `$HOME/.pandoc` to
`$HOME/.local/share/pandoc`.

On Windows the default user data directory remains the same.

Closes #3582.
2019-03-02 15:03:59 -08:00
John MacFarlane a99423b59c Add new exported function defaultUserDataDirs 2019-03-02 15:03:51 -08:00
John MacFarlane 068fff2023 Update MANUAL on slide shows to reflect changes. 2019-03-01 21:51:29 -08:00
John MacFarlane f431f67b2f LaTeX(Beamer) writer: include contents under headers < slidelevel.
Currently we keep the fancy title slide and add a new
slide with the same title and whatever content was under the
header.

This changes behavior of slides, but is consistent with the
new behavior of the revealjs and other HTML slide show writers.

See #4317.
2019-03-01 21:47:19 -08:00
John MacFarlane 5990f14ad4 HTML writer: include content under title slides.
This facilitates real 2D revealjs slideshows, with
content under the top-level slide in each stack.
It also enables notes on title slides.

Closes #4317 and #5237.
2019-03-01 21:01:29 -08:00
John MacFarlane c26d7f1e36 LaTeX template: Add \frontmatter, \mainmatter, \backmatter for book classes.
Closes #5306.
2019-03-01 16:23:05 -08:00
John MacFarlane 9f268bce85 Rearrange --help output in a more rational way.
Closes #5336.
2019-03-01 12:11:07 -08:00
John MacFarlane 1eae1e53b3 PDF: change types of subsidiary functions to PandocIO,...
...to allow warnings to be threaded through.

Additional fix for #5343.
2019-03-01 11:20:34 -08:00
John MacFarlane 89ccbc171b Make --fail-if-warnings work for PDF output.
Closes #5343.
2019-03-01 10:57:10 -08:00
John MacFarlane 5769ce9e55 Remove license boilerplate (pandoc.hs). 2019-03-01 10:29:23 -08:00
John MacFarlane f3080c0c22 Remove license boilerplate.
The haddock module header contains essentially the
same information, so the boilerplate is redundant and
just one more thing to get out of sync.
2019-03-01 10:27:06 -08:00
Mauro Bieg 0216b68aae Markdown Reader: yamlToMeta respects extensions (#5276)
Add ReaderOptions parameter to yamlToMeta [API change].

fixes #5272
2019-02-28 22:52:15 -07:00
John MacFarlane 77faccb505 Shared: add filterIpynbOutput. [API change]
Add command line option `--ipynb-output=all|none|best`.

Closes #5339.
2019-02-28 21:50:09 -08:00
John MacFarlane 7aeabd8430 ipynb writer: only include metadata under 'jupyter' field. 2019-02-28 15:29:36 -08:00
John MacFarlane f6ebb33353 Remove spaces on empty lines in manual. 2019-02-28 15:29:04 -08:00
Agustín Martín Barbero b5d393fc61 Clarify variable substitution indentation in templates (#5338)
Add `The value of a variable will be indented to the same level as the variable.` to the MANUAL.
2019-02-28 09:45:41 -07:00
John MacFarlane 11aa5fd288 Add latexmk as an option for --pdf-engine.
Closes #3195.

Note that you can use --pdf-engine-opt=-outdir=bar to specify
a persistent temp dir.
2019-02-27 23:55:17 -08:00
John MacFarlane f152d4d53b Remove workaround for foundation, now that the bug is fixed. 2019-02-27 23:54:53 -08:00
John MacFarlane be14a95f07 Use latest skylighting.
This should fix #5328.
2019-02-27 22:14:01 -08:00
Mauro Bieg b72b395127 Translations: reorder alphabetically (#5335)
remove `Author`, closes #5334
2019-02-27 11:11:50 -07:00
Jesse Rosenthal a908129d93 Powerpoint writer: add tests for underline. 2019-02-27 09:30:50 -05:00
Jesse Rosenthal 9dfac2cf1a PowerPoint writer: add underlines
Use span with single class "underline" as in docx writer.
2019-02-27 09:21:36 -05:00
John MacFarlane ba05e1ea02 Shared.compactify: Avoid mixed lists.
This improves on the original fix to #5285 by preventing
other mixed lists (lists with a mix of Plain and Para
elements) that were allowed given the original fix.
2019-02-25 17:33:54 -08:00
John MacFarlane 38c028bd50 JATS reader: fix parsing of figures.
This ensures that a figure containing a single image
is parsed as a pandoc "implicit figure" (i.e., a
Para with a single Image whose title attribute begins
with `fig:`).  More complex figures will still be parsed
as divs.

Closes #5321.
2019-02-23 15:40:06 -07:00
John c75b558cbc Add section identifiers support for FB2 writer (#5315)
Closes #5229.
2019-02-22 00:43:43 -07:00
Jesse Rosenthal 69d433d37a Docx reader: Start adding comment to combine module
This module is one of the most opaque parts of the docx reader: it
deals with the fact that runs have non-nesting formatting, so we have
to figure out the nesting on the fly as we combine them.

We start adding commenting, so new developers can understand and, if
necessary, modify this module. Specific function comments will be
added in the future, but this offers a global description of the
purpose of the module.
2019-02-21 08:32:57 -05:00
Mauro Bieg ba065cb7f4 MANUAL: reorder custom-styles section (#5324) 2019-02-20 22:36:28 -07:00
Chris Martin 76707a6de9 Escape slashes so haddock doesn't think they're italics (#5322) 2019-02-20 22:34:19 -07:00
Jesse Rosenthal 83d2a5131d Docx reader tests: fix test file with trailing space.
This failed due to the fix of #5273.
2019-02-18 15:49:36 -05:00
Jesse Rosenthal 9a1a3fe482 Docx reader: add tests for trimming last inline. 2019-02-18 15:49:00 -05:00
Jesse Rosenthal beda70b923 Docx reader: Trim space inside the last inline.
We have to add one final mempty when we're combining in order to trim
inlines appropriately. (We need to use our own trimming routines here
due to the way that formatted inlines are smushed together when
converting from docx.)

Closes #5273
2019-02-18 15:43:54 -05:00
Alexander Krotov 596f8fd06b hlint Muse 2019-02-18 15:53:19 +03:00
Alexander Krotov c4814ea965 Muse reader: add secondary note support 2019-02-18 15:21:32 +03:00
Alexander Krotov 2c7c8a6f40 Muse writer: escape secondary notes 2019-02-18 15:21:32 +03:00
Alexander Krotov 073db7ac1f Move a comment in Muse Writer 2019-02-18 15:21:32 +03:00
Albert Krewinkel b11ad32605 doc/lua-filters.md: fixed typos in mediabag docs. 2019-02-16 12:12:42 +01:00
Albert Krewinkel 331d6224a1 T.P.Lua: split StackInstances into smaller Marshaling modules 2019-02-16 12:08:22 +01:00
Albert Krewinkel 85470c49fe T.P.Lua: get CommonState from Lua global
This allows more control over the common state from within Lua scripts.
2019-02-16 12:08:22 +01:00
John MacFarlane bc2aca3d6d ipynb writer: don't create attachments for images with absolute URIs.
...including data: URIs.

Closes #5303.
2019-02-15 22:55:17 -08:00