Commit graph

6400 commits

Author SHA1 Message Date
John MacFarlane
309ff7a6da Template changes:
- Move HTML5 shiv after CSS (Andrew Dunning).
- Fix HTML5 shiv URL (Andrew Dunning).
- Add dir attribute in html5 (Andrew Dunning).
- Realign beamer and LaTeX templates (Andrew Dunning).
2015-10-13 20:35:18 -07:00
John MacFarlane
24f68654e9 RST writer: do header normalization only in "standalone" mode.
If we're producing a fragment, just skip normalization.
After all, the fragment might be somewhere in the middle
of the document.  It's more important for fragments to
have consistency in rendering (so they can be pieced
together) than to normalize.

This closes #2394.  It's simpler and more robust than
my earlier fix.
2015-10-12 23:00:27 -07:00
John MacFarlane
fb51077712 Revert "RST writer: tweaks to header normalization."
This reverts commit 476b383c57.
2015-10-12 22:44:37 -07:00
John MacFarlane
476b383c57 RST writer: tweaks to header normalization.
These changes are intended to make the writer more
useful to people who are processing small fragments,
which may for example look like this:

    ### third level header from previous section

    ## second level header

Previously such fragments got turned into two
headers of the same level.  The new algorithm
avoids doing any normalization until we hit the
minimal-level header in the fragment (here, the
second level header).

Closes #2394.
2015-10-12 22:04:40 -07:00
John MacFarlane
0715c5cbed Changed stack.yaml to use latest resolver (3.9). 2015-10-12 22:04:30 -07:00
John MacFarlane
2c15b1fcac Added ghc-prim to build-depends.
This is needed for the Generic instance of PandocError.

Closes #2448.
2015-10-12 14:28:11 -07:00
John MacFarlane
0b91c73456 Removed unnecessary import. 2015-10-11 17:27:00 -07:00
John MacFarlane
1e8a25ad69 Percent-encode more special characters in URLs.
HTML, LaTeX writers adjusted.
The special characters are '<','>','|','"','{','}','[',']','^', '`'.

Closes #1640, #2377.
2015-10-11 17:12:50 -07:00
John MacFarlane
04307a1554 Define Typeable and Exception instances for PandocError.
Closes #2386.
2015-10-11 15:50:41 -07:00
John MacFarlane
0e78eba791 HTML reader/writer: better handling of "section" elements.
Previously `<section>` tags were just parsed as raw HTML
blocks.  With this change, section elements are parsed as
Div elements with the class "section".  The HTML writer will
use `<section>` tags to render these Divs in HTML5; otherwise
they will be rendered as `<div class="section">`.

Closes #2438.
2015-10-11 15:25:49 -07:00
John MacFarlane
60dcaa37d5 Native writer: format Div properly, with blocks separated. 2015-10-11 15:14:35 -07:00
John MacFarlane
e3a5abc64f Removed xltxtra, xunicode from LaTeX template.
Thanks Andrew Dunning.

Updated tests and changelog.
2015-10-10 16:12:50 -07:00
John MacFarlane
0123f01b5d Organized changelog. 2015-10-10 16:05:39 -07:00
John MacFarlane
422606b06e Small tweak on CONTRIBUTING.md. 2015-10-10 15:46:05 -07:00
John MacFarlane
ecae35e9a6 Updated man page from README. 2015-10-10 15:45:50 -07:00
John MacFarlane
c9569b9b06 Updated changelog (still needs reorganizing). 2015-10-10 14:57:57 -07:00
John MacFarlane
169cdf3fa2 Removed unneeded import. 2015-10-10 14:35:26 -07:00
John MacFarlane
72b038d201 Merge pull request #2412 from frerich/reader/docbook/xref_support
Added support for <xref> tag in DocBook reader
2015-10-10 14:18:28 -07:00
John MacFarlane
3cce552ff3 reveal.js template: add controls, progress variables.
Thanks to Grégoire Pineau.
2015-10-10 14:06:30 -07:00
John MacFarlane
e92fc4455b Adjusted latex template for changes to polyglossia-lang variable. 2015-10-10 13:53:42 -07:00
John MacFarlane
3e4713c2de Merge pull request #2441 from mb21/polyglossia-lang
Change variable to polyglossia-lang.name and .options
2015-10-10 13:52:36 -07:00
John MacFarlane
5e57beac8d Re-export pandocVersions from Text.Pandoc.
The actual definition has been moved to Text.Pandoc.Shared,
but to avoid breaking changes we reexport it here.
2015-10-10 13:42:02 -07:00
John MacFarlane
dd29289806 Adjusted man writer test for latest template changes. 2015-10-10 13:41:52 -07:00
John MacFarlane
ce07f1bd68 Man template improvements:
- Added comment stating that the page is autogenerated by
  pandoc, giving version.
- Added `adjusting` and `hyphenate` variables.
- Documented new variables.
2015-10-10 13:15:58 -07:00
John MacFarlane
4aabcf3d4e Merge pull request #2426 from alexvong1995/better-man-writer
Better man writer (revised)
2015-10-10 13:11:21 -07:00
John MacFarlane
087f8757b5 Merge pull request #2445 from adunning/patch-2
Improve links and cross-references in README.
2015-10-09 23:24:33 -07:00
John MacFarlane
a25c565f81 Added comment in .travis.yml to explain last change. 2015-10-09 22:33:15 -07:00
John MacFarlane
fa18e3d7e1 Use dist/setup/setup/sdist instead of cabal sdist.
This should help with older versions of cabal which
can't handle custom preprocessors.

See
http://stackoverflow.com/questions/16256987/haskell-packaging-cabal-package-with-custom-preprocessors
2015-10-09 22:30:35 -07:00
John MacFarlane
d62b1cf180 Setup.hs: rewrite so as not to use process, directory, filepath.
Using anything outside base is dangerous, since older
versions of ghc will link against two different versions.

See e.g.
- https://groups.google.com/forum/#!topic/pandoc-discuss/0r9Hhl730LY
- https://www.reddit.com/r/haskell/comments/3634x2/cabal_is_giving_a_weird_error_when_attempting_to/
- jaspervdj/hakyll#356
2015-10-09 21:50:20 -07:00
John MacFarlane
59193d81fb Removed unneeded imports in benchmark program. 2015-10-09 21:15:18 -07:00
John MacFarlane
70ebccf93b Updated benchmark program. 2015-10-09 18:08:47 -07:00
John MacFarlane
3687dc36d5 Test also on ghc 7.4.2.
Made make_travis_yml.hs a bit more robust.
2015-10-09 14:44:32 -07:00
John MacFarlane
114103d67f LaTeX reader: don't eat excess whitespace after macros.
Really close #2446.
2015-10-09 14:39:42 -07:00
John MacFarlane
8944ccdaca benchmark: Use Criterion.Monad not Criterion.Config. 2015-10-09 14:38:39 -07:00
John MacFarlane
1af8bc6f4d LaTeX reader: don't eat whitespace after macro with only opt arg.
Closes #2446.
2015-10-09 10:32:31 -07:00
John MacFarlane
c13494c808 New .travis.yml.
Autgenerated using make_travis_yml.hs.

This script has been modified to add GHCOPTS.

'make .travis.yml' regenerates it based on the tested-with
field of the cabal file.
2015-10-08 13:39:32 -07:00
Andrew Dunning
7a97ef75ec Correct setspace package usage in README.
Template configured to set `setstretch` directly rather than package options.
2015-10-08 16:27:26 -04:00
John MacFarlane
00e2ae8a67 Simplified travis.yml.
- Follows template on hvr/multi-ghc-travis.
- Don't build with ghc 7.4.2.
- Build tarball after main build.
2015-10-08 13:18:28 -07:00
John MacFarlane
fb8b7800ea Travis: use cabal-install 1.22 not head. 2015-10-08 13:09:54 -07:00
John MacFarlane
21c5b51ce2 travis: use ghc 7.10.2 instead of 7.10.1. 2015-10-08 12:30:13 -07:00
Andrew Dunning
5c803252fc Improve CSL documentation in README. 2015-10-08 13:37:26 -04:00
Andrew Dunning
32964ef860 Improve links and cross-references in README. 2015-10-08 12:04:17 -04:00
John MacFarlane
0abd0a4268 appveyor: don't cache HP or install wix toolset. 2015-10-07 15:20:20 -07:00
mb21
80b851a4cf Change variable to polyglossia-lang.name and .options
closes #2437
2015-10-07 22:53:09 +02:00
John MacFarlane
2e4c4575db appveyor.yml: back to cabal/HP based build.
Can't get stack build to work.

With 64 bit, we run into problems building hslua.
https://github.com/osa1/hslua/issues/22

With 32 bit, we run into problems with missing
symbol __mingw_vsprintf in building cmark.
2015-10-07 10:01:19 -07:00
John MacFarlane
1eda820c04 Beamer template: Added space after colon in figure caption. 2015-10-07 09:48:39 -07:00
John MacFarlane
6d3ad456a0 appveyor.yml - try with 32bit version of stack. 2015-10-06 22:39:51 -07:00
John MacFarlane
65b4199bee Updated changelog. Still need to organize this. 2015-10-06 22:37:19 -07:00
John MacFarlane
db936f7233 Allow http-types 0.9. 2015-10-06 09:14:32 -07:00
John MacFarlane
a3838d0530 appveyor.yml: added 'echo "" |' to work around broken stdin. 2015-10-05 22:50:04 -07:00