Commit graph

8815 commits

Author SHA1 Message Date
John MacFarlane
612f1238aa Use lazy loading for reveal.js slide shows.
* In HTML writer, with reveal.js we use data-src instead of src
  for images.
* In SelfContained, we also load resources from data-src.

Closes #2283.
2017-02-20 22:21:20 +01:00
John MacFarlane
8b9448aa17 default.revealjs template: make 'history' default to true. 2017-02-20 22:06:37 +01:00
John MacFarlane
3c8ccd2a9c Modified documentation now that submodule fetching isn't needed. 2017-02-20 21:07:59 +01:00
John MacFarlane
ce8226f1a7 Merge commit '9e52ac6bb02afd7b4ed5dad61021a1fa33051203' as 'data/templates' 2017-02-20 20:52:00 +01:00
John MacFarlane
e390d754ef Merge commit '9e52ac6bb02afd7b4ed5dad61021a1fa33051203' as 'data/templates' 2017-02-20 20:52:00 +01:00
John MacFarlane
9e52ac6bb0 Squashed 'data/templates/' content from commit 12d9650
git-subtree-dir: data/templates
git-subtree-split: 12d96508c6
2017-02-20 20:52:00 +01:00
John MacFarlane
e86e44b98e Removed data/templates submodule. 2017-02-20 20:51:43 +01:00
John MacFarlane
d199d58124 We need process >= 1.2.3 for readCreateProcessWithExitCode. 2017-02-20 16:51:47 +01:00
John MacFarlane
b6ad920db8 Travis: move 7.8.4 out of allowed-failures. 2017-02-20 16:39:37 +01:00
John MacFarlane
767bd77ec4 Updated test-with field. 2017-02-20 16:35:19 +01:00
John MacFarlane
56474b91f2 Travis: remove 8.0.1 build. 2017-02-20 16:34:53 +01:00
John MacFarlane
172320ac66 Added Functor constraint to keep ghc 7.8.4 happy. 2017-02-20 16:34:33 +01:00
John MacFarlane
547c32939b Tighten up HasQuoteContext instance in HTML reader.
We constrain it to the state used in the HTML reader.
Otherwise we can get overlap with the general instance
for ParserState m.
2017-02-20 15:51:49 +01:00
John MacFarlane
b246e8e9af Revert "Refined constraint for HasQuoteContext instance."
This reverts commit 3c427fc17d.
2017-02-20 15:44:33 +01:00
John MacFarlane
3c427fc17d Refined constraint for HasQuoteContext instance.
in hopes that this will help the ghc 7.8.4 build...
2017-02-20 15:25:47 +01:00
John MacFarlane
3ccf3fad2c Removed redundant constraint. 2017-02-20 15:12:20 +01:00
John MacFarlane
59666f79f3 Use latest skylighting (0.3). 2017-02-20 13:31:15 +01:00
John MacFarlane
42e2ac8536 Use new skylighting-0.2. 2017-02-20 00:31:57 +01:00
John MacFarlane
3165e14b17 Error: added PandocMakePDFError 2017-02-19 09:53:24 +01:00
John MacFarlane
3c3138b133 Added warnings for non-rendered blocks to some writers. 2017-02-17 23:11:31 +01:00
John MacFarlane
aee10a719b FB2 writer: don't render RawBlock as code. 2017-02-17 21:41:47 +01:00
John MacFarlane
1e43e3767e Markdown reader: Use logMessage instead of report. 2017-02-17 19:59:54 +01:00
John MacFarlane
a3412354a4 Fixed repeated log messages in RST reader.
See #3447.  To complete fixes on this issue, we need to
do the same for the other readers.  Note that the changes
required are minimal -- add reportLogMessages to the end
of the main parser, and replace report with logMessage.
(except for trace)
2017-02-17 13:01:55 +01:00
John MacFarlane
38daf9de68 Parsing: Added HasLogMessages, logMessage, reportLogMessages.
We need to do logging by updating parser state, or we'll get
inappropriate and repeated log messages when there is parser
backtracking.

See #3447.
2017-02-17 12:56:07 +01:00
Mauro Bieg
05cf034cc3 INSTALL.md put rpm-based distros on separate point (#3449) 2017-02-16 13:56:42 +01:00
John MacFarlane
575014975e Fix indirect hyperlink targets. Closes #512. 2017-02-15 17:36:16 +01:00
John MacFarlane
ebe4072bd9 Add CircularReference constructor to LogMessage. 2017-02-15 17:35:29 +01:00
Alex Ivkin
93f0a9c2e5 ZimWiki writer: removed internal formatting from note and table cells, because ZimWiki does not support it (#3446) 2017-02-15 11:28:02 +01:00
John MacFarlane
c44a3f61c2 LaTeX reader: include contents of \parbox. 2017-02-14 23:12:46 +01:00
Alexander Krotov
a58112f6bc Simplify toRomanNumeral using guards (#3445) 2017-02-14 23:00:23 +01:00
John MacFarlane
2a3c2b01ea Removed unnecessary import. 2017-02-14 15:02:59 +01:00
John MacFarlane
cfdbe85e71 LaTeX reader: properly handle column prefixes/suffixes.
For example, in

     \begin{tabular}{>{$}l<{$}>{$}l<{$} >{$}l<{$}}

each cell will be interpreted as if it has a `$`
before its content and a `$` after (math mode).
2017-02-13 22:39:59 +01:00
John MacFarlane
c4c9374526 appveyor.yml: Fixed some paths. 2017-02-12 23:17:35 +01:00
John MacFarlane
fb77b993db deb/make_deb.sh fixes. 2017-02-12 23:13:30 +01:00
John MacFarlane
ad2f80f91d appveyor.yml: use -j1, in hopes that this will help with a GHC bug.
The bug: https://ghc.haskell.org/trac/ghc/ticket/13194
See https://ci.appveyor.com/api/buildjobs/02l7v73n5hjs2t5u/log
for its occurrence in previous appveyor builds of pandoc.
2017-02-12 22:34:07 +01:00
John MacFarlane
cc75635bc9 Windows packaging fixes to use new stack.pkg.yaml. 2017-02-12 22:04:53 +01:00
John MacFarlane
395f20a048 Replaced {deb,macos,windows}/stack.yaml with stack.pkg.yaml. 2017-02-12 21:45:30 +01:00
John MacFarlane
2e5d076af7 More updates to macos/stack.yaml. 2017-02-12 20:21:19 +01:00
John MacFarlane
7b6273362a pandoc.cabal: use cpphs if embed_data_files and darwin. 2017-02-12 19:59:47 +01:00
John MacFarlane
1e694805a1 stack.yamls: Use lts-8.0. 2017-02-12 19:16:53 +01:00
John MacFarlane
79561920c8 Comment out instruction to use cpphs in macos stack.yaml.
I don't think this is still needed. If the Travis build fails,
we can try adjusting the CPP to make it more compatible.
2017-02-12 18:24:31 +01:00
Albert Krewinkel
64ad6ff8d9 Merge pull request #3438 from ilabdsf/org-anchor-links
Org anchor links
2017-02-12 16:50:36 +01:00
Alexander Krotov
9e3f5a5147 Do not strip # from Org anchor links
Links with # are perfectly valid according to http://orgmode.org/manual/Internal-links.html#Internal-links
2017-02-12 17:09:44 +03:00
Alexander Krotov
48f809384a Add Org writer unit tests 2017-02-12 17:09:07 +03:00
John MacFarlane
48c78713c8 Rename logMessagesToJSON -> encodeLogMessages. 2017-02-11 22:58:22 +01:00
John MacFarlane
cf26bc5f68 RST reader: Support .. line-block directive.
This is deprecated but may still be in older documents.
2017-02-11 22:47:05 +01:00
John MacFarlane
2759960204 RST reader/writer: properly handle table captions.
Currently the support for the `.. table` directive is a bit
limited; we don't yet support the `widths` field.  But at least
you can have a proper captioned table.
2017-02-11 22:37:07 +01:00
John MacFarlane
510a6ee059 RST reader: Initial support of .. table directive.
This allows adding captions to tables.
2017-02-11 22:21:49 +01:00
John MacFarlane
1a23bc65b8 Fixed small bug in RST list parsing.
See #3432.  Previously the parser didn't handle properly this
case:

    * - a
      - b
    * - c
      - d
2017-02-11 20:55:13 +01:00
John MacFarlane
92a5445aa1 Logging: export logMessagesToJSON.
Use a deterministic order for fields.
2017-02-11 20:13:33 +01:00