Commit Graph
12491 Commits
Author SHA1 Message Date
Leif Metcalf e53c952997 Remove blank line (#5679) 2019-08-08 16:02:14 -07:00
John MacFarlane 6dd689ad97 Revert "Avoid a pointless Text -> String conversion on output."
This reverts commit 87ce1ffbd9.

This change caused a problem on Windows that we didn't have
before; this needs looking into.

https://ci.appveyor.com/project/jgm/pandoc/build/job/fxq96log042df8dk

    .\pandoc.exe -s --toc ..\MANUAL.txt -o MANUAL.html
    pandoc.exe: MANUAL.html: commitAndReleaseBuffer: invalid argument (invalid character)
    Command exited with code 1
2019-08-08 13:39:12 -07:00
John MacFarlane b6490de03b lua-filters - avoid duplicate id element-components. 2019-08-08 11:29:36 -07:00
John MacFarlane 01ad9399b9 Update lua-filters doc from lua sources. 2019-08-08 11:21:31 -07:00
John MacFarlane 808602ed8a Fix links to Attr in lua-filters.doc. 2019-08-08 11:14:43 -07:00
John MacFarlane 21c9548960 lua-filters.doc: make table narrower so it doesn't crowd out TOC. 2019-08-08 11:02:23 -07:00
John MacFarlane 87ce1ffbd9 Avoid a pointless Text -> String conversion on output. 2019-08-07 09:23:59 -07:00
John MacFarlane ec55382f8d Fix stack.yaml. 2019-08-07 08:33:30 -07:00
John MacFarlane ea3a779f7b Use dev version of pandoc-citeproc. 2019-08-05 10:51:06 -07:00
Urs Liska b3ead7cdcc Treat ly as verbatim too (#5671)
According to https://github.com/jgm/pandoc/issues/4725#issuecomment-399772217 not only the `lilypond` environment but also `ly` should be included in the verbatim list.

@jperon
https://github.com/jperon/lyluatex/issues/203
2019-08-05 10:35:17 -07:00
John MacFarlane c452744520 Version bump to 2.8 because of type changes for templates. 2019-08-05 10:29:12 -07:00
John MacFarlane 0b82661e59 Markdown writer: Don't assume Doc has Eq instance.
It won't in a future version.
2019-07-30 21:24:57 -07:00
John MacFarlane 699dd6c367 ConTeXt writer; don't use == empty with Doc, use isEmpty. 2019-07-30 17:30:05 -07:00
John MacFarlane c7c7664403 Update emoji list in Text.Pandoc.Emoji.
Done using tools/emojis.hs, which uses the list from the
gem GitHub uses.  Future updates can be done with this tool.

Closes #5666.
2019-07-29 11:17:22 -07:00
John MacFarlane 82d94d1452 Use latest doctemplates. 2019-07-29 10:56:43 -07:00
John MacFarlane 3ab1f21568 Use latest pandoc-citeproc. 2019-07-28 23:43:04 -07:00
John MacFarlane 1afea63308 Update muse template to handle multiple authors better. 2019-07-28 19:25:44 -07:00
John MacFarlane b35fae6511 Use doctemplates 0.3, change type of writerTemplate.
* Require recent doctemplates.  It is more flexible and
  supports partials.
* Changed type of writerTemplate to Maybe Template instead
  of Maybe String.
* Remove code from the LaTeX, Docbook, and JATS writers that looked in
  the template for strings to determine whether it is a book or an
  article, or whether csquotes is used. This was always kludgy and
  unreliable.  To use csquotes for LaTeX, set `csquotes` in your
  variables or metadata. It is no longer sufficient to put
  `\usepackage{csquotes}` in your template or header includes.
  To specify a book style, use the `documentclass` variable or
  `--top-level-division`.
* Change template code to use new API for doctemplates.
2019-07-28 19:25:45 -07:00
John MacFarlane 99e24cf183 LaTeX reader: handle \passthrough macro used by latex writer.
Closes #5659.
2019-07-24 10:18:09 -07:00
Philip Pesca 01a52e2300 HTML writer: ensure TeX formulas are rendered correctly (#5658)
The web service passed in to `--webtex` may render formulas using inline
or display style by default. Prefixing formulas with the appropriate
command ensures they are rendered correctly.

This is a followup to the discussion in #5656.
2019-07-24 10:10:36 -07:00
John MacFarlane 060141bf2c Templates: don't import/export varListToJSON.
We'll be removing that in doctemplates 0.3.
2019-07-23 21:49:13 -07:00
John MacFarlane 1187ca3517 Templates: Change type of renderTemplate'.
Return value is now Text rather than being polymorphic.
This makes room for upcoming removal of the TemplateTarget
class from doctemplates.

Other code modified accordingly, and should compile with
both current and upcoming version of doctemplates.
2019-07-23 21:40:24 -07:00
Mauro Bieg 54b50cb29a revealjs template: add navigationMode (#5657) 2019-07-23 12:21:55 -07:00
Philip Pesca bc508534a6 HTML writer: render inline formulas correctly with --webtex (#5656)
We add `\textstyle` to the beginning of the formula to ensure it will be rendered in inline style.
Closes #5655.
2019-07-23 12:21:31 -07:00
John MacFarlane db5f6dd4fe Fix error introduced in change to test for 4669. 2019-07-22 15:32:49 -07:00
John MacFarlane d9960244d8 LaTeX reader: support tex \tt command.
Closes #5654.
2019-07-22 15:29:07 -07:00
Albert Krewinkel 63c65c89da Org reader: accept ATTR_LATEX in block attributes
Attributes for LaTeX output are accepted as valid block attributes;
however, their values are ignored.

Fixes: #5648
2019-07-22 08:12:22 +02:00
John MacFarlane 91d4283263 LaTeX writer: fix line breaks at start of paragraph.
Previously we just omitted these. Now we render them
using `\hfill\break` instead of `\\`.  This is a revision
of a PR by @sabine (#5591) who should be credited with the
idea.

Closes #3324.
2019-07-20 17:12:53 -07:00
John MacFarlane b6f9318c9b PDF: Better detection of a Cygwin environment.
Should close #5451.

Unlike the earlier fix, this one doesn't spill out to stderr
when 'uname -o' fails.
2019-07-20 16:50:53 -07:00
John MacFarlane fb73b5c27b Revert "PDF: create temp dir in . on Cygwin."
This reverts commit 50885eabde.

Reopens #5451.

The problem with the previous commit is that it would lead to
spurious messages on stderr on platforms like macOS.
2019-07-20 12:59:34 -07:00
John MacFarlane 8435de3236 Removed an unnecessary liftIO. 2019-07-20 12:53:44 -07:00
John MacFarlane 30eda43192 Moved istty check. 2019-07-20 12:51:03 -07:00
John MacFarlane 8643361d2e Minor code clarity change. 2019-07-20 12:26:24 -07:00
John MacFarlane 465eeece6b LaTeX reader: search for image with list of extensions...
like latex does, if an extension is not provided.

Closes #4933.
2019-07-20 10:17:49 -07:00
Mauro Bieg 3edee7f68c MANUAL: reveal.js flags (#5653) 2019-07-19 12:21:32 -07:00
John MacFarlane 339392bf54 Markdown: Ensure that expanded latex macros end with space if original did.
Closes #4442.
2019-07-19 10:32:59 -07:00
John MacFarlane 50885eabde PDF: create temp dir in . on Cygwin.
See #5451.
2019-07-19 09:41:19 -07:00
Agustín Martín Barbero bd69218451 Change order of ilvl and numId in document.xml (#5647)
Workaround for Word Online shortcomming. Fixes #5645

Also, make list para properties go first.

This reordering of properties shouldn't be necessary but
it seems Word Online does not understand the docx correctly otherwise.
2019-07-19 09:32:43 -07:00
John MacFarlane 72ddbf5994 CONTRIBUTING: make clear that --accept works for all golden tests...
not just docx.
2019-07-19 09:29:10 -07:00
John MacFarlane d4b2128d55 CONTRIBUTING.md: mention command tests. 2019-07-19 09:24:31 -07:00
Agustín Martín Barbero 145b4d5ad6 Improve CONTRIBUTING.md with information on tests (#5652)
from INSTALL.md and [elsewhere](https://github.com/jgm/pandoc/pull/4383#issuecomment-367379040)
2019-07-19 09:23:18 -07:00
John MacFarlane 28cad16517 Markdown writer: prefer using raw_attribute when enabled.
The `raw_attribute` will be used to mark raw bits, even HTML
and LaTeX, and even when `raw_html` and `raw_tex` are enabled,
as they are by default.

To get the old behavior, disable `raw_attribute` in the writer.

Closes #4311.
2019-07-18 22:31:03 -07:00
John MacFarlane 5c655e86d5 HTML writer: ensure that line numbers in code blocks get id-prefix.
Closes #5650.
2019-07-18 22:08:37 -07:00
John MacFarlane 4d65bbf0df Fix diff-zip.sh so it works on Darwin.
BSD find is slightly different and doesn't have -regextype option.
2019-07-17 09:22:07 -07:00
John MacFarlane c75faac1b5 LaTeX reader: handle \looseness command values better.
Closes #4439.
2019-07-16 13:42:34 -07:00
John MacFarlane 0d72237e27 Dokuwiki writer: handle mixed lists without HTML fallback.
Closes #5107.
2019-07-16 13:14:37 -07:00
John MacFarlane 100624a009 Ms writer: Use .LP instead of .PP for line block.
Closes #5588.
2019-07-16 12:17:02 -07:00
John MacFarlane 6355552abc Version to 2.7.4. 2019-07-16 11:04:48 -07:00
Tristan Stenner 09f30d65e4 Add option to include source files in ConTeXt PDFs (#5578)
Add a metadata option (`includesource`) to attach the source documents to the resulting PDF.
2019-07-16 09:31:59 -07:00
John MacFarlane 5454aad324 Make filterIpynbOutput strip ANSI escapes from code in output...
for non-ipynb formats, when the default "best" option is used with
--ipynb-output.  The escape sequences cause problems in many formats,
including LaTeX.  Closes #5633.
2019-07-16 09:27:51 -07:00