aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2016-03-06Update pandoc.1ickc1-1/+1
2016-02-28LaTeX reader: handle interior `$` characters in math.John MacFarlane1-4/+12
e.g. `$$\hbox{$i$}$$`. Partially addresses #2743.
2016-02-26Merge pull request #2739 from mb21/patch-2John MacFarlane1-0/+4
Add relocatable stack build
2016-02-26Add relocatable stack buildMauro Bieg1-0/+4
2016-02-26Docx Reader: Get rid of Modifiable typeclass.Jesse Rosenthal4-199/+170
The docx reader used to use a Modifiable typeclass to combine both Blocks and Inlines. But all the work was in the inlines. So most of the generality was wasted, at the expense of making the code harder to understand. This gets rid of the generality, and adds functions for Blocks and Inlines. It should be a bit easier to work with going forward.
2016-02-24Allow zip-archive 0.3.John MacFarlane1-2/+2
2016-02-23Make protocol-relative URIs work again.John MacFarlane1-2/+4
Closes #2737.
2016-02-22Raise tagsoup lower bound to 0.13.7.John MacFarlane1-1/+1
This fixes entity-related problems. Closes #2734.
2016-02-21Markdown reader: use htmlInBalanced for rawVerbatimBlock.John MacFarlane1-7/+5
This should give better performance. See #2730.
2016-02-21Update README to reflect 4112b32.Jesse Rosenthal1-3/+4
We don't infer `--chapters` if `article` document option is set. For example: `\documentclass[article]{memoir}`.
2016-02-20Fixed some linter warnings.John MacFarlane1-3/+3
2016-02-20Merge pull request #2646 from tarleb/org-figure-with-no-nameJohn MacFarlane2-7/+7
Prefix even empty figure names with "fig:"
2016-02-20Merge pull request #2668 from monofon/fix/yaml-metadata-block-bottom-lineJohn MacFarlane2-2/+2
Markdown writer: Use hyphens for yaml metadata block bottom line
2016-02-20Merge pull request #2691 from tarleb/org-image-file-linksJohn MacFarlane2-29/+33
Org reader: Refactor link-target processing
2016-02-20HTML reader: rewrote htmlInBalanced.John MacFarlane1-10/+39
This version avoids an exponential performance problem with `<script>` tags, and it should be faster in general. Closes #2730.
2016-02-20Merge pull request #2732 from pra85/patch-2John MacFarlane1-3/+3
Fix typos in Readme
2016-02-21Fix typos in ReadmePrayag Verma1-3/+3
Remove extra `be` `overriden` → `overridden`
2016-02-18LaTeX writer: clean up options parser.Jesse Rosenthal1-3/+4
Make sure that we require the closing bracket.
2016-02-18LaTeX writer: treat memoir template with `article` opt as articleJesse Rosenthal1-6/+21
We currently treat all memoir templates as books. This means that pandoc will infer the `--chapters` argument, even if the `article` iption is set for memoir. This commit makes pandoc treats the document as an article if there is an article option (i.e., `\documentclass[12pt,article]{memoir}`). Note that this refactors out the parsec parsers for document class and options, to make it a little clearer what's going on.
2016-02-18Merge pull request #2725 from adunning/patch-1John MacFarlane1-1/+0
Remove stray line from stack.full.yaml
2016-02-18Remove stray line from stack.full.yamlAndrew Dunning1-1/+0
The line causes an error with stack 1.0.2: ``` Could not parse '/pandoc-build/pandoc/stack.full.yaml': AesonException "Error in $.extra-deps: failed to parse field 'extra-deps': failed to parse field extra-deps: expected [a], encountered Null" See http://docs.haskellstack.org/en/stable/yaml_configuration.html. ```
2016-02-17Don't build with lts-2 or lts-3.John MacFarlane1-9/+0
2016-02-17Travis: don't build with lts-3.John MacFarlane1-4/+0
It doesn't have recent enough dependencies.
2016-02-17Travis fixes.John MacFarlane1-2/+4
cabal sdist has problems on cabal 1.16, because of our Text.Pandoc.Data module. So we don't test it.
2016-02-17Fixed stack.yaml.John MacFarlane1-2/+2
2016-02-17Try new travis stack+cabal script.John MacFarlane1-75/+124
2016-02-16HTML reader: properly handle an empty cell in a simple table.John MacFarlane1-0/+1
Closes #2718.
2016-02-10stack.yaml: Added commented-out commands to compile against aeson 0.11.John MacFarlane1-0/+4
This has been tested.
2016-02-09Removed `tex_math_single_backslash` from `markdown_github` options.John MacFarlane2-3/+1
Closes #2707.
2016-02-09Removed aeson extra-dep from stack.yaml.John MacFarlane5-5/+0
2016-02-09Changed aeson version in stack.yaml to 0.11.0.0.John MacFarlane5-4/+5
2016-02-09Updated to lts-5.2 resolver, aeson 0.11 in stack.yaml.John MacFarlane5-23/+9
2016-02-09Allow aeson 0.11.John MacFarlane1-2/+2
2016-02-08Merge pull request #2703 from rski/stack_link_fixJohn MacFarlane1-1/+1
Fix stack link in INSTALL
2016-02-08Fix stack link in INSTALLrski1-1/+1
Stack installation instructions have moved to docs.haskellstack.org
2016-02-05Added info on Stack to CONTRIBUTING.md.John MacFarlane1-4/+24
2016-02-05Merge pull request #2699 from MathieuDuponchelle/patch-1John MacFarlane1-0/+1
CONTRIBUTING.md : update test enabling documentation
2016-02-05Custom writer: Pass attributes parameter to CaptionedImage.John MacFarlane2-3/+3
Closes #2697.
2016-02-05CONTRIBUTING.md : update test enabling documentationMathieu Duponchelle1-0/+1
On my end, in a clean sandbox, I had to run this before I could run the tests, I'm a cabal / haskell noob so that might not be the best way to do so but :)
2016-02-04Markdown reader: Fixed bug with smart quotes around tex math.John MacFarlane1-2/+2
Previously smart quotes were incorrect in the following: '$\neg(x \in x)$'. (because of the following period). This commit fixes the problem, which was introduced by commit 4229cf2d92faf5774fe1a3a9c89a5de885cf75cd.
2016-02-03HTML writer: don't include alignment attribute for default table columns.John MacFarlane2-16/+19
Previously these were given "left" alignment. Better to leave off alignment attributes altogether. Closes #2694.
2016-02-02Docx reader: Add tests for adjacent hyperlinks.Jesse Rosenthal3-0/+5
2016-02-02Docx reader: Add a "Link" modifier to ReducibleJesse Rosenthal1-0/+2
We want to make sure that links have their spaces removed, and are appropriately smushed together. This closes #2689
2016-01-31Org reader: Refactor link-target processingAlbert Krewinkel2-29/+33
Cleanup of the code for link target handling. Most notably, the canonicalization of a link is handled by a separate function. This fixes #2684.
2016-01-31LaTeX reader: `inlineCommand` now gobbles an empty `{}` after any command.John MacFarlane1-1/+2
This gives better results when people write e.g. `\TeX{}` in Markdown. \TeX{} and \LaTeX{} now works as expected with `pandoc -f markdown -t latex`. Closes #2687.
2016-01-29HTML reader: handle multiple meta tags with same name.John MacFarlane1-2/+6
Put them in a list in the metadata so they are all preserved, rather than (as before) throwing out all but one..
2016-01-29Properly handle LaTeX "math" environment as inline math.John MacFarlane1-0/+1
See #2171.
2016-01-26Merge pull request #2681 from pra85/patch-1John MacFarlane1-1/+1
Update license year range to 2016
2016-01-26Update license year range to 2016Prayag Verma1-1/+1
2016-01-25Textile reader: Support `>`, `<`, `=`, `<>` text alignment attributes.John MacFarlane3-4/+30
Closes #2674.