Commit graph

3658 commits

Author SHA1 Message Date
John MacFarlane
e3ccff1f2d Removed MakeManPages from cabal extra-files. 2013-01-19 16:01:16 -08:00
John MacFarlane
ce3d60d98e Updated copyright dates. 2013-01-19 11:11:45 -08:00
John MacFarlane
87b8e3a81e Improved make_osx_package.sh. 2013-01-19 11:11:34 -08:00
John MacFarlane
d9c996d37a Change date on README. 2013-01-19 11:11:24 -08:00
John MacFarlane
a12d4d77c5 Increase date on copyright. 2013-01-19 11:11:12 -08:00
John MacFarlane
27e7c57721 LaTeX test updates for latest changes to template & h-k. 2013-01-19 10:41:42 -08:00
John MacFarlane
2fbe611a96 Get rid of compiler warnings in Tests.Helpers. 2013-01-19 10:41:12 -08:00
John MacFarlane
84bfe361b0 Updated changelog. 2013-01-19 09:50:51 -08:00
John MacFarlane
0337ea7a18 Removed sudos from make_osx_package.sh. 2013-01-19 09:44:02 -08:00
John MacFarlane
96c4e76669 Fixed bug in make_osx_package.sh. 2013-01-19 09:41:03 -08:00
John MacFarlane
83a4e50f76 Updated templates.
Use upquote package if it exists.
2013-01-19 09:40:46 -08:00
John MacFarlane
5720dc0ba9 Updated Makefile to use Hackage pandoc-types. 2013-01-18 21:37:03 -08:00
John MacFarlane
9596b7d82f Updated changelog with more Builder API. 2013-01-18 20:56:25 -08:00
John MacFarlane
bfc17917e9 Updated changelog with Builder changes. 2013-01-18 20:52:34 -08:00
John MacFarlane
30da1a5b70 Updated changelog. 2013-01-18 20:37:30 -08:00
John MacFarlane
4ed82686e4 Add data-cites field to citations in HTML5.
This contains a space-separated list of citation IDs.
2013-01-18 12:16:12 -08:00
John MacFarlane
809d74b86d Set locale encoding in test suite.
This prevents a "commit buffer (invalid argument)" error on
Windows.
2013-01-18 11:23:09 -08:00
John MacFarlane
8eab759a9c RTF writer: Added writeRTFWithEmbeddedImages.
* RTF writer:  Export writeRTFWithEmbeddedImages instead of
  rtfEmbedImage.
* Text.Pandoc: Use writeRTFWithEmbeddedImages for RTF.
* Moved code for embedding images in RTF out of pandoc.hs.
2013-01-18 10:33:37 -08:00
John MacFarlane
4aea26e8e1 Convert highlighting-kate language to listings language
if --listings is used.

Closes #704.
2013-01-17 19:47:03 -08:00
John MacFarlane
820a9143e7 MIME: Support vs and fs as text/plain.
These are used in revealjs css.
2013-01-17 11:40:14 -08:00
John MacFarlane
054283d12f Revert "Markdown reader: Be less restrictive about class attributes."
This reverts commit b158b3fb21.
2013-01-17 11:24:45 -08:00
John MacFarlane
efcf19e5a4 Slight modification of lhs instructions. 2013-01-17 11:24:21 -08:00
John MacFarlane
19aa163904 Updated extensions in README. 2013-01-16 19:07:21 -08:00
John MacFarlane
b158b3fb21 Markdown reader: Be less restrictive about class attributes.
This allows attributes like `C++`.  Any nonspace and non-}.
2013-01-16 15:35:51 -08:00
John MacFarlane
31fa80fdcb Fixed problem with duplicate ids in epub. 2013-01-16 12:16:49 -08:00
John MacFarlane
49820d5b51 Implemented Ext_link_attributes in markdown reader.
Also simplified source URL and link title parsers.
2013-01-16 11:25:17 -08:00
John MacFarlane
517c4b5f31 README clarification. 2013-01-16 09:25:12 -08:00
John MacFarlane
7194107733 Implemented Ext_mmd_header_identifiers in markdown writer. 2013-01-16 09:20:48 -08:00
John MacFarlane
4926645578 Implemented Ext_mmd_header_identifiers in markdown reader. 2013-01-16 09:17:20 -08:00
John MacFarlane
923204d553 Options: Added multimarkdownExtensions.
Also added 'markdown_mmd' as input/output option.
2013-01-16 08:52:54 -08:00
John MacFarlane
fa71969e81 LaTeX writer: Prevent paragraphs containing only linebreaks or spaces. 2013-01-15 23:02:08 -08:00
John MacFarlane
a3381331f8 README on docx styles: Image Caption, not Picture Caption. 2013-01-15 20:17:43 -08:00
John MacFarlane
eebed6bc48 Added writerHtmlQTags and --html-q-tags option.
The previous default was to use `<q>` tags in HTML5.
But `<q>` tags are also valid HTML4, and they are not very
robust in HTML5.  Some user agents don't support them,
and some CSS resets prevent pandoc's quotes CSS from working
properly (e.g. bootstrap).  It seems a better default just
to insert quote characters, but the option is provided  for
those who have gotten used to using `<q>` tags.
2013-01-15 18:50:36 -08:00
John MacFarlane
93b373d4eb Added Brent Yorgey to Authors. 2013-01-15 13:43:36 -08:00
John MacFarlane
ffbe7cc10d Added Denis Laxalde to Authors. 2013-01-15 13:32:23 -08:00
John MacFarlane
011c1cf4c9 ADded Arlo O'Keeffe to Authors. 2013-01-15 13:04:54 -08:00
John MacFarlane
bf3a911a1c Changed Ext_autolink_urls -> Ext_autolink_bare_uris.
Added tests.
2013-01-15 12:44:50 -08:00
John MacFarlane
e9b3d5aa7a Added lots of tests for bare URIs. 2013-01-15 12:28:31 -08:00
John MacFarlane
5971721ec1 Case-insensitive parsing of URI schemes. 2013-01-15 11:48:21 -08:00
John MacFarlane
95c02f6b57 Parsing: Improve oneOfStrings, export oneOfStringsCI.
oneOfStrings will now take the longest match it can in a
list of strings, so if 'foo' and 'foobar' are both included,
'foobar' will match even if 'foo' is first in the list.
2013-01-15 11:47:35 -08:00
John MacFarlane
e0e36ce543 Revised URI parser.
* It no longer uses Network.URIs URI parser, which is too restrictive
  (not allowing unicode URIs unless encoded).
* It allows many more schemes.
* It better handles punctuation so as to avoid capturing trailing
  punctuation in bare URLs.
2013-01-15 10:52:02 -08:00
John MacFarlane
7bc37e4414 Use 'fig:' instead of '\SOH' in title to indicate figure.
Revises 1a4b47e933
2013-01-15 08:46:09 -08:00
John MacFarlane
1a4b47e933 Implemented Ext_implicit_figures.
* In markdown reader, add a '\1' character to the beginning
  of the title of an image that is alone in its paragraph,
  if implicit_figures extension is selected.
* In writers, check for Para [Image alt (src,'\1':tit)] and treat
  it as a figure if possible.
* Updated tests.

This is a bit of a hack, but it allows us to make implicit_figures
an extension of the markdown reader, rather than the writers.
2013-01-14 20:53:08 -08:00
John MacFarlane
56aa257ddb Removed some cruft. 2013-01-14 20:18:53 -08:00
John MacFarlane
51e0bd277a Parsing: Fixed uri -- escape unicode URLs.
Otherwise Network.URI.parseURI fails on e.g. Chinese
URLs.  Changed an incorrect test in markdown-reader-more.
2013-01-14 17:38:34 -08:00
John MacFarlane
0ef24d1518 Added Ext_implicit_figures.
No code to hook this in yet.
2013-01-14 17:08:56 -08:00
John MacFarlane
127851ea61 Parsing: Simplified and improved singleQuoteStart.
This makes 's', 'l', etc. parse properly.
Formerly we had some English-centric heuristics, but they
are no longer needed now that we keep track of the last
'Str' position in state.

Closes #698.
2013-01-14 16:06:45 -08:00
John MacFarlane
360f8a3d01 Makefile: make prep now handles updates to pandoc-types. 2013-01-14 15:15:09 -08:00
John MacFarlane
45895b561f RST writer: Fixes bug with links with duplicate text.
We now (a) use anonymous links for links with inline URLs, and
(b) use an inline link instead of a reference link if the
reference link would require a label that has already been
used for a different link.

Closes #511.
2013-01-13 23:00:05 -08:00
John MacFarlane
f191aa4a98 RST writer: Properly handle images with no alt text.
Closes #678.
2013-01-13 20:24:34 -08:00