Commit graph

493 commits

Author SHA1 Message Date
fiddlosopher
f0fb4c496b Changes to functions for character escaping:
+ Removed escapeCharAsString
+ Added escapeStringUsing
+ Changed backslashEscape to backslashEscapes, which
  now returns an association list of escapes to be
  passed to escapeStringUsing


git-svn-id: https://pandoc.googlecode.com/svn/trunk@748 788f1e2b-df1e-0410-8736-df70ead52e1b
2007-07-21 21:34:13 +00:00
fiddlosopher
33a2f1c78f Changed man page markdown sources to use new
system for specifying title, section, and header information.


git-svn-id: https://pandoc.googlecode.com/svn/trunk@747 788f1e2b-df1e-0410-8736-df70ead52e1b
2007-07-21 20:36:08 +00:00
fiddlosopher
1a90879f8b Use capital letters for title in sample man page title block.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@746 788f1e2b-df1e-0410-8736-df70ead52e1b
2007-07-21 20:33:26 +00:00
fiddlosopher
2f7a38e1ab Changed system for indicating man page title, section,
header and footer.  Documented in README.


git-svn-id: https://pandoc.googlecode.com/svn/trunk@745 788f1e2b-df1e-0410-8736-df70ead52e1b
2007-07-21 20:30:40 +00:00
fiddlosopher
6d8f0e29d9 Updated website feature descriptions.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@744 788f1e2b-df1e-0410-8736-df70ead52e1b
2007-07-21 19:55:56 +00:00
fiddlosopher
2df03311c3 README changes:
+ Documented superscript, subscript, and strikeout syntax
+ Modified description of LaTeX packages needed for markdown2pdf


git-svn-id: https://pandoc.googlecode.com/svn/trunk@743 788f1e2b-df1e-0410-8736-df70ead52e1b
2007-07-21 19:10:28 +00:00
fiddlosopher
ec0445de0a Added Strikeout, Superscript, and Subscript to
refsMatch function in Pandoc.Shared.


git-svn-id: https://pandoc.googlecode.com/svn/trunk@742 788f1e2b-df1e-0410-8736-df70ead52e1b
2007-07-21 19:09:04 +00:00
fiddlosopher
a009a4b387 Added Strikeout, Superscript, and Subscript as
Inline elements (Pandoc.Definition).


git-svn-id: https://pandoc.googlecode.com/svn/trunk@741 788f1e2b-df1e-0410-8736-df70ead52e1b
2007-07-21 19:07:15 +00:00
fiddlosopher
bc192dac9c Small modification in formatting of web demos.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@740 788f1e2b-df1e-0410-8736-df70ead52e1b
2007-07-21 15:52:50 +00:00
fiddlosopher
e02fb21452 Refactored character escaping in Text.Pandoc.Writers.Markdown using
escapeCharAsString.


git-svn-id: https://pandoc.googlecode.com/svn/trunk@739 788f1e2b-df1e-0410-8736-df70ead52e1b
2007-07-19 08:09:17 +00:00
fiddlosopher
7d2c9c6fe6 Added escapeCharAsString to Text.Pandoc.Shared.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@738 788f1e2b-df1e-0410-8736-df70ead52e1b
2007-07-19 08:08:51 +00:00
fiddlosopher
94c6a1b250 Updated INSTALL instructions with some extra
clarifications and links.


git-svn-id: https://pandoc.googlecode.com/svn/trunk@737 788f1e2b-df1e-0410-8736-df70ead52e1b
2007-07-16 16:30:04 +00:00
fiddlosopher
9fdf2b27be Changed destination in changelog to 'unstable', because
lintian complains about 'UNRELEASED'.


git-svn-id: https://pandoc.googlecode.com/svn/trunk@736 788f1e2b-df1e-0410-8736-df70ead52e1b
2007-07-16 08:25:47 +00:00
fiddlosopher
8d0fcce06a Backup 'var' before making deb and restore after.
Reason: In because in the process of making the debian package,
'var' gets overwritten with the local debian build directory as
DESTDIR. This will break future 'make uninstall's, which will 
try to delete files from there instead of /usr/local (or wherever).


git-svn-id: https://pandoc.googlecode.com/svn/trunk@735 788f1e2b-df1e-0410-8736-df70ead52e1b
2007-07-16 08:24:39 +00:00
fiddlosopher
0cba4f2c95 Brought debian/changelog up to date.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@734 788f1e2b-df1e-0410-8736-df70ead52e1b
2007-07-16 07:28:45 +00:00
fiddlosopher
9e4c28d5f4 markdown2pdf.in: Test for --table-of-contents as
well as --toc.


git-svn-id: https://pandoc.googlecode.com/svn/trunk@733 788f1e2b-df1e-0410-8736-df70ead52e1b
2007-07-16 07:26:03 +00:00
fiddlosopher
48d67d0d1f Simplified inlinesInBalanced, using lookAhead.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@732 788f1e2b-df1e-0410-8736-df70ead52e1b
2007-07-16 07:22:17 +00:00
fiddlosopher
0ba858f22d Revised package synopsis in pandoc.cabal.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@731 788f1e2b-df1e-0410-8736-df70ead52e1b
2007-07-16 01:51:03 +00:00
fiddlosopher
c14082cab2 Modified the test of a link containing an underscore in
both the label and the URL.  The underscore must be
backslash-escaped.


git-svn-id: https://pandoc.googlecode.com/svn/trunk@730 788f1e2b-df1e-0410-8736-df70ead52e1b
2007-07-15 23:54:02 +00:00
fiddlosopher
7e1370aa87 Markdown reader: Added inlinesInBalanced parser combinator to
unify treatment of embedded brackets in links and inline footnotes.
Note that the solution adopted here causes one of John Gruber's
markdown tests to fail:
  [with_underscore](/url/with_underscore)
Here the whole phrase "underscore](/url/with" is treated as
emphasized. The previous version of the markdown reader handled
this the way Gruber's script handles it, but it ran into trouble
on the following:
  [link with verbatim `]`](/url)
where the inner ] was treated as the end of the reference link
label. I don't see any good way to handle both cases in the framework
of pandoc, so I choose to require an escape in the first example:
  [with\_underscore](/url/with_underscore)


git-svn-id: https://pandoc.googlecode.com/svn/trunk@729 788f1e2b-df1e-0410-8736-df70ead52e1b
2007-07-15 23:53:22 +00:00
fiddlosopher
8e71c4c388 Added charsInBalanced parser combinator to Text.Pandoc.ParserCombinators.
This is not currently used, but should be useful in parsing strings
containing balanced pairs of brackets or parentheses.


git-svn-id: https://pandoc.googlecode.com/svn/trunk@728 788f1e2b-df1e-0410-8736-df70ead52e1b
2007-07-15 23:48:17 +00:00
fiddlosopher
54dd46c07c debian/control: For pandoc package, suggest
'texlive-latex-recommended | tetex-extra' instead of
'texlive-latex-base | tetex-bin'.  This brings in fancyvrb,
which is used in the default LaTeX header, and (at least
in texlive) unicode support.


git-svn-id: https://pandoc.googlecode.com/svn/trunk@727 788f1e2b-df1e-0410-8736-df70ead52e1b
2007-07-15 17:27:11 +00:00
fiddlosopher
ad0d4bf41e Changes to ConTeXt test suite.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@726 788f1e2b-df1e-0410-8736-df70ead52e1b
2007-07-15 17:04:37 +00:00
fiddlosopher
2f928d4c9d ConTeXt writer changes:
+ Use defined blockquote environment for block quotes (smaller
  font, no indent, narrower text)
+ Changed default font to 12pt
+ Changed default page layout


git-svn-id: https://pandoc.googlecode.com/svn/trunk@725 788f1e2b-df1e-0410-8736-df70ead52e1b
2007-07-15 15:08:27 +00:00
fiddlosopher
676b1ab149 Documented ConTeXt writer in README. Removed statement
that table output is limited to HTML and LaTeX writers,
since it is now supported in all writers.


git-svn-id: https://pandoc.googlecode.com/svn/trunk@724 788f1e2b-df1e-0410-8736-df70ead52e1b
2007-07-15 03:24:48 +00:00
fiddlosopher
da645eb24b Main.hs: If writer is "context", automatically select
smart quotes option.
web/demos:  Removed redundant -S in context writer demo.


git-svn-id: https://pandoc.googlecode.com/svn/trunk@723 788f1e2b-df1e-0410-8736-df70ead52e1b
2007-07-15 03:20:14 +00:00
fiddlosopher
229b3107b6 Documented ConTeXt writer in pandoc man page.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@722 788f1e2b-df1e-0410-8736-df70ead52e1b
2007-07-15 03:17:33 +00:00
fiddlosopher
a648592dc2 Changes to the website:
+ Mentioned ConTeXt writer in general description.
+ Added two demos involving the ConTeXt writer.


git-svn-id: https://pandoc.googlecode.com/svn/trunk@721 788f1e2b-df1e-0410-8736-df70ead52e1b
2007-07-15 03:14:05 +00:00
fiddlosopher
8f473af610 If output file has .ctx or .context extension,
assume it is ConTeXt format unless otherwise specified.


git-svn-id: https://pandoc.googlecode.com/svn/trunk@720 788f1e2b-df1e-0410-8736-df70ead52e1b
2007-07-15 03:07:26 +00:00
fiddlosopher
dbd5c44907 Updated FreeBSD pkg-descr to mention groff man and
ConTeXt output formats.


git-svn-id: https://pandoc.googlecode.com/svn/trunk@719 788f1e2b-df1e-0410-8736-df70ead52e1b
2007-07-15 03:02:10 +00:00
fiddlosopher
836f893cfc Updated package descriptions in debian/control to mention ConTeXt writer.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@718 788f1e2b-df1e-0410-8736-df70ead52e1b
2007-07-15 03:01:13 +00:00
fiddlosopher
ca50140c91 Updated package description in pandoc.cabal to
include ConTeXt output format.


git-svn-id: https://pandoc.googlecode.com/svn/trunk@717 788f1e2b-df1e-0410-8736-df70ead52e1b
2007-07-15 02:58:30 +00:00
fiddlosopher
465b2d791e Merged branches/context: addition of a ConTeXt writer
<http://www.pragma-ade.nl/>.
+ Text.Pandoc.Writers.ConTeXt added.
+ Text.Pandoc modified to export the basic ConTeXt writer.
+ Main.hs modified to recognize 'context' as a writer.
+ ConTeXtHeader added to headers
+ DefaultHeaders.hs template modified to include ConTeXt header
+ Tests added (writer.context, tables.context), and runtests.pl
  modified to run them
+ pandoc.cabal updated to include Text.Pandoc.Writers.ConTeXt. 


git-svn-id: https://pandoc.googlecode.com/svn/trunk@716 788f1e2b-df1e-0410-8736-df70ead52e1b
2007-07-15 02:56:34 +00:00
fiddlosopher
78aeebc143 Removed an unused function in LaTeX writer.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@714 788f1e2b-df1e-0410-8736-df70ead52e1b
2007-07-15 02:48:21 +00:00
fiddlosopher
8ce4b2fb62 Simplified special character escaping code in LaTeX writer.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@705 788f1e2b-df1e-0410-8736-df70ead52e1b
2007-07-14 17:59:06 +00:00
fiddlosopher
ab74f97422 Small comment fix in LaTeX writer.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@704 788f1e2b-df1e-0410-8736-df70ead52e1b
2007-07-14 17:28:26 +00:00
fiddlosopher
36f67df371 Removed some unnecessary files from web directory.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@700 788f1e2b-df1e-0410-8736-df70ead52e1b
2007-07-14 06:38:14 +00:00
fiddlosopher
9a96429a1a Revamped website.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@699 788f1e2b-df1e-0410-8736-df70ead52e1b
2007-07-14 06:28:09 +00:00
fiddlosopher
532dd43139 Changed title in README to "Pandoc User's Guide."
git-svn-id: https://pandoc.googlecode.com/svn/trunk@698 788f1e2b-df1e-0410-8736-df70ead52e1b
2007-07-14 06:27:34 +00:00
fiddlosopher
a786f43e8c Change to footnotes in HTML writer: Instead of putting the footnote
backlink on a line by itself, after the content of the note,
we now put it at the end of the last paragraph of the footnote.
This saves space and looks better.  More specifically:
+ If the last block of the note is a Para or Plain block, the
  backlink is put at the end of that block's contents.
+ Otherwise, the backlink is put in a separate Plain block by
  itself, after the footnote's contents. 


git-svn-id: https://pandoc.googlecode.com/svn/trunk@697 788f1e2b-df1e-0410-8736-df70ead52e1b
2007-07-14 03:37:41 +00:00
roktas
8477f14113 Minor modification in debian/control:
+ Suggest 'texlive-latex-base | tetex-bin' as per the suggestion of Debian
  TeX Task force:
	http://pkg-tetex.alioth.debian.org/mapping-texlive.html#general
+ As for the 'latex-ucs', it dates from those days of teTeX which didn't
  support UTF-8 and it will probably become obsolete some day.  Hence, we
  shouldn't rely on it.


git-svn-id: https://pandoc.googlecode.com/svn/trunk@695 788f1e2b-df1e-0410-8736-df70ead52e1b
2007-07-13 17:49:36 +00:00
fiddlosopher
7f5a554989 Added note in README about how you might want to link to
an external ASCIIMathML.js script instead of including it in
the generated HTML file using -m.


git-svn-id: https://pandoc.googlecode.com/svn/trunk@694 788f1e2b-df1e-0410-8736-df70ead52e1b
2007-07-13 07:12:23 +00:00
fiddlosopher
22537d95d1 Changes to debian/control:
+ Description updated with new features.
+ Suggest latex-ucs instead of tetex-bin.  latex-ucs will bring in
  either tetex-bin or texlive-latex-base, and will ensure that the
  package required to use UTF-8 is present.  Note: texlive
  is now the preferred debian LaTeX package.


git-svn-id: https://pandoc.googlecode.com/svn/trunk@693 788f1e2b-df1e-0410-8736-df70ead52e1b
2007-07-13 06:57:44 +00:00
fiddlosopher
30375bb847 Changed encodeUTF8 to toUTF8, decodeUTF8 to fromUTF8,
for clarity.


git-svn-id: https://pandoc.googlecode.com/svn/trunk@692 788f1e2b-df1e-0410-8736-df70ead52e1b
2007-07-13 06:34:33 +00:00
fiddlosopher
bd5a5d48e7 Cleaned up Text.Pandoc. Added lots of documentation,
including an example program.


git-svn-id: https://pandoc.googlecode.com/svn/trunk@691 788f1e2b-df1e-0410-8736-df70ead52e1b
2007-07-12 08:32:57 +00:00
fiddlosopher
e962c76f05 HTML reader: haddock comment fix.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@690 788f1e2b-df1e-0410-8736-df70ead52e1b
2007-07-12 08:31:39 +00:00
fiddlosopher
ba6efb0e48 Main: use Text.Pandoc to simplify list of imported modules.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@689 788f1e2b-df1e-0410-8736-df70ead52e1b
2007-07-12 08:31:05 +00:00
fiddlosopher
a9bd39b10e Export NoteTable in Text.Pandoc.Shared.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@688 788f1e2b-df1e-0410-8736-df70ead52e1b
2007-07-12 08:30:17 +00:00
fiddlosopher
656dd64ed8 Fuller package description in pandoc.cabal.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@687 788f1e2b-df1e-0410-8736-df70ead52e1b
2007-07-12 08:29:36 +00:00
fiddlosopher
0ec7722363 Pandoc.hs:
+ added haddock documentation
+ added export of prettyPandoc and writeMan


git-svn-id: https://pandoc.googlecode.com/svn/trunk@686 788f1e2b-df1e-0410-8736-df70ead52e1b
2007-07-12 07:07:51 +00:00