Commit graph

593 commits

Author SHA1 Message Date
fiddlosopher
4f78aa9eca Change to defaultWriterOptions: standalone is False by default.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@685 788f1e2b-df1e-0410-8736-df70ead52e1b
2007-07-12 07:06:25 +00:00
fiddlosopher
7e0e06237b Minor formatting tweaks for pandoc website.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@684 788f1e2b-df1e-0410-8736-df70ead52e1b
2007-07-12 05:09:28 +00:00
fiddlosopher
ef83e744a1 Make sure custom header includes things needed for tables!
Also, remove paragraph spacing commands, so it looks more
different from the default.


git-svn-id: https://pandoc.googlecode.com/svn/trunk@683 788f1e2b-df1e-0410-8736-df70ead52e1b
2007-07-12 05:09:11 +00:00
fiddlosopher
9a7bfb99b3 Removed odf demo from website Examples page. (docbook2odf is buggy
on code blocks, and anyway we're demonstrating pandoc here, not docbook2odf.)


git-svn-id: https://pandoc.googlecode.com/svn/trunk@682 788f1e2b-df1e-0410-8736-df70ead52e1b
2007-07-12 05:08:20 +00:00
fiddlosopher
34d875aefd Slightly larger table of header identifiers, so stuff doesn't wrap on LaTeX
output.


git-svn-id: https://pandoc.googlecode.com/svn/trunk@681 788f1e2b-df1e-0410-8736-df70ead52e1b
2007-07-12 05:07:08 +00:00
fiddlosopher
62227fe259 README: Documented scheme for header identifiers in HTML.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@680 788f1e2b-df1e-0410-8736-df70ead52e1b
2007-07-12 04:33:15 +00:00
fiddlosopher
389c762afc Documented --toc/--table-of-contents option in pandoc man
page and README.


git-svn-id: https://pandoc.googlecode.com/svn/trunk@679 788f1e2b-df1e-0410-8736-df70ead52e1b
2007-07-12 03:45:00 +00:00
fiddlosopher
a9f894c130 If writer == "s5", don't set table of contents option.
(The TOC would have to be put on a slide, but in most cases
it won't fit anyway.)


git-svn-id: https://pandoc.googlecode.com/svn/trunk@678 788f1e2b-df1e-0410-8736-df70ead52e1b
2007-07-12 03:40:01 +00:00
fiddlosopher
2bca833da0 Changed order of options, for aesthetic reasons.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@677 788f1e2b-df1e-0410-8736-df70ead52e1b
2007-07-12 03:27:24 +00:00
fiddlosopher
6acc727c53 Further tweaks to website css.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@676 788f1e2b-df1e-0410-8736-df70ead52e1b
2007-07-11 21:38:52 +00:00
fiddlosopher
b7f32fdaf1 Small css tweaks for website. (Smaller sans-serif font,
larger monospace for balance.)


git-svn-id: https://pandoc.googlecode.com/svn/trunk@675 788f1e2b-df1e-0410-8736-df70ead52e1b
2007-07-11 07:42:24 +00:00
fiddlosopher
7bbb381a47 Changes to website:
+ Makefile: rebuild examples if 'demos' changes
+ New syntax for docbook2odf example
+ New --toc examples for HTML and RST


git-svn-id: https://pandoc.googlecode.com/svn/trunk@674 788f1e2b-df1e-0410-8736-df70ead52e1b
2007-07-11 07:35:39 +00:00
fiddlosopher
dfdcec77a3 Use smartquotes and table of contents in generating
README.html.


git-svn-id: https://pandoc.googlecode.com/svn/trunk@673 788f1e2b-df1e-0410-8736-df70ead52e1b
2007-07-11 07:28:12 +00:00
fiddlosopher
d809c663b7 Small changes to website.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@672 788f1e2b-df1e-0410-8736-df70ead52e1b
2007-07-10 16:56:04 +00:00
fiddlosopher
ec8a53aeac Updated features.txt in website.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@671 788f1e2b-df1e-0410-8736-df70ead52e1b
2007-07-10 06:47:04 +00:00
fiddlosopher
b106e51120 README: Documented man page writer, special title-line
conventions for man pages.


git-svn-id: https://pandoc.googlecode.com/svn/trunk@670 788f1e2b-df1e-0410-8736-df70ead52e1b
2007-07-10 06:19:49 +00:00
fiddlosopher
1ec47d3754 Use "Pandoc User Manuals" as bottom-left footer in man
pages.


git-svn-id: https://pandoc.googlecode.com/svn/trunk@669 788f1e2b-df1e-0410-8736-df70ead52e1b
2007-07-10 06:18:53 +00:00
fiddlosopher
aa1c8ac496 Recognize output filenames with any single-digit extension as man
format.


git-svn-id: https://pandoc.googlecode.com/svn/trunk@668 788f1e2b-df1e-0410-8736-df70ead52e1b
2007-07-10 06:18:23 +00:00
fiddlosopher
17caba2ffc Added a test case with an inline link containing bracketed text.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@667 788f1e2b-df1e-0410-8736-df70ead52e1b
2007-07-09 06:59:13 +00:00
fiddlosopher
5b2868add9 Minor cosmetic changes to runtests.pl ("passed" in
lowercase, to distinguish more clearly from "FAILED").


git-svn-id: https://pandoc.googlecode.com/svn/trunk@666 788f1e2b-df1e-0410-8736-df70ead52e1b
2007-07-09 06:58:41 +00:00
fiddlosopher
1780228b7c Markdown reader: Parse bracketed text in inline footnotes. Previously,
"test^[my [note] contains brackets]" would yield a note with contents
"my [note". Now it yields a note with contents "my [note] contains
brackets".  New function: inlinesInBrackets.

Resolves Issue 14. 


git-svn-id: https://pandoc.googlecode.com/svn/trunk@665 788f1e2b-df1e-0410-8736-df70ead52e1b
2007-07-09 06:51:06 +00:00
fiddlosopher
d58dca502e RST reader: Allow hyperlink target URIs to be split over multiple
lines, and to start on the line after the reference.
Resolves Issue 7. 


git-svn-id: https://pandoc.googlecode.com/svn/trunk@664 788f1e2b-df1e-0410-8736-df70ead52e1b
2007-07-09 06:23:59 +00:00
fiddlosopher
655363da51 Moved Text.ParserCombinators.Pandoc ->
Text.Pandoc.ParserCombinators.  This way, all the
Pandoc modules are in one place.


git-svn-id: https://pandoc.googlecode.com/svn/trunk@663 788f1e2b-df1e-0410-8736-df70ead52e1b
2007-07-09 03:39:25 +00:00
fiddlosopher
622d4e5223 Added type declaration for hsepBlocks in
Text.Pandoc.Blocks.


git-svn-id: https://pandoc.googlecode.com/svn/trunk@662 788f1e2b-df1e-0410-8736-df70ead52e1b
2007-07-09 03:38:03 +00:00
fiddlosopher
8bbd11bf21 + Cleaned up runtests.pl. Incorporated table tests in loop with
main writer tests.
+ Renamed tables.tex to tables.latex, tables.db to tables.docbook,
  for consistency with the writer tests.


git-svn-id: https://pandoc.googlecode.com/svn/trunk@661 788f1e2b-df1e-0410-8736-df70ead52e1b
2007-07-09 02:19:15 +00:00
fiddlosopher
69072efc00 Text.Pandoc.Blocks:
+ Fixed a bug in hPad, which previously padded the rightmost
  cell.  This is fixed by introducing a case for a singleton
  list.
+ Fixed Markdown writer so that the space after a table is not
  nested two spaces.
+ Adjusted Markdown table tests accordingly.


git-svn-id: https://pandoc.googlecode.com/svn/trunk@660 788f1e2b-df1e-0410-8736-df70ead52e1b
2007-07-09 01:36:53 +00:00
fiddlosopher
0ceb538ecd Markdown writer:
Fixed a small problem with lengths of dashed lines in tables.


git-svn-id: https://pandoc.googlecode.com/svn/trunk@659 788f1e2b-df1e-0410-8736-df70ead52e1b
2007-07-09 01:24:49 +00:00
fiddlosopher
ad7bb70cce Added --toc support to Markdown writer.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@658 788f1e2b-df1e-0410-8736-df70ead52e1b
2007-07-09 01:14:35 +00:00
fiddlosopher
56efd6176f Added support for --toc to RTF writer.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@657 788f1e2b-df1e-0410-8736-df70ead52e1b
2007-07-09 00:51:07 +00:00
fiddlosopher
489a2bb1d9 Moved isHeaderBlock from Text.Pandoc.Writers.HTML
to Text.Pandoc.Shared.


git-svn-id: https://pandoc.googlecode.com/svn/trunk@656 788f1e2b-df1e-0410-8736-df70ead52e1b
2007-07-09 00:50:14 +00:00
fiddlosopher
2d4a22d0be Regularized the scheme for unique header identifiers in HTML writer:
- punctuation is now all removed (except -)
 - spaces are turned into -
 - all lowercase
This scheme should be fairly predictable.
Updated tests accordingly.


git-svn-id: https://pandoc.googlecode.com/svn/trunk@655 788f1e2b-df1e-0410-8736-df70ead52e1b
2007-07-08 17:33:03 +00:00
fiddlosopher
497a1b7815 Changes to tests to accommodate r653.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@654 788f1e2b-df1e-0410-8736-df70ead52e1b
2007-07-08 17:09:37 +00:00
fiddlosopher
7f5638853b HTML writer changes:
+ change in scheme for construction of unique identifiers for headers:
  - all lowercase
  - spaces turn into -, not _
+ TOC items now have their own identifiers, starting with TOC-
+ when there is a TOC, headers link back to the corresponding TOC items,
  rather than the top of the TOC.


git-svn-id: https://pandoc.googlecode.com/svn/trunk@653 788f1e2b-df1e-0410-8736-df70ead52e1b
2007-07-08 17:09:17 +00:00
fiddlosopher
c3fb1dd4ea Added --toc support to RST writer.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@652 788f1e2b-df1e-0410-8736-df70ead52e1b
2007-07-08 16:48:54 +00:00
fiddlosopher
369a57e339 Modified markdown2pdf to run pdflatex a second time if --toc was
specified; otherwise the table of contents won't appear.


git-svn-id: https://pandoc.googlecode.com/svn/trunk@651 788f1e2b-df1e-0410-8736-df70ead52e1b
2007-07-08 16:40:07 +00:00
fiddlosopher
dfcae807b0 Man writer: Don't print .\" t at beginning unless we're
in --standalone mode.


git-svn-id: https://pandoc.googlecode.com/svn/trunk@650 788f1e2b-df1e-0410-8736-df70ead52e1b
2007-07-08 03:54:07 +00:00
fiddlosopher
e58a55eb41 LaTeX writer:
+ Leave extra blank line after \maketitle
+ Insert \tableofcontents if --toc option was selected

Test suite:
+ extra blank line after \maketitle in writer.latex


git-svn-id: https://pandoc.googlecode.com/svn/trunk@649 788f1e2b-df1e-0410-8736-df70ead52e1b
2007-07-08 03:48:07 +00:00
fiddlosopher
608b22e9dd HTML writer: Slight change in code for generating unique
identifiers.  The numbers used after duplicate identifiers
are now separated from them by a hyphen:  Duplicate-1
rather than Duplicate1.


git-svn-id: https://pandoc.googlecode.com/svn/trunk@648 788f1e2b-df1e-0410-8736-df70ead52e1b
2007-07-08 03:40:22 +00:00
fiddlosopher
5b68993a3e Added tests for man writer to runtests.pl.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@647 788f1e2b-df1e-0410-8736-df70ead52e1b
2007-07-08 03:39:24 +00:00
fiddlosopher
e252fa300a Fixed bug in Notes ($$ instead of <>), which caused
note blocks to be indented.


git-svn-id: https://pandoc.googlecode.com/svn/trunk@646 788f1e2b-df1e-0410-8736-df70ead52e1b
2007-07-08 03:38:54 +00:00
fiddlosopher
4e81ef28ed Added version of test suite for man page.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@645 788f1e2b-df1e-0410-8736-df70ead52e1b
2007-07-08 03:38:14 +00:00
fiddlosopher
595f6bf39a Man page templates:
Escaped --'s in option list headers, so they won't be parsed
as Em dashes when -S mode is used.


git-svn-id: https://pandoc.googlecode.com/svn/trunk@644 788f1e2b-df1e-0410-8736-df70ead52e1b
2007-07-08 03:31:26 +00:00
fiddlosopher
dc7102eec3 Use -S option in building man pages.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@643 788f1e2b-df1e-0410-8736-df70ead52e1b
2007-07-08 03:22:00 +00:00
fiddlosopher
3f3c29f9a4 Added test suites for RST, markdown, and man tables.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@642 788f1e2b-df1e-0410-8736-df70ead52e1b
2007-07-08 03:11:26 +00:00
fiddlosopher
766dbb9899 Updated tests to account for changes in HTML writer (identifiers).
git-svn-id: https://pandoc.googlecode.com/svn/trunk@641 788f1e2b-df1e-0410-8736-df70ead52e1b
2007-07-08 03:09:26 +00:00
fiddlosopher
a414ec9d63 Adjusted copyright notices to 2006-7; use
real email address instead of lamely attempting
to obfuscate.


git-svn-id: https://pandoc.googlecode.com/svn/trunk@640 788f1e2b-df1e-0410-8736-df70ead52e1b
2007-07-07 22:51:55 +00:00
fiddlosopher
8e1f484353 Added table tests for all writers.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@639 788f1e2b-df1e-0410-8736-df70ead52e1b
2007-07-07 22:50:12 +00:00
fiddlosopher
956deeda4b Haddock documentation for Text.Pandoc.Blocks.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@638 788f1e2b-df1e-0410-8736-df70ead52e1b
2007-07-07 22:37:11 +00:00
fiddlosopher
3e6184763e Man writer: Use integral n measures instead of fractional i
measures.  Calculate on basis of a 70 character line, since
the default is 78 but the table will appear indented 8 spaces
in standard man output.


git-svn-id: https://pandoc.googlecode.com/svn/trunk@637 788f1e2b-df1e-0410-8736-df70ead52e1b
2007-07-07 22:18:46 +00:00
fiddlosopher
f82b1f8eec Added Maintainer and Copyright fields to pandoc.cabal.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@636 788f1e2b-df1e-0410-8736-df70ead52e1b
2007-07-07 21:57:18 +00:00