Commit Graph
3872 Commits
Author SHA1 Message Date
John MacFarlane 29a17b1767 Merge pull request #733 from jrunningen/master
Mediawiki reader: Don't require blanklines after tables.
2013-01-28 09:42:59 -08:00
John MacFarlane 72d11ad20b Markdown/RST reader: Skip blank lines.
This fixes a subtle regression involving grid tables with
empty cells.  Closes #732.

Also added test for grid table with empty cells.
2013-01-27 22:13:05 -08:00
Jeff Runningen efddb85d46 Mediawiki reader: Don't require blanklines after tables. 2013-01-27 23:15:46 -05:00
John MacFarlane 9d549ab683 RST writer: Use .. code:: language for code blocks with language.
Closes #721.
Also fixed whitespace in lhs tests.
2013-01-26 16:12:11 -08:00
John MacFarlane 2f50406c7f Markdown writer: Use autolink when link text matches url.
Previously we also checked for a null title, but this
test fails for links produced by citeproc-hs in bibliographies.

So, if the link has a title, it will be lost on conversion
to an autolink, but that seems okay.
2013-01-26 14:01:50 -08:00
John MacFarlane 412863df7f Removed hsmarkdown. 2013-01-26 09:21:59 -08:00
John MacFarlane b6dc21bacf Markdown reader: Simplified and sped up str parser.
We no longer needed the smart quote complexity, because of
improvements to singleQuoteStart and singleQuoteEnd.

And we were able to move the check for intraword underscore
to the emphasis parser.
2013-01-25 23:30:27 -08:00
John MacFarlane c18fd7e643 RST reader: Allow anonymous form of explicit links.
`hello <url>`__
Closes #724.
2013-01-25 21:10:02 -08:00
John MacFarlane ce4b7fc416 Changed copyright date range on Markdown reader. 2013-01-25 19:53:18 -08:00
John MacFarlane 52a6ec7297 Minor code cleanup. 2013-01-25 19:50:34 -08:00
John MacFarlane ae74558114 Markdown reader: Moved guardEnabled to definitionList.
From definitionListItem.
Slight performance improvement.
2013-01-25 19:43:30 -08:00
John MacFarlane 846be80c26 Markdown reader: Performance improvement in str parser.
Moved a guardEnabled out of an inner loop.
2013-01-25 18:42:40 -08:00
John MacFarlane 71c5ebe682 Use anyLine everywhere instead of 'manyTill anyChar newline'. 2013-01-25 18:32:15 -08:00
John MacFarlane f989ff2d5d Parsing: More improvements of anyLine parser. 2013-01-25 18:32:06 -08:00
John MacFarlane d27dc6a420 More anyLine tweaks: Use incSourceLine. 2013-01-25 17:59:57 -08:00
John MacFarlane 0801b120b9 anyLine: Set position properly. 2013-01-25 17:53:50 -08:00
John MacFarlane 286fc44bba Makefile: Don't enable tests in 'make prof'. 2013-01-25 17:53:39 -08:00
John MacFarlane f7ecbd03d4 Markdown reader: More efficient version of scanForPipe. 2013-01-25 16:13:58 -08:00
John MacFarlane 4c74b7aaab Parsing: Much faster new version of anyLine.
Not only faster but uses less memory.
2013-01-25 15:32:10 -08:00
John MacFarlane 0bc9b0679b Increased ansi-terminal upper bound. 2013-01-25 12:37:45 -08:00
John MacFarlane 645bf4ed2f .gitmodule: Use https rather than git URL.
iThis helps people behind firewalls.
2013-01-25 12:25:54 -08:00
John MacFarlane f135ac2389 make-pandoc-man-pages: CPP macros to import right time module. 2013-01-25 12:17:55 -08:00
John MacFarlane bd645d9ae5 Relaxed old-time version bound, allowing 1.0.*.
I see no reason for the restriction, which requires a recent
Haskell Platform.

The module is only used in make-pandoc-man-pages anyway.
2013-01-25 11:24:52 -08:00
John MacFarlane 8b2e2e623f Fixed Makefile PHONY line. 2013-01-25 11:09:12 -08:00
John MacFarlane be72a776b7 Updated changelog. 1.10.0.5 2013-01-23 19:52:59 -08:00
John MacFarlane e97b8ae946 Version bump to 1.10.0.5. 2013-01-23 19:39:07 -08:00
John MacFarlane 8d5d490d7a Makefile: Added sdist. 2013-01-23 19:26:39 -08:00
John MacFarlane fe337b07f7 Use hsb2hs preprocessor instead of TH for embed_data_files.
This should work on Windows, unlike the TH solution with
file-embed.
2013-01-23 19:26:39 -08:00
John MacFarlane daeb52d4e0 Eliminated use of TH in test suite. 2013-01-23 19:26:39 -08:00
John MacFarlane 9c299d282f Added Text.Pandoc.Data (non-exported) if embed_data_files selected.
This module just exports the association list of embedded data files,
which is used by Shared.
2013-01-23 19:26:39 -08:00
John MacFarlane 7a0062a8d5 Fixed regressions in fenced code blocks.
*   Tilde code fences can again take bare language.

    So

        ~~~ haskell

    is okay, not just

        ~~~ {.haskell}

*   Backtick code blocks can take the bracketed attributes.
*   Backtick code blocks don't require a language.
*   Consolidated code for the two kinds of fenced code blocks.

Closes #722.
2013-01-23 13:21:53 -08:00
John MacFarlane 7cd5239d60 Merge branch 'master' of github.com:jgm/pandoc 2013-01-23 12:50:38 -08:00
John MacFarlane a5da6898c9 Changes to make-windows-installer.bat.
* Exit batch file if any of the cabal-dev installs fail.
* There's no longer any need to reinstall highlighting-kate.
* Don't start with a 'cabal update'; leave that to the user.
2013-01-22 19:43:32 -08:00
John MacFarlane 8448b8a386 README: Split up documentation of table extensions. 2013-01-22 19:31:03 -08:00
John MacFarlane 94ed282adf Merge branch 'master' of github.com:jgm/pandoc 2013-01-22 10:26:49 -08:00
John MacFarlane d52a1ec18f Another fix to the CPP macro in EPUB writer. 2013-01-22 08:48:43 -08:00
John MacFarlane 613a872c01 windowns installer: Removed --disable-library-for-ghci. 2013-01-22 08:47:03 -08:00
John MacFarlane 294df9deed Fixed MIN_VERSION - need to sub _ for - in blaze-html. 2013-01-22 08:32:33 -08:00
John MacFarlane d1e3bc7df4 Force reinstall for windows package. 2013-01-22 08:16:40 -08:00
John MacFarlane ddfbcae782 Corrected name of blank_before_blockquote in README.
Closes #718.
2013-01-22 07:53:32 -08:00
John MacFarlane 7415462dc9 Markdown reader: Try lhsCodeBlock before rawTeXBlock.
Otherwise \begin{code}...\end{code} isn't handled
properly in markdown+lhs.

Thanks to Daniel Miot for noticing the bug and
suggesting the fix.
2013-01-21 21:36:31 -08:00
John MacFarlane 420845a32c Merge pull request #717 from juhp/patch-1
EPUB: condition Blaze Utf8 module name import on blaze-html version
2013-01-21 17:37:50 -08:00
Jens Petersen 88d0ca8ea7 EPUB: condition Blaze Utf8 module name import on blaze-html version
blaze-html/blaze-markup-0.5 has Text.Blaze.Html.Renderer.Utf8
whereas blaze-html-0.4 has Text.Blaze.Renderer.Utf8.
So this needs to be conditional on the version for pandoc
still be with blaze-html-0.4.x
2013-01-22 10:27:34 +09:00
John MacFarlane b4232fdbda Updated tested-with in cabal file. 2013-01-21 14:05:36 -08:00
John MacFarlane f468db9277 LaTeX template: Use \urlstyle{same} to avoid monospace URLs. 2013-01-21 11:52:00 -08:00
John MacFarlane 26d30d6d38 Use proportional font for email autolinks with obfuscation.
Closes #714.
2013-01-21 11:28:35 -08:00
John MacFarlane af84953781 Markdown reader: Fixed bug with headerless grid tables.
The 1.10 code assumed that each table header cell contains
exactly one block. That failed for headerless tables (0) and also
for tables with multiple blocks in a header cell.

The code is fixed and tests provided. Thanks to Andrew Lee for
pointing out the bug.
2013-01-21 09:52:24 -08:00
John MacFarlane c4b93bc3e7 Fixed bug in uri parser.
The bug prevented an autolink at the end of a string (e.g.
at the end of a line block line) from counting as a link.

Closes #711.
2013-01-20 20:23:50 -08:00
John MacFarlane 65528e48f8 make-windows-installer: force reinstall of citeproc-hs and h-k. 2013-01-20 19:36:44 -08:00
John MacFarlane 93c9a1c167 Version bump to 1.10.0.4. 1.10.0.4 2013-01-20 19:25:42 -08:00