aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2016-07-14Docx Writer: Use actual creation time as doc propJesse Rosenthal1-4/+3
Previously, we had used the user-supplied date, if available, for Word's document creation metadata. This could lead to weird results, as in cases where the user post-dates a document (so the modification might be prior to the creation). Here we use the actual computer time to set the document creation.
2016-07-14Shared: improve year sanity check in normalizeDateJesse Rosenthal1-6/+6
Previously we parsed a list of dates, took the first one, and then tested its year range. That meant that if the first one failed, we returned nothing, regardless of what the others did. Now we test for sanity before running `msum` over the list of Maybe values. Anything failing the test will be Nothing, so will not be a candidate.
2016-07-14Shared: normalizeDate should reject illegal years.Jesse Rosenthal1-5/+10
We only allow years between 1601 and 9999, inclusive. The ISO 8601 actually says that years are supposed to start with 1583, but MS Word only allows 1601-9999. This should stop corrupted word files if the date is out of that range, or is parsed incorrectly.
2016-07-14Shared: Add further formats for `normalizeDate`Jesse Rosenthal1-1/+2
We want to avoid illegal dates -- in particular years with greater than four digits. We attempt to parse series of digits first as `%Y%m%d`, then `%Y%m`, and finally `%Y`.
2016-07-14Added resolver clause to stack.lts6.yaml.John MacFarlane1-0/+1
2016-07-14Added winpkg target to Makefile.John MacFarlane1-0/+7
This downloads the windows package from appveyor and signs it using the key. This way we needn't mess with a Windows VM to build the package.
2016-07-14make_oxs_package.sh - use OSX env variable.John MacFarlane1-7/+7
2016-07-14Version to 1.17.2.John MacFarlane1-1/+1
2016-07-14Removed some redundant class constraints.John MacFarlane7-11/+11
2016-07-14Fixed lts6 travis build.John MacFarlane2-2/+15
2016-07-14Merge pull request #3019 from tarleb/org-verbatim-fixJohn MacFarlane2-2/+7
Org reader: fix parsing of verbatim inlines
2016-07-14Fixed exponential parsing bug in textile reader.John MacFarlane1-0/+1
Closes #3020.
2016-07-14Org reader: fix parsing of verbatim inlinesAlbert Krewinkel2-2/+7
Org rules for allowed characters before or after markup chars were not checked for verbatim text. This resultet in wrong parsing outcomes of if the verbatim text contained e.g. space enclosed markup characters as part of the text (`=is_substr = True=`). Forcing the parser to update the positions of allowed/forbidden markup border characters fixes this. This fixes #3016.
2016-07-13stack.yaml - use ghc 8.01 and nightly.John MacFarlane1-1/+2
2016-07-11Allow QuickCheck 2.9.John MacFarlane1-1/+1
2016-07-05Merge pull request #3014 from tarleb/org-writer-divJohn MacFarlane2-79/+41
Org writer: improve Div handling
2016-07-05Org writer: improve Div handlingAlbert Krewinkel2-79/+41
Div blocks handling is changed to make the output look more like idiomatic org mode: - Div-wrapped content is output as-is if the div's attribute is the null attribute. - Div containers with an id but neither classes nor key-value pairs are unwrapped and the id is added as an anchor. - Divs with classes associated with greater block elements are wrapped in a `#+BEGIN`...`#+END` block. - The old behavior for Divs with more complex attributes is kept.
2016-07-04Added http-client dependencies to stack.yaml files.John MacFarlane3-0/+6
2016-07-04Depend on http-client 0.5, http-client-tls 0.3John MacFarlane2-2/+4
2016-07-04Merge pull request #3012 from tarleb/org-drop-ugly-pragmaJohn MacFarlane1-5/+4
Org reader: replace ugly code with view pattern
2016-07-04Org reader: replace ugly code with view patternAlbert Krewinkel1-5/+4
Some less-than-smart code required a pragma switching of overlapping pattern warnings in order to compile seamlessly. Using view patterns makes the code easier to read and also doesn't require overlapping pattern checks to be disabled.
2016-07-03Merge pull request #3010 from tarleb/org-header-treeJohn MacFarlane6-247/+423
Org reader: support archived trees, headline levels export setting
2016-07-03Odt reader: Removed redundant Monoid constraints.John MacFarlane1-7/+7
2016-07-03Fix warning for parseURl import.John MacFarlane1-2/+3
2016-07-03CPP workaround for deprecation of parseUrl in http-client.John MacFarlane1-6/+14
2016-07-03Org reader: support headline levels export settingAlbert Krewinkel4-8/+52
The depths of headlines can be modified using the `H` option. Deeper headlines will be converted to lists.
2016-07-03Travis: don't test on lts-5.John MacFarlane1-8/+0
2016-07-03Allow 'standout' as a beamer frame option.John MacFarlane1-1/+1
## Slide title {.standout} Closes #3007.
2016-07-03stack.yaml: use 6.5 resolver.John MacFarlane4-14/+4
2016-07-02Org reader: put export setting parser into moduleAlbert Krewinkel4-191/+192
Export option parsing is distinct enough from general block parsing to justify putting it into a separate module.
2016-07-01LaTeX reader: strip off double quotes around image source if present.John MacFarlane1-1/+8
Avoids interpreting these as part of the literal filename. See #2825.
2016-07-01LaTeX writer: don't URI-escape image source.John MacFarlane1-1/+1
Usually this is a local file, and replacing spaces with `%20` ruins things. Closes #2825.
2016-07-01beamer, latex templates: pass biblatexoptions directly in package load.John MacFarlane1-7/+7
This allows runtime optinos to be used. Fixes jgm/pandoc-citeproc#201
2016-07-01Org reader: support archived trees export optionsAlbert Krewinkel3-8/+86
Handling of archived trees can be modified using the `arch` option. Archived trees are either dropped, exported completely, or collapsed to include just the header when the `arch` option is nil, non-nil, or `headline`, respectively.
2016-07-01Org reader: refactor comment tree handlingAlbert Krewinkel2-39/+21
Comment trees were handled after parsing, as pattern matching on lists is easier than matching on sequences. The new method of reading documents as trees allows for more elegant subtree removal.
2016-07-01Org reader: parse as headlines, convert to blocksAlbert Krewinkel1-47/+86
Emacs org-mode is based on outline-mode, which treats documents as trees with headlines are nodes. The reader is refactored to parse into a similar tree structure. This simplifies transformations acting on document (sub-)trees.
2016-07-01Org reader: improve tag and properties type safetyAlbert Krewinkel1-25/+57
Specific newtype definitions are used to replace stringly typing of tags and properties. Type safety is increased while readability is improved.
2016-07-01ZimWiki writer: removed commented out code that confused Haddock.John MacFarlane1-8/+8
See https://travis-ci.org/jgm/pandoc/jobs/141542247
2016-07-01Added ZimWiki format to documentation and cabal description.Alex Ivkin2-13/+19
2016-06-30Added Zim Wiki writer, template and tests.Alex Ivkin7-6/+1057
2016-07-01Docx writer: set paragraph to FirstPara after display mathJesse Rosenthal1-0/+1
We treat display math like block quotes, and apply FirstParagraph style to paragraphs that follow them. These can be styled as the user wishes. (But, when the user is using indentation, this allows for paragraphs to continue after display math without indentation.)
2016-07-01Writers: treat SoftBreak as space for strippingJesse Rosenthal1-0/+1
In Writers.Shared, we strip leading and trailing spaces for display math. Since SoftBreak's are treated as spaces, we should strip those too.
2016-06-29LaTeX reader: fixed `\cite` so it is a NormalCitation not AuthorInText.John MacFarlane3-4/+4
2016-06-26Merge pull request #3001 from tarleb/org-figure-labelJohn MacFarlane2-32/+47
Org reader: support figure labels
2016-06-26Include table of contents in README.html in Windows package.John MacFarlane2-2/+2
2016-06-26Org reader: support figure labelsAlbert Krewinkel2-32/+47
Figure labels given as `#+LABEL: thelabel` are used as the ID of the respective image. This allows e.g. the LaTeX to add proper `\label` markup. This fixes half of #2496 and #2999.
2016-06-25Textile reader: Fix overly aggressive interpretation as images.John MacFarlane1-7/+4
Spaces are not allowed in the image URL in textile. Closes #2998.
2016-06-25Added `secnumdepth` variable to LaTeX template.John MacFarlane2-22/+8
Closes #2920.
2016-06-25Fixed RST links with no explicit link text.John MacFarlane3-1/+7
The link `<foo>`_ should have `foo` as both its link text and its URL. See RST spec at <http://docutils.sourceforge.net/docs/ref/rst/restructuredtext.html#embedded-uris-and-aliases> "The reference text may also be omitted, in which case the URI will be duplicated for use as the reference text. This is useful for relative URIs where the address or file name is also the desired reference text: See `<a_named_relative_link>`_ or `<an_anonymous_relative_link>`__ for details." Closes Debian #828167 -- reported by Christian Heller.
2016-06-24Make --webtex work with the Markdown writer.John MacFarlane2-12/+19
Closes #1177. This is a convenient option for people using websites whose Markdown flavors don't provide for math.