aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2015-11-23Define a `meta-json` variable for all writers.John MacFarlane3-4/+10
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-23Document limitations of --self-contained.John MacFarlane1-1/+5
See #2553.
2015-11-23Docx Reader: Remove DummyListItem typeJesse Rosenthal2-12/+7
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-22hlint fixesJohn MacFarlane1-1/+1
2015-11-22hlint fixesJohn MacFarlane1-12/+13
2015-11-22hlint changesJohn MacFarlane1-3/+1
2015-11-22hlint fixes.John MacFarlane1-3/+1
2015-11-22hlint fixes.John MacFarlane1-5/+5
2015-11-22hlint refactorings.John MacFarlane1-38/+34
2015-11-21Improved Citations section of README.John MacFarlane1-3/+10
Added information about `link-citations` and a link to the pandoc-citeproc man page. Closes #2551.
2015-11-21Travis: only use ghc 7.10.2 for now.John MacFarlane1-9/+9
We can go back to the old cabal-based travis once pandoc-types and texmath have been released.
2015-11-21Travis: Use --system-ghc.John MacFarlane1-5/+1
2015-11-21Added sanity check in .travis.yml to diagnose problem.John MacFarlane1-0/+4
2015-11-21Fixed travis again.John MacFarlane1-2/+1
2015-11-21Fixed travis.John MacFarlane1-1/+4
2015-11-21Back to stack-based .travis.yml; use stack 1.8.John MacFarlane1-44/+18
2015-11-21Simpler travis - build pandoc, pandoc-citeproc, texmath together.John MacFarlane1-36/+1
No caching. This is temporary until we release pandoc-types and texmath.
2015-11-21ImageSize: use safeRead instead of readMaybe.John MacFarlane1-2/+1
readMaybe is only provided in base 4.6+.
2015-11-21Travis, make_travis_yml: reverted addition of 'cabal test' in tgz.John MacFarlane2-2/+2
2015-11-21Further travis tweaks.John MacFarlane1-9/+9
2015-11-21Fix travis problem.John MacFarlane1-1/+1
2015-11-21Fixed .travis.yml syntax.John MacFarlane1-8/+8
2015-11-21travis: install unreleased pandoc-types & texmath.John MacFarlane1-0/+8
2015-11-21Back to cabal-based .travis.yml.John MacFarlane2-19/+72
Modified make_travis_yml so that we do a 'cabal test' with the unpacked tarball.
2015-11-20Tweaked travis.yml.John MacFarlane1-1/+1
2015-11-20More travis/stack tweaks.John MacFarlane1-2/+2
2015-11-20Removed ./travis_long from .travis.yml.John MacFarlane1-2/+2
2015-11-20New stack-based .travis.yml.John MacFarlane1-71/+18
For now, at least, we need to use stack to build in travis, since we depend on unreleased packages.
2015-11-20Updated tests for context template changes.John MacFarlane2-23/+18
2015-11-20context template: use simplefonts for font loading.John MacFarlane1-7/+7
This is needed for things to work on ConTeXt stable from TeXLive 2015. Thanks to Pablo Rodríguez.
2015-11-20context template: Revert use of `\setuphead` in title block.John MacFarlane1-11/+7
Thanks to Andrew Dunning and Rik Kabel.
2015-11-20latex template changes.John MacFarlane5-27/+28
* 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-19Renamed link attribute extensions.John MacFarlane4-15/+15
* Old `link_attributes` -> `mmd_link_attributes` * Recently added `common_link_attributes` -> `link_attributes` Note: this change could break some existing workflows.
2015-11-19Merge branch 'new-image-attributes' of https://github.com/mb21/pandoc into ↵John MacFarlane81-748/+1181
mb21-new-image-attributes * Bumped version to 1.16. * Added Attr field to Link and Image. * Added `common_link_attributes` extension. * Updated readers for link attributes. * Updated writers for link attributes. * Updated tests * Updated stack.yaml to build against unreleased versions of pandoc-types and texmath. * Fixed various compiler warnings. Closes #261. TODO: * Relative (percentage) image widths in docx writer. * ODT/OpenDocument writer (untested, same issue about percentage widths). * Update pandoc-citeproc.
2015-11-19Merge pull request #2532 from michaelbeaumont/fix-2530John MacFarlane1-5/+3
Interpret pauses correctly for all headers
2015-11-19Merge pull request #2506 from adunning/patch-1John MacFarlane1-3/+0
Remove redundant `center` variable for reveal.js.
2015-11-19Merge pull request #2509 from adunning/patch-2John MacFarlane1-12/+14
Update LaTeX/ConTeXt link colour usage in README.
2015-11-19Rationalized behavior of --no-tex-ligatures and --smart.John MacFarlane3-21/+36
This change makes `--no-tex-ligatures` affect the LaTeX reader as well as the LaTeX and ConTeXt writers. If it is used, the LaTeX reader will parse characters `` ` ``, `'`, and `-` literally, rather than parsing ligatures for quotation marks and dashes. And the LaTeX writer will print unicode quotation mark and dash characters literally, rather than converting them to the standard ASCII ligatures. Note that `--smart` has no affect on the LaTeX reader. `--smart` is still the default for all input formats when LaTeX or ConTeXt is the output format, *unless* `--no-tex-ligatures` is used. Some examples to illustrate the logic: ``` % echo "'hi'" | pandoc -t latex `hi' % echo "'hi'" | pandoc -t latex --no-tex-ligatures 'hi' % echo "'hi'" | pandoc -t latex --no-tex-ligatures --smart ‘hi’ % echo "'hi'" | pandoc -f latex --no-tex-ligatures <p>'hi'</p> % echo "'hi'" | pandoc -f latex <p>’hi’</p> ``` Closes #2541.
2015-11-18Docx reader: Clean up commented-out functionJesse Rosenthal1-7/+0
A residue of a recent change was left around in the form of a commented-out function. Let's clean that up.
2015-11-18Docx reader: Add test cases for dummy list items.Jesse Rosenthal5-0/+14
2015-11-18Docx reader: Handle dummy list items.Jesse Rosenthal2-6/+15
These come up when people create a list item and then delete the bullet. It doesn't refer to any real list item, and we used to ignore it. We handle it with a DummyListItem type, which, in Docx.hs, is turned into a normal paragraph with a "ListParagraph" class. If it follow another list item, it is folded as another paragraph into that item. If it doesn't, it's just its own (usually indented, and therefore block-quoted) paragraph.
2015-11-17Added 'navigation' variable to beamer template.John MacFarlane2-7/+11
Valid values are `empty` (the default), `horizontal`, `vertical`, and `frame`. Note that this changes the default behavior from `horizontal` to `empty`. Closes #2543.
2015-11-16Haddock writer: omit formatting inside links.John MacFarlane1-2/+2
It isn't supported by Haddock. Closes #2515.
2015-11-16Textile reader: skip over attribute in image source.John MacFarlane1-0/+1
We don't have a place yet for styles or sizes on images, but we can skip the attributes rather than incorrectly taking them to be part of the filename. Closes #2515.
2015-11-16ICML writer: better handling of math.John MacFarlane2-10/+62
Instead of just printing the raw tex, we now try to fake it with unicode characters.
2015-11-16Merge pull request #2540 from adunning/patch-3John MacFarlane1-0/+1
Allow .adoc file extension for AsciiDoc.
2015-11-16Allow .adoc file extension for AsciiDoc.Andrew Dunning1-0/+1
`.adoc` is the extension recommended at <http://asciidoctor.org/docs/asciidoc-writers-guide/>.
2015-11-16HTML writer: Include `example` class for example lists.John MacFarlane1-0/+3
Closes #2524.
2015-11-16Improved implicit pandoc-citeproc inclusion.John MacFarlane1-1/+1
The filter pandoc-citeproc is automatically used when `--bibliography` is specified on the command line, unless `--natbib` or `--biblatex` is used. However, previously this only worked if `--bibliography` was spelled out in full, and not if `--biblio` was used. This patch fixes that problem.
2015-11-16reveal.js template: Fixed parallaxBackground options.John MacFarlane2-8/+11
`parallaxBackgroundHorizontal` and `parallaxBackgroundVertical` need integer values, not strings. (Vaughn Iverson)