aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2016-10-23Tighten up parsing of raw email addresses.John MacFarlane2-4/+18
Technically `**@user` is a valid email address, but if we allow things like this, we get bad results in markdown flavors that autolink raw email addresses. (See #2940.) So we exclude a few valid email addresses in order to avoid these more common bad cases. Closes #2940.
2016-10-23Allow binary formats to be written to stdout unless tty output.John MacFarlane2-5/+18
Only works on posix. On Windows, pandoc works as before and requires an output file parameter for binary formats. Closes #2677.
2016-10-23Travis: Set ulimit -n 4096 before build. This seems necessary on OSX.John MacFarlane1-2/+4
2016-10-23Travis: add to end of path to avoid a warning.John MacFarlane1-1/+1
2016-10-23fix example in documentation (#3176)Thomas Weißschuh1-2/+2
Errors are encountered while reading, not writing
2016-10-23ICML writer: replace partial function (!!) in table handling (#3175)Mauro Bieg1-5/+5
2016-10-23Update changelog.John MacFarlane1-0/+6
2016-10-23Added --list-* options.John MacFarlane2-29/+91
Added `--list-input-formats`, `--list-output-formats`, `--list-extensions`, `--list-highlight-languages`, `--list-highlight-styles`. Removed list of highlighting languages from `--version` output. Removed list of input and output formats from default `--help` output. Closes #3173.
2016-10-23Updated changelog.John MacFarlane1-37/+181
2016-10-23Handle line blocks in sample.lua custom lua writer.John MacFarlane1-0/+5
2016-10-22Added `angle_brackets_escapable` extension.John MacFarlane3-2/+12
This is needed because github flavored Markdown has a slightly different set of escapable symbols than original Markdown; it includes angle brackets. Closes #2846.
2016-10-22EPUB reader: don't add root path to data: URIs.John MacFarlane1-1/+3
Closes #3150. Thanks to @lep for the bug report and patch.
2016-10-22"Merge" MANUAL.txt into README.md (#3167)ickc2-17/+34
* "Merge" MANUAL.txt into README.md Pull request #3157 without the automatic building from MANUAL.txt to README.md * remove contributors in README.md
2016-10-19Merge pull request #3158 from ickc/COPY-LICENSEJohn MacFarlane7-351/+366
Use the markdown version of COPYING from GNU
2016-10-19Merge pull request #3108 from tarleb/partJohn MacFarlane9-56/+208
Add command line option allowing to set type of top-level divisions
2016-10-19Add option for top-level division typeAlbert Krewinkel9-77/+210
The `--chapters` option is replaced with `--top-level-division` which allows users to specify the type as which top-level headers should be output. Possible values are `section` (the default), `chapter`, or `part`. The formats LaTeX, ConTeXt, and Docbook allow `part` as top-level division, TEI only allows to set the `type` attribute on `div` containers. The writers are altered to respect this option in a sensible way.
2016-10-19Download markdown version of the license from GNU and rename to `COPYING.md`Kolen Cheung7-351/+366
From https://www.gnu.org/licenses/old-licenses/gpl-2.0.md
2016-10-19Merge pull request #3168 from hubertp-lshift/feature/odt-image-with-captionJohn MacFarlane3-4/+8
[odt] proper formatting of an image with a caption
2016-10-19Image with a caption needs special formattingHubert Plociniczak3-4/+8
Latex Writer only handles captions if the image's title is prefixed with 'fig:'.
2016-10-18Merge pull request #3166 from hubertp-lshift/bug/3134John MacFarlane3-4/+3
Issue 3143: Don't duplicate text for anchors
2016-10-18Merge pull request #3165 from hubertp-lshift/feature/odt-imageJohn MacFarlane8-40/+158
[odt] images parser
2016-10-18Better fix for the problem with ghc 7.8.John MacFarlane1-1/+3
2016-10-18Try to fix build error on ghc 7.8.John MacFarlane1-1/+1
@tarleb this is an interesting one, see the build log in https://travis-ci.org/jgm/pandoc/jobs/168612017 It only failed on ghc 7.8; I think this must have to do with the change making Monad a superclass of Applicative, hence this change.
2016-10-18Setup.hs - removed some unneeded imports.John MacFarlane1-5/+1
2016-10-18Added pandoc-citeproc back to extra-deps in stack.yaml.John MacFarlane3-0/+3
Otherwise we can't set flags.
2016-10-18Use lts-7.4 resolver.John MacFarlane5-12/+5
2016-10-18stack.yaml - use latest pandoc-types.John MacFarlane4-4/+4
2016-10-18Issue 3143: Don't duplicate text for anchorsHubert Plociniczak3-4/+3
When creating an anchor element we were adding its representation as well as the original content, leading to text duplication.
2016-10-18Allow latest HUnit.John MacFarlane1-1/+1
2016-10-18Travis tweaks.John MacFarlane1-3/+3
Disable optimizations. Make sure we don't change flag on aeson.
2016-10-17Org writer: drop space before footnote markersAlbert Krewinkel2-5/+5
The writer no longer adds an extra space before footnote markers. Fixes: #3162
2016-10-17Use bind function instead of pattern matchingHubert Plociniczak1-4/+1
2016-10-17Minor refactoringHubert Plociniczak1-10/+6
2016-10-17Infer caption from the text following the imgHubert Plociniczak5-22/+54
Frame can contain other frames with the text boxes. This is something that has not been considered before and meant that the whole construction of images was broken in those cases. Also the captions were fixed/ignored.
2016-10-17RST reader: Add test for space-before-note.Jesse Rosenthal1-0/+9
2016-10-17RST reader: skip whitespace before note.Jesse Rosenthal1-2/+3
RST requires a space before a footnote marker. We discard those spaces so that footnotes will be adjacent to the text that comes before it. This is in line with what rst2latex does. rst2html does not discard the space, but its html output is different than pandoc's, so this seems the most semantically correct approach. Closes #3163
2016-10-17Bump pandoc-types versions to 1.17.0.3 in stack.yaml.John MacFarlane4-4/+4
2016-10-17Use pandoc-types 1.17.0.2 in stack.yaml.John MacFarlane4-7/+4
2016-10-17Try travis build with latest dev pandoc-types.John MacFarlane1-1/+4
2016-10-17BUmp pandoc-types version in stack.yamls.John MacFarlane4-4/+4
2016-10-16Update stack.yamls to use pandoc-types 1.17 release.John MacFarlane4-6/+4
2016-10-16Travis: fixed --flag argument in stack.John MacFarlane1-2/+2
2016-10-15Travis: Use fast flag for aeson.John MacFarlane1-3/+3
This dramatically speeds up the build, according to the aeson changelog.
2016-10-14Org reader: allow figure with empty captionAlbert Krewinkel2-3/+7
A `#+CAPTION` attribute before an image is enough to turn an image into a figure. This wasn't the case because the `parseFromString` function, which processes the caption value, would fail on empty values. Adding a newline character to the caption value fixes this. Fixes: #3161
2016-10-14Remove Tests.ArbitraryJesse Rosenthal19-212/+17
Use exported Arbitrary instances from pandoc-types instead.
2016-10-14Merge pull request #3146 from hubertp-lshift/feature/odt-list-start-valueJohn MacFarlane8-16/+24
[ODT Parser] Include list's starting value
2016-10-14Added tests and a corner case for starting numberHubert Plociniczak7-3/+4
Review revealed that we didn't handle the case when the starting point is an empty string. While this is not a valid .odt file, we simply added a special case to deal with it. Also added tests for the new feature.
2016-10-14Travis: test with lts-7 not lts-6.John MacFarlane2-21/+5
2016-10-13Use latest pandoc-types in windows/stack.yaml.John MacFarlane1-1/+1
2016-10-13Use newest pandoc-types from repo.John MacFarlane1-1/+1