Commit graph

  • 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. fiddlosopher 2007-07-13 06:57:44 +00:00
  • 30375bb847 Changed encodeUTF8 to toUTF8, decodeUTF8 to fromUTF8, for clarity. fiddlosopher 2007-07-13 06:34:33 +00:00
  • bd5a5d48e7 Cleaned up Text.Pandoc. Added lots of documentation, including an example program. fiddlosopher 2007-07-12 08:32:57 +00:00
  • e962c76f05 HTML reader: haddock comment fix. fiddlosopher 2007-07-12 08:31:39 +00:00
  • ba6efb0e48 Main: use Text.Pandoc to simplify list of imported modules. fiddlosopher 2007-07-12 08:31:05 +00:00
  • a9bd39b10e Export NoteTable in Text.Pandoc.Shared. fiddlosopher 2007-07-12 08:30:17 +00:00
  • 656dd64ed8 Fuller package description in pandoc.cabal. fiddlosopher 2007-07-12 08:29:36 +00:00
  • 0ec7722363 Pandoc.hs: + added haddock documentation + added export of prettyPandoc and writeMan fiddlosopher 2007-07-12 07:07:51 +00:00
  • 4f78aa9eca Change to defaultWriterOptions: standalone is False by default. fiddlosopher 2007-07-12 07:06:25 +00:00
  • 7e0e06237b Minor formatting tweaks for pandoc website. fiddlosopher 2007-07-12 05:09:28 +00:00
  • ef83e744a1 Make sure custom header includes things needed for tables! Also, remove paragraph spacing commands, so it looks more different from the default. fiddlosopher 2007-07-12 05:09:11 +00:00
  • 9a7bfb99b3 Removed odf demo from website Examples page. (docbook2odf is buggy on code blocks, and anyway we're demonstrating pandoc here, not docbook2odf.) fiddlosopher 2007-07-12 05:08:20 +00:00
  • 34d875aefd Slightly larger table of header identifiers, so stuff doesn't wrap on LaTeX output. fiddlosopher 2007-07-12 05:07:08 +00:00
  • 62227fe259 README: Documented scheme for header identifiers in HTML. fiddlosopher 2007-07-12 04:33:15 +00:00
  • 389c762afc Documented --toc/--table-of-contents option in pandoc man page and README. fiddlosopher 2007-07-12 03:45:00 +00:00
  • 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.) fiddlosopher 2007-07-12 03:40:01 +00:00
  • 2bca833da0 Changed order of options, for aesthetic reasons. fiddlosopher 2007-07-12 03:27:24 +00:00
  • 6acc727c53 Further tweaks to website css. fiddlosopher 2007-07-11 21:38:52 +00:00
  • b7f32fdaf1 Small css tweaks for website. (Smaller sans-serif font, larger monospace for balance.) fiddlosopher 2007-07-11 07:42:24 +00:00
  • 7bbb381a47 Changes to website: + Makefile: rebuild examples if 'demos' changes + New syntax for docbook2odf example + New --toc examples for HTML and RST fiddlosopher 2007-07-11 07:35:39 +00:00
  • dfdcec77a3 Use smartquotes and table of contents in generating README.html. fiddlosopher 2007-07-11 07:28:12 +00:00
  • d809c663b7 Small changes to website. fiddlosopher 2007-07-10 16:56:04 +00:00
  • ec8a53aeac Updated features.txt in website. fiddlosopher 2007-07-10 06:47:04 +00:00
  • b106e51120 README: Documented man page writer, special title-line conventions for man pages. fiddlosopher 2007-07-10 06:19:49 +00:00
  • 1ec47d3754 Use "Pandoc User Manuals" as bottom-left footer in man pages. fiddlosopher 2007-07-10 06:18:53 +00:00
  • aa1c8ac496 Recognize output filenames with any single-digit extension as man format. fiddlosopher 2007-07-10 06:18:23 +00:00
  • 17caba2ffc Added a test case with an inline link containing bracketed text. fiddlosopher 2007-07-09 06:59:13 +00:00
  • 5b2868add9 Minor cosmetic changes to runtests.pl ("passed" in lowercase, to distinguish more clearly from "FAILED"). fiddlosopher 2007-07-09 06:58:41 +00:00
  • 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. fiddlosopher 2007-07-09 06:51:06 +00:00
  • 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. fiddlosopher 2007-07-09 06:23:59 +00:00
  • 655363da51 Moved Text.ParserCombinators.Pandoc -> Text.Pandoc.ParserCombinators. This way, all the Pandoc modules are in one place. fiddlosopher 2007-07-09 03:39:25 +00:00
  • 622d4e5223 Added type declaration for hsepBlocks in Text.Pandoc.Blocks. fiddlosopher 2007-07-09 03:38:03 +00:00
  • 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. fiddlosopher 2007-07-09 02:19:15 +00:00
  • 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. fiddlosopher 2007-07-09 01:36:53 +00:00
  • 0ceb538ecd Markdown writer: Fixed a small problem with lengths of dashed lines in tables. fiddlosopher 2007-07-09 01:24:49 +00:00
  • ad7bb70cce Added --toc support to Markdown writer. fiddlosopher 2007-07-09 01:14:35 +00:00
  • 56efd6176f Added support for --toc to RTF writer. fiddlosopher 2007-07-09 00:51:07 +00:00
  • 489a2bb1d9 Moved isHeaderBlock from Text.Pandoc.Writers.HTML to Text.Pandoc.Shared. fiddlosopher 2007-07-09 00:50:14 +00:00
  • 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. fiddlosopher 2007-07-08 17:33:03 +00:00
  • 497a1b7815 Changes to tests to accommodate r653. fiddlosopher 2007-07-08 17:09:37 +00:00
  • 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. fiddlosopher 2007-07-08 17:09:17 +00:00
  • c3fb1dd4ea Added --toc support to RST writer. fiddlosopher 2007-07-08 16:48:54 +00:00
  • 369a57e339 Modified markdown2pdf to run pdflatex a second time if --toc was specified; otherwise the table of contents won't appear. fiddlosopher 2007-07-08 16:40:07 +00:00
  • dfcae807b0 Man writer: Don't print .\" t at beginning unless we're in --standalone mode. fiddlosopher 2007-07-08 03:54:07 +00:00
  • e58a55eb41 LaTeX writer: + Leave extra blank line after \maketitle + Insert \tableofcontents if --toc option was selected fiddlosopher 2007-07-08 03:48:07 +00:00
  • 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. fiddlosopher 2007-07-08 03:40:22 +00:00
  • 5b68993a3e Added tests for man writer to runtests.pl. fiddlosopher 2007-07-08 03:39:24 +00:00
  • e252fa300a Fixed bug in Notes ($$ instead of <>), which caused note blocks to be indented. fiddlosopher 2007-07-08 03:38:54 +00:00
  • 4e81ef28ed Added version of test suite for man page. fiddlosopher 2007-07-08 03:38:14 +00:00
  • 595f6bf39a Man page templates: Escaped --'s in option list headers, so they won't be parsed as Em dashes when -S mode is used. fiddlosopher 2007-07-08 03:31:26 +00:00
  • dc7102eec3 Use -S option in building man pages. fiddlosopher 2007-07-08 03:22:00 +00:00
  • 3f3c29f9a4 Added test suites for RST, markdown, and man tables. fiddlosopher 2007-07-08 03:11:26 +00:00
  • 766dbb9899 Updated tests to account for changes in HTML writer (identifiers). fiddlosopher 2007-07-08 03:09:26 +00:00
  • a414ec9d63 Adjusted copyright notices to 2006-7; use real email address instead of lamely attempting to obfuscate. fiddlosopher 2007-07-07 22:51:55 +00:00
  • 8e1f484353 Added table tests for all writers. fiddlosopher 2007-07-07 22:50:12 +00:00
  • 956deeda4b Haddock documentation for Text.Pandoc.Blocks. fiddlosopher 2007-07-07 22:37:11 +00:00
  • 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. fiddlosopher 2007-07-07 22:18:46 +00:00
  • f82b1f8eec Added Maintainer and Copyright fields to pandoc.cabal. fiddlosopher 2007-07-07 21:57:18 +00:00
  • 6f4017b8ea Put table of contents in its own div (id="toc"). fiddlosopher 2007-07-07 21:49:46 +00:00
  • 54a0e4c3b2 HTML writer modifications: + Added code to HTML Writer to generate a table of contents if the writerTableOfContents option is specified. This is an unordered list with links to the headers. It is constructed hierarchically, based on the order of the headers and their levels. + If a TOC is used, the headers become links back to the TOC. + Removed Toc from WriterState; instead, the TOC is generated at the top level, by the function tableOfContents. + Fixed a bug in uniqueIdentifiers which prevented it from handling more than one duplicate. fiddlosopher 2007-07-07 19:08:11 +00:00
  • f2b16c2065 + Introduced writerIgnoreNotes option in WriterOptions. This is needed for processing header blocks for a table of contents, since notes on headers should not appear in the TOC. Set default in Main.hs. + Moved Element, headerAtLeast, and hierarchicalize from Docbook writer to Text.Pandoc.Shared. This is because HTML writer now uses these in constructing a table of contents. fiddlosopher 2007-07-07 19:04:10 +00:00
  • fdf31cd23d Added writerTableOfContents to WriterOptions, and added a --table-of-contents/--toc command-line option to Main.hs. fiddlosopher 2007-07-07 05:43:23 +00:00
  • 98372ea277 Renamed Pandoc.cabal -> pandoc.cabal, for better compatibility with HackageDB, which likes the cabal file to have the same name as the tarball. Modified references to Pandoc.cabal in INSTALL and Makefile. fiddlosopher 2007-07-07 05:25:44 +00:00
  • 5a0ce1bcac Changes to HTML writer to incorporate automatic identifiers for headers and table of contents: + WriterState now includes a list of header identifiers and a table of contents in addition to notes. + The function uniqueIdentifiers creates a list of unique identifiers from a list of inline lists (e.g. headers). + This list is part of WriterState and gets consumed by blockToHtml each time a header is encountered. + Headers are now printed with unique identifiers based on their names, e.g. Shell_scripts for "# Shell scripts". Fancy stuff like links, italics, etc. gets ignored. A numerical index is added to the end if there is already an identifier by the same name, e.g. "Shell_scripts1". + Provision has been made for a table-of-contents block element, but this has not yet been added. fiddlosopher 2007-07-07 03:52:10 +00:00
  • 0a250edfde Minor comment change. fiddlosopher 2007-07-07 03:05:06 +00:00
  • ad2c642713 Pandoc.hs: Export all definitions in Text.Pandoc.Definition, rather than exporting the module. fiddlosopher 2007-07-06 16:37:46 +00:00
  • f8ce411ea1 README: Documented the fact that if pandoc is called as 'hsmarkdown', it runs in strict markdown compatibility mode. This can be achieved using a symbolic link. fiddlosopher 2007-07-06 16:30:32 +00:00
  • 242ee99e8d Minor wording changes in README. fiddlosopher 2007-07-06 16:21:38 +00:00
  • f9c988e703 Fixed bug in Markdown reader: links in footnotes were not being processed. Solution: three-stage parse. First, get all the reference keys and add information to state. Next, get all the notes and add information to state. (Reference keys may be needed at this stage.) Finally, parse everything else. fiddlosopher 2007-07-06 06:46:31 +00:00
  • 1ca8a731bc Added table support to RST writer. fiddlosopher 2007-07-05 06:14:48 +00:00
  • 09f0247fd8 Added table support to markdown writer. fiddlosopher 2007-07-04 22:21:52 +00:00
  • 8d776e1e42 Improvements/bug fixes to Text.Pandoc.Blocks library. fiddlosopher 2007-07-04 22:21:08 +00:00
  • 948ea86404 Include Text.Pandoc.Blocks in Pandoc.cabal's file list. fiddlosopher 2007-07-04 18:55:25 +00:00
  • 1a8b32afd5 Added Text.Pandoc.Blocks module for prettyprinting of text tables. fiddlosopher 2007-07-04 18:53:12 +00:00
  • 4fe56a8d18 Man writer: - Added scheme for specifying manual section and additional headers: % PROGNAM | 1 | User Manual | Version 4.0 - Modified man page sources to include section 1 fiddlosopher 2007-07-04 15:53:49 +00:00
  • d5c47c33ca Added table support to man writer (using the tbl preprocessor). The writer state now includes a list of "preprocessor" codes. If the document contains a table, "t" (for "tbl") is added to the list. If this list is nonempty, the man page starts with .\" <list> which instructs man to run the file through the appropriate preprocessor before processing with groff. fiddlosopher 2007-07-04 03:14:43 +00:00
  • cd08eabd26 Changes to website: - Added groff man to list of output formats in index.txt - Added a demo of man page creation to demos page fiddlosopher 2007-07-03 04:11:57 +00:00
  • cc67d17dda FreeBSD Makefile - bump version to 0.4, and require GHC 6.6 or higher. fiddlosopher 2007-07-02 03:49:08 +00:00
  • 681ce02983 Documented man output in pandoc.1.md man page. fiddlosopher 2007-07-02 03:40:46 +00:00
  • bd5f3876a4 Man writer: don't change - to \- (minus sign). Leave them as hyphens. fiddlosopher 2007-07-02 02:38:14 +00:00
  • 2cb22a1f8a Man writer: better output for line break: .PD 0 # set interparagraph space to 0 .P # new paragraph .PD # reset interparagraph space to default. fiddlosopher 2007-07-02 02:31:36 +00:00
  • f5a3d44494 Minor changes in Man writer: - escape ' as \[aq], because ' can trigger groff commands. - remove unneeded line breaks. - use CR font in code blocks. - use .P 0 for line breaks. fiddlosopher 2007-07-02 02:23:05 +00:00
  • 6d6fafde16 Don't use -S option in processing man pages, since the '--' in options will be read as an En-dash. fiddlosopher 2007-07-02 02:19:43 +00:00
  • b412492725 Minor changes in man page sources. fiddlosopher 2007-07-02 02:16:58 +00:00
  • 5fbe057d27 Man pages are now generated from markdown templates, using pandoc's man page writer. Removed man pages from repository, added (.md) templates. Modified Makefile to generate man pages as part of the build process. fiddlosopher 2007-07-01 23:26:20 +00:00
  • e6f67fcc57 Modified escaping in Man writer. Also changed format of footnote references and authors list. fiddlosopher 2007-07-01 23:23:36 +00:00
  • a669f641b5 Modified Main.hs and Pandoc.cabal to add man page writer. fiddlosopher 2007-06-30 22:43:14 +00:00
  • c726e83ce9 Added groff man writer. fiddlosopher 2007-06-30 22:42:32 +00:00
  • 3c46f8a600 Makefile changes: + Include files built from templates in the distribution tarball, so it can be built using Cabal and included in Hackage. + Remove unnecessary 'cabalize' step. We no longer build Pandoc.cabal from a template. fiddlosopher 2007-06-17 16:20:50 +00:00
  • c841becc84 Include Pandoc.cabal in repository; do not generate it from Pandoc.cabal.in using cabalize. Removed cabalize and Pandoc.cabal.in, which are no longer needed. Reason: We want Pandoc to be buildable using Cabal without preprocessing, so it can go into the Hackage repository of Haskell libraries. fiddlosopher 2007-06-17 16:16:57 +00:00
  • 28a99707fd Changed documentation to indicate that GHC 6.6 is required. We will no longer support GHC 6.4. fiddlosopher 2007-06-17 16:13:36 +00:00
  • 4bf464ce4c Minor documentation changes to ASCIIMathML.hs template. fiddlosopher 2007-06-17 16:12:23 +00:00
  • cfd9ff7381 Adjust Debian package dependencies: + add libghc6-mtl-dev + remove version condition from libghc6-xhtml-dev roktas 2007-05-26 11:45:15 +00:00
  • aedc2095f5 Added RTF table writer tests. fiddlosopher 2007-05-11 17:13:42 +00:00
  • 61024d93ed Require blankspace (but not multiple lines) between URL and title in links and reference keys. (Markdown reader.) fiddlosopher 2007-05-10 22:06:13 +00:00
  • f2c1777598 Fixed bug with indented blocks occurring in definition lists. fiddlosopher 2007-05-10 22:05:25 +00:00
  • 5660e6ba11 Updated test suite with new tests for definition lists. fiddlosopher 2007-05-10 22:04:36 +00:00
  • f9731108e8 Improved prettyprinting of definition lists. fiddlosopher 2007-05-10 18:50:12 +00:00
  • 5454c841a9 Added support for definition lists in Docbook writer. fiddlosopher 2007-05-09 00:47:29 +00:00
  • 71cf0a11b3 + Use new alignment parameter in title/author/date, instead of hardcoded \qc. + Adjusted test suite to account for changes in RTF writer. fiddlosopher 2007-05-09 00:44:56 +00:00