git.iko.soy/typeable/pandoc
on f2b16c2 help sign in
f2b16c2+ 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 fdf31cdAdded writerTableOfContents to WriterOptions, and added a --table-of-contents/--toc command-line option to Main.hs.fiddlosopher 98372eaRenamed 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 5a0ce1bChanges 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 0a250edMinor comment change.fiddlosopher ad2c642Pandoc.hs: Export all definitions in Text.Pandoc.Definition, rather than exporting the module.fiddlosopher f8ce411README: 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 242ee99Minor wording changes in README.fiddlosopher f9c988eFixed 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 1ca8a73Added table support to RST writer.fiddlosopher 09f0247Added table support to markdown writer.fiddlosopher 8d776e1Improvements/bug fixes to Text.Pandoc.Blocks library.fiddlosopher 948ea86Include Text.Pandoc.Blocks in Pandoc.cabal's file list.fiddlosopher 1a8b32aAdded Text.Pandoc.Blocks module for prettyprinting of text tables.fiddlosopher 4fe56a8Man writer: - Added scheme for specifying manual section and additional headers: % PROGNAM | 1 | User Manual | Version 4.0 - Modified man page sources to include section 1fiddlosopher d5c47c3Added 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 cd08eabChanges to website: - Added groff man to list of output formats in index.txt - Added a demo of man page creation to demos pagefiddlosopher cc67d17FreeBSD Makefile - bump version to 0.4, and require GHC 6.6 or higher.fiddlosopher 681ce02Documented man output in pandoc.1.md man page.fiddlosopher bd5f387Man writer: don't change - to \- (minus sign). Leave them as hyphens.fiddlosopher 2cb22a1Man writer: better output for line break: .PD 0 # set interparagraph space to 0 .P # new paragraph .PD # reset interparagraph space to default.fiddlosopher f5a3d44Minor 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 6d6fafdDon't use -S option in processing man pages, since the '--' in options will be read as an En-dash.fiddlosopher b412492Minor changes in man page sources.fiddlosopher 5fbe057Man 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 e6f67fcModified escaping in Man writer. Also changed format of footnote references and authors list.fiddlosopher a669f64Modified Main.hs and Pandoc.cabal to add man page writer.fiddlosopher c726e83Added groff man writer.fiddlosopher 3c46f8aMakefile 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 c841becInclude 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 28a9970Changed documentation to indicate that GHC 6.6 is required. We will no longer support GHC 6.4.fiddlosopher 4bf464cMinor documentation changes to ASCIIMathML.hs template.fiddlosopher cfd9ff7Adjust Debian package dependencies: + add libghc6-mtl-dev + remove version condition from libghc6-xhtml-devroktas aedc209Added RTF table writer tests.fiddlosopher 61024d9Require blankspace (but not multiple lines) between URL and title in links and reference keys. (Markdown reader.)fiddlosopher f2c1777Fixed bug with indented blocks occurring in definition lists.fiddlosopher 5660e6bUpdated test suite with new tests for definition lists.fiddlosopher f973110Improved prettyprinting of definition lists.fiddlosopher 5454c84Added support for definition lists in Docbook writer.fiddlosopher 71cf0a1+ Use new alignment parameter in title/author/date, instead of hardcoded \qc. + Adjusted test suite to account for changes in RTF writer.fiddlosopher c6323b2Changes to RTF writer: + Added support for definition lists. + Removed extra '\cell' in table output, which caused a blank column to the left. + Added support for captions in tables. + Added an 'alignment' parameter to RTF block writers. + Added support for column alignments in tables.fiddlosopher 09fa7e6Added support for definition lists to RST writer.fiddlosopher 292d2bdAdded support for definition lists to markdown writer.fiddlosopher 23841bdAdd -asxhtml flag to tidy in html2markdown. This will perhaps help the parser.fiddlosopher cf08143Changed definition list syntax in markdown reader and simplified the parsing code. A colon is now required before every block in a definition. This fixes a problem with the old syntax, in which the last block in the following was ambiguous between a regular paragraph in the definition and a code block following the definition list:fiddlosopher 485fa81Resolved issue #10: instead of adding "\n\n" to the end of strings in Main, do it in readMarkdown and readRST. (Note: the point of this is to ensure that a block at the end of the file gets treated as if it has blank space after it, which is generally what is wanted.)fiddlosopher 726685aFixed bug in anyLine parser. Previously anyLine would parse an empty string "". But it should fail on an empty string, or we get an error from its use inside "many" combinators.fiddlosopher 7742301Support for definition lists in LaTeX writer.fiddlosopher ffd7248Fixed export declarations; removed unneeded import of Pandoc.Shared.fiddlosopher e15fd3bMoved escape and nullBlock parsers from ParserCombinators/Pandoc to Pandoc/Shared. Reason: ParserCombinators/Pandoc is for general-purpose parsers that don't require Pandoc.Definition. Also removed some unnecessary imports from Pandoc/Shared.fiddlosopher