Commit graph

2544 commits

Author SHA1 Message Date
John MacFarlane
41eded5dd2 pandoc.hs : changed a couple writerName to writerName'.
This fixes a bug in which `pandoc --self-contained` would only
work properly if `-t html` were specified explicitly.
2011-11-23 20:15:24 -08:00
John MacFarlane
db1c16e856 Set --standalone implicitly when non-text output format.
(ODT, EPUB).  This restores pandoc's previous behavior.
You can again do `pandoc test.txt -o test.odt` and get a standalone
ODT file.

Resolves #351.
2011-11-22 14:22:22 -08:00
John MacFarlane
2f3d76844a Slight modification of --self-contained documentation. 2011-11-21 15:55:05 -08:00
John MacFarlane
00d811d986 Documented --self-contained and modified documentation for --offline. 2011-11-21 15:36:36 -08:00
John MacFarlane
fa3fe2d93d Version bump to 1.9.
We need to increment the second digit, since we removed an entire
module (S5) from the API.
2011-11-21 15:26:50 -08:00
John MacFarlane
21d74289ce Removed Text.Pandoc.S5 -- no longer needed. 2011-11-21 15:26:11 -08:00
John MacFarlane
af085e0c60 Added --self-contained, integrated into src/pandoc.hs.
--offline is now a deprecated synonym for --self-contained.

TODO: Documentation, remove old S5 module.
2011-11-21 15:24:28 -08:00
John MacFarlane
10b23e85b7 Changed Offline module to SelfContained, offline to makeSelfContained. 2011-11-21 15:09:42 -08:00
John MacFarlane
1cd928b591 Added userdata directory parameter to fns in Offline. 2011-11-21 00:41:08 -08:00
John MacFarlane
99f2ae2805 Added missing s5 files to data-files in pandoc.cabal. 2011-11-20 12:47:05 -08:00
John MacFarlane
9383260e20 Offline: Look for relative URLs in data directory if not found. 2011-11-20 12:32:54 -08:00
John MacFarlane
ef9395ced7 HTML writer: change s5-url to s5/default. 2011-11-20 12:11:38 -08:00
John MacFarlane
6aa9f521ea Depend on zlib (for Offline). 2011-11-20 12:05:01 -08:00
John MacFarlane
12a1ecc8b4 Offline: Recursively resolve @imports in css files. 2011-11-20 12:04:47 -08:00
John MacFarlane
3370fbe7c6 Converted Offline to use Tag String. 2011-11-19 19:30:27 -08:00
John MacFarlane
24d8961d05 Added Text.Pandoc.Offline module. 2011-11-19 00:20:00 -08:00
John MacFarlane
bea0fdf6e6 AsciiDoc: Don't use Roman numerals in ordered lists.
AsiiDoc doesn't support them.
2011-11-18 21:26:25 -08:00
John MacFarlane
1561d51cc5 Renamed to AsciiDoc. Fixed display math and escapes.
AsciiDoc does not seem to have consistent escaping rules.
2011-11-18 21:09:49 -08:00
John MacFarlane
1a3b7abd18 Spelling correction. 2011-11-18 19:57:29 -08:00
John MacFarlane
d01c632055 Added asciidoc output to README. 2011-11-18 19:56:58 -08:00
John MacFarlane
c552aa24cf Merge branch 'asciidoc' 2011-11-18 19:53:56 -08:00
John MacFarlane
679e94e53d Updated tests for correct col width. 2011-11-18 19:50:45 -08:00
John MacFarlane
4c122be58a Updated asciidoc test.
The test output still contains some mistakes.
2011-11-18 19:46:12 -08:00
John MacFarlane
c1710f9bde Skip raw HTML blocks in asciidoc. 2011-11-18 19:44:15 -08:00
John MacFarlane
457571e0c8 Fixed continuations in asciidoc definition lists. 2011-11-18 19:38:00 -08:00
John MacFarlane
f5af4903df Removed link title in asciidoc.
Apparently it is not supported.
2011-11-18 18:31:32 -08:00
John MacFarlane
965c9415b0 Ensure blank line before html passthrough. 2011-11-18 18:22:09 -08:00
John MacFarlane
11f6177670 Implemented ordered lists in asciidoc. 2011-11-18 18:19:47 -08:00
John MacFarlane
40c7d096cc Implemented bullet lists in asciidoc writer. 2011-11-18 17:50:41 -08:00
John MacFarlane
a9a4e24d29 Added fields to track list levels. 2011-11-18 17:01:38 -08:00
John MacFarlane
43c6c1d845 Updated ieee.csl and mhra.csl in test directory. 2011-11-18 13:41:40 -08:00
John MacFarlane
5ba1e92440 Updated chicago-author-date.csl.
The old version did not work properly for edited volumes
with no author.
2011-11-18 13:36:27 -08:00
John MacFarlane
e8e5ad210f Added comment about limitations of asciidoc conversion. 2011-11-18 13:23:09 -08:00
John MacFarlane
f6a0e75389 Supported tables in asciidoc, added table tests. 2011-11-18 13:19:22 -08:00
John MacFarlane
23c26bbc65 Pretty: Added chomp combinator. 2011-11-18 13:19:22 -08:00
John MacFarlane
823c0bcda9 Indicate when a multiblock footnote is omitted. 2011-11-17 23:13:29 -08:00
John MacFarlane
fcfbbd2caa Supported definition lists. 2011-11-17 22:35:39 -08:00
John MacFarlane
b7cbd42d07 Use attributes for author/date. 2011-11-17 00:52:45 -08:00
John MacFarlane
fed260439e Updated templates. 2011-11-16 19:17:18 -08:00
John MacFarlane
fc1c17b174 Added an asciidoc writer (partial).
Still TODO:

- documentation in README
- add default.asciidoc to templates/
- lists
- tables
- proper escaping
- footnotes with blank lines - print separately at end?
  currently they are just ignored.
- fix header (date gives weird result on pandoc README)
2011-11-16 19:14:55 -08:00
John MacFarlane
1da1d4ec24 Updated writer tests for new version of texmath. 2011-11-12 13:25:02 -08:00
John MacFarlane
bf4f8ffe55 LaTeX reader: Don't crash on commands like \itemsep.
Closes #314.
2011-11-12 13:20:29 -08:00
John MacFarlane
da57775171 LaTeX reader: Ignore empty groups {}, { }.
Closes #322.
2011-11-12 13:03:11 -08:00
John MacFarlane
8ed33f6662 Add date to EPUB titlepage and metadata.
Closes #323.  Thanks to Ralf Stephan for the patch (slightly modified).
2011-11-12 12:25:43 -08:00
John MacFarlane
9a46d75506 Implemented --citation-abbreviations option.
Mostly due to Andrea Rossato.
2011-11-11 17:54:34 -08:00
John MacFarlane
14620579c0 Changed misleading documentation on markdown2pdf.
markdown2pdf used to create a backup file if the output file
exists; it doesn't any longer, but the documentation still said
it does.
2011-11-10 15:37:52 -08:00
John MacFarlane
fc3826e078 markdown2pdf: Use proper temp directory for latex processing.
Previously /tmp/pandoc was used, which was problematic for
several reasons. Closes #339.
2011-11-10 11:55:09 -08:00
John MacFarlane
5c1c818501 Require citeproc-hs >= 0.3.4. 2011-11-09 13:23:59 -08:00
John MacFarlane
d74e8d14a5 Markdown citations: don't strip off initial space in locator.
Previously `[@item1 and nowhere else]` yielded the locator ", and nowhere
else", or, with the new citeproc-hs, "and nowhere else".
Now it yields " and nowhere else".
2011-11-09 13:18:01 -08:00
John MacFarlane
6a51897f33 Fixed markdown-citations.ieee.txt to use em-dashes for citation ranges.
This is a new feature in citeproc-hs.
2011-11-09 12:57:47 -08:00