Commit Graph
10211 Commits
Author SHA1 Message Date
John MacFarlane 6d91fb2563 Markdown writer: use raw HTML for link/image attributes when
the `link_attributes` extension is unset and `raw_html` is set.

Closes #2554.
2015-11-24 23:28:52 -08:00
John MacFarlane 2df4f39db3 s/mb21/Mauro Bieg/ in README contributor list and changelog. 2015-11-24 22:55:03 -08:00
John MacFarlane bfbd6c6530 Added stack.full.yaml to build pandoc-citeproc as well. 2015-11-24 21:54:35 -08:00
John MacFarlane 57350d9468 Added bodyless pipe table test case.
See #2556.
2015-11-24 20:29:44 -08:00
John MacFarlane e79fb6c3ff Updated README for new pipe table behavior. 2015-11-24 20:26:24 -08:00
John MacFarlane 33d328f1cf Allow pipe tables with no body rows.
Previously this raised a runtime error.

Closes #2556.
2015-11-24 20:23:06 -08:00
John MacFarlane c73ae81628 LaTeX reader: Improved smart quote parsing.
This fixes redering of unmatched quotes.
Closes #2555.
2015-11-24 17:20:15 -08:00
John MacFarlane ce5583460c Improved fetchItem so that C:/Blah/Blah.jpg isn't treated as URL.
The Haskell URI parsing routines will accept "C:" as a scheme,
so we rule that out manually.

This helps with `--self-contained` and absolute Windows paths.
See
http://stackoverflow.com/questions/33899126/rchart-in-markdown-doesnt-render-due-to-invalidurlexception-from-pandoc
2015-11-24 11:05:31 -08:00
John MacFarlane 2eb5d2dc42 LaTeX reader: Use curly quotes for unmatched `.
Partially addresses #2555.

Note that there's still a problem with the code sample given.
2015-11-23 23:44:39 -08:00
John MacFarlane 2633dc2f5e Beamer writer: mark frame as fragile when it contains verbatim.
Closes #1613.
2015-11-23 23:07:56 -08:00
John MacFarlane b20ecbedc4 AsciiDoc writer: Fixed code blocks.
Closes #1861.
2015-11-23 21:29:21 -08:00
John MacFarlane 4361dc0245 Define a meta-json variable for all writers.
This contains a JSON version of all the metadata, in the
format selected for the writer.

So, for example, to get just the YAML metadata, you can
run pandoc with the following custom template:

    $meta-json$

Closes #2019.  The intent is to make it easier for static
site generators and other tools to get at the metadata.
2015-11-23 20:40:27 -08:00
John MacFarlane 902c63ebea Document limitations of --self-contained.
See #2553.
2015-11-23 18:46:14 -08:00
Jesse Rosenthal 07b8a456b1 Docx Reader: Remove DummyListItem type
Change 5527465c introduced a `DummyListItem` type in Docx/Parse.hs. In
retrospect, this seems like it mixes parsing and iterpretation
excessively. What's *really* going on is that we have a list item
without and associate level or numeric info. We can decide what to do
what that in Docx.hs (treat it like a list paragraph), but the parser
shouldn't make that decision.

This commit makes what is going on a bit more explicit. `LevelInfo` is
now a Maybe value in the `ListItem` type. If it's a Nothing, we treat
it as a ListParagraph. If it's a Just, it's a normal list item.
2015-11-23 11:50:49 -05:00
John MacFarlane a008e57ddf hlint fixes 2015-11-22 07:43:48 -08:00
John MacFarlane f7e37141e5 hlint fixes 2015-11-22 07:42:11 -08:00
John MacFarlane bbb3d8d442 hlint changes 2015-11-22 07:40:26 -08:00
John MacFarlane a7f6241f50 hlint fixes. 2015-11-22 07:38:51 -08:00
John MacFarlane 4b293a6a54 hlint fixes. 2015-11-22 07:37:51 -08:00
John MacFarlane f0670cccbb hlint refactorings. 2015-11-22 07:27:35 -08:00
John MacFarlane 39a92b23a3 Improved Citations section of README.
Added information about `link-citations` and a link
to the pandoc-citeproc man page.

Closes #2551.
2015-11-21 11:14:02 -08:00
John MacFarlane 67b49d786c Travis: only use ghc 7.10.2 for now.
We can go back to the old cabal-based travis once pandoc-types
and texmath have been released.
2015-11-21 11:04:55 -08:00
John MacFarlane 8f0490a66e Travis: Use --system-ghc. 2015-11-21 11:02:22 -08:00
John MacFarlane ad6a3401fb Added sanity check in .travis.yml to diagnose problem. 2015-11-21 10:52:08 -08:00
John MacFarlane dd2d8ff6ff Fixed travis again. 2015-11-21 10:44:09 -08:00
John MacFarlane e456ddbd4f Fixed travis. 2015-11-21 10:33:16 -08:00
John MacFarlane 3f89c95a4a Back to stack-based .travis.yml; use stack 1.8. 2015-11-21 10:20:17 -08:00
John MacFarlane da43c7001f Simpler travis - build pandoc, pandoc-citeproc, texmath together.
No caching.
This is temporary until we release pandoc-types and texmath.
2015-11-21 09:15:34 -08:00
John MacFarlane c5b9ae3060 ImageSize: use safeRead instead of readMaybe.
readMaybe is only provided in base 4.6+.
2015-11-21 08:46:01 -08:00
John MacFarlane 99bc204e8b Travis, make_travis_yml: reverted addition of 'cabal test' in tgz. 2015-11-21 08:45:38 -08:00
John MacFarlane 1494097ffc Further travis tweaks. 2015-11-21 07:45:56 -08:00
John MacFarlane f36f0b275e Fix travis problem. 2015-11-21 07:33:21 -08:00
John MacFarlane ba2bce3abc Fixed .travis.yml syntax. 2015-11-21 07:25:41 -08:00
John MacFarlane 0ea7cce895 travis: install unreleased pandoc-types & texmath. 2015-11-21 07:19:51 -08:00
John MacFarlane bd07432a0c Back to cabal-based .travis.yml.
Modified make_travis_yml so that we do a 'cabal test' with the
unpacked tarball.
2015-11-21 07:15:55 -08:00
John MacFarlane d20b15b0f6 Tweaked travis.yml. 2015-11-20 22:14:57 -08:00
John MacFarlane 3ee2d62187 More travis/stack tweaks. 2015-11-20 20:50:46 -08:00
John MacFarlane 6ae21832c0 Removed ./travis_long from .travis.yml. 2015-11-20 20:34:14 -08:00
John MacFarlane ece6b632c2 New stack-based .travis.yml.
For now, at least, we need to use stack to build in travis,
since we depend on unreleased packages.
2015-11-20 20:31:04 -08:00
John MacFarlane 6a28923b9f Updated tests for context template changes. 2015-11-20 14:50:37 -08:00
John MacFarlane 16be932ddb context template: use simplefonts for font loading.
This is needed for things to work on ConTeXt stable from
TeXLive 2015.

Thanks to Pablo Rodríguez.
2015-11-20 14:46:21 -08:00
John MacFarlane 5e9fad4caf Merge pull request #157 from ousia/patch-1
font loading with simplefonts
2015-11-20 14:46:04 -08:00
John MacFarlane fbb81c4cb0 context template: Revert use of \setuphead in title block.
Thanks to Andrew Dunning and Rik Kabel.
2015-11-20 14:44:24 -08:00
John MacFarlane 2f9ba8e766 Merge pull request #156 from adunning/patch-1
Revert use of \setuphead for ConTeXt title block.
2015-11-20 14:44:03 -08:00
John MacFarlane e5573bca8f latex template changes.
* Removed setting of `subject` in PDF metadata.
  This used to be set to the subtitle, but really the subtitle
  need not give the subject.  Also, `subtitle` can contain formatting,
  so we'd need, at least, a plain text version for this.

* Moved `header-includes` before setting of `\title`, `\author`,
  etc.  This allows these macros to be redefined.

* Use `\subtitle` command for `subtitle`, instead of tacking it
  on to the title as before.  We give a no-op fallback definition if it is
  not defined.  This change should produce much better results
  in classes that support `\subtitle`.  With the default article
  class, which does not define `\subtitle`, subtitles will no
  longer be printed unless the user defines `\subtitle` and
  redefines `\maketitle`.

* Moved redefinitions of `\paragraph` and `\subparagraph` to
  before header-includes.
2015-11-20 14:40:27 -08:00
John MacFarlane db3aec1a82 latex: Moved definitions of subparagraph, header-includes.
`header-includes` now occurs before setting of title,
author, etc.  This allows you to include a definition of
`\subtitle`, for example, before `\subtitle` is called.

Redefining of `\paragraph` and `\subparagraph` now occurs
before `header-includes` rather than after.
2015-11-20 14:30:24 -08:00
John MacFarlane 4ac59af242 latex: Use \subtitle command for subtitle, and give fallback defn.
The fallback definition is a no-op.  In a class that does not
define `\subtitle`, the `subtitle` will not appear.

This changes earlier behavior, which was to add the subtitle
to the title.  This had bad results with page headers etc.
2015-11-20 14:26:12 -08:00
John MacFarlane 769581dfe2 latex template: Removed setting of 'subject' from subtitle.
Subtitle isn't always subject. Also, subtitle can contain
formatting, so we'd need a plain text version as with title.
Easier to remove.
2015-11-20 14:20:28 -08:00
John MacFarlane e94ed582b4 Revert "Merge pull request #158 from xoolive/pr-title"
This reverts commit edf101400a, reversing
changes made to ff9ebaa31a.
2015-11-20 11:38:01 -08:00
John MacFarlane edf101400a Merge pull request #158 from xoolive/pr-title
Issue for title.meta when subtitle is set
2015-11-20 10:57:34 -08:00