aboutsummaryrefslogtreecommitdiff
path: root/src/Text
AgeCommit message (Collapse)AuthorFilesLines
2010-07-22Moved Text.Pandoc.Writers.S5 -> Text.Pandoc.S5.John MacFarlane2-14/+4
Now it doesn't export a writer, just some CSS and JS.
2010-07-22Improved cutUp function, removed extra </div>John MacFarlane1-10/+12
2010-07-22Moved s5 writing from S5 module to HTML.John MacFarlane4-73/+5
Now s5 is handled in more or less the same way as slidy, as a variant of HTML.
2010-07-22Extended --offline to s5.John MacFarlane1-0/+1
S5 default is now to include links, rather than a full copy of scripts and stylesheets.
2010-07-22Slidy writer: Avoid spurious blank page.John MacFarlane1-1/+5
2010-07-22Export HTMLSlideVariant in Text.Pandoc.John MacFarlane1-0/+1
2010-07-22Require texmath >= 0.3, adjusted for new elements.John MacFarlane1-0/+3
2010-07-21Changed to using strict bytestrings in UTF8 module.John MacFarlane1-2/+2
This avoids a problem on Windows reading from stdin. Previously we'd get an error from hGetBufNonBlocking.
2010-07-20Made spacing at end of output more consistent.John MacFarlane4-4/+4
Previously some of the writers added spurious whitespace. This has been removed, resolving Issue #232. NOTE: If your application combines pandoc's output with other text, for example in a template, you may need to add spacing. For example, a pandoc-generated markdown file will not have a blank line after the final block element. If you are inserting it into another markdown file, you will need to make sure there is a blank line between it and the next block element.
2010-07-18Slidy writer: create new slide at every level 1 header.John MacFarlane1-1/+4
2010-07-16Use default highlighting CSS rather than embedding CSS in templates.John MacFarlane1-2/+3
2010-07-15Added --section-divs option.John MacFarlane2-9/+12
+ Header identifiers now get attached to the headers, unless --section-divs is specified, in which case they are added to enclosing divs. By default, the divs are not added. + Resolves Issue #230, #239.
2010-07-15Added --webtex option for HTML math.John MacFarlane2-17/+24
+ Added --webtex command-line option, with optional parameter. (Defaults to using google charts API.) + Added WebTeX HTMLMathMethod. + Removed MimeTeX HTMLMathMethod. (WebTeX is generic and subsumes it.) + Modified --mimetex option to use WebTeX. + Thanks to lpeterse for the idea and some of the code.
2010-07-14Improved handling of code in man writer.John MacFarlane1-3/+7
+ Inline code is now in monoscpace, not bold. + Code blocks now use .nf (no fill) and .IP (indented paragraph). + Resolves Issue #247.
2010-07-14HTML reader: code cleanup + parse <tt> as Code.John MacFarlane1-34/+47
Partially resolves Issue #247.
2010-07-14Code cleanup, S5 writer.John MacFarlane1-13/+5
2010-07-13Improved Slidy writer.John MacFarlane1-3/+12
We now carve up slides at HorizontalRules, rather than by level-1 headers. This gives the user lots of flexibility.
2010-07-13Added a slidy writer.John MacFarlane2-9/+22
Resolves Issue #122.
2010-07-13Made latex \section, \chapter parsers more forgiving of whitespace.John MacFarlane1-0/+3
2010-07-13Parse \chapter{} in latex.John MacFarlane2-4/+24
+ Added stateHasChapters to ParserState. + If a \chapter command is encountered, this is set to True and subsequent \section commands (etc.) will be bumped up one level.
2010-07-12Modified example refs so they can occur before or after target.John MacFarlane1-5/+15
The refs are now replaced by numbers at the final stage, using processWith.
2010-07-11Merge branch 'atlists'. Added auto-numbered example lists.John MacFarlane9-10/+47
2010-07-11Moved headerShift from pandoc.hs to Shared.John MacFarlane1-0/+8
2010-07-11Slight code cleanup on substitute function.John MacFarlane1-4/+4
2010-07-09Cleaned up EPUB writer.John MacFarlane1-33/+43
2010-07-08EPUB writer: don't put multiple copies of same image in epub.John MacFarlane1-10/+17
2010-07-08Get default stylesheet in EPUB writer, rather than pandoc.hs.John MacFarlane1-2/+5
2010-07-08Added writerUserDataDir to WriterOptions.John MacFarlane2-3/+5
2010-07-08Added writerSourceDirectory to WriterOptions.John MacFarlane3-9/+11
This allows us to remove an argument from the ODT and EPUB writers.
2010-07-07Addendum to the fix to issue #242.John MacFarlane1-1/+1
The previous fix resulted in bird tracks being included in both html and html+lhs renderings of literate haskell sections when pandoc was compiled without highlighting support. This change make pandoc without highlighting behave like pandoc with highlighting: the bird tracks are used only if html+lhs output is specified.
2010-07-06Changed order of functions in Shared.John MacFarlane1-26/+26
2010-07-06Minor comment change.John MacFarlane2-2/+1
2010-07-06Allow language-neutral table captions.John MacFarlane3-3/+6
+ Captions may now begin simply with ':', instead of 'Table:' + Captions may now appear either above or below the table. + Resolves Issue #227.
2010-07-05More refactoring of grid table code.John MacFarlane3-107/+85
2010-07-05Minor reformatting.John MacFarlane1-2/+4
2010-07-05Moved generic grid table functions from RST reader -> Parsing.John MacFarlane2-76/+91
Here they can be used by the Markdown reader as well.
2010-07-05Comment change in Templates (thanks to Alexander Hirzel).John MacFarlane1-1/+1
Resolves Issue #245.
2010-07-05Don't allow colon in autogenerated HTML identifiers.John MacFarlane1-2/+2
They have a special meaning in XML (e.g. in EPUB).
2010-07-05Made -Wall clean.John MacFarlane1-1/+1
2010-07-05Removed links (internal and external).John MacFarlane1-15/+17
2010-07-05Process user-supplied EPUB metadata.John MacFarlane1-7/+21
Read a sequence of elements from the file. Ignore anything that's not valid Dublin Core. If title, language, uuid not supplied, supply them.
2010-07-05Added writerEPUBMetadata field and --epub-metadata option.John MacFarlane1-0/+2
2010-07-05Removed writerInclude{Before,After} from WriterOptions.John MacFarlane1-4/+0
This is no longer used with the new templating system.
2010-07-05Moved Pandoc prettyprinting code from Shared to new Native writer.John MacFarlane3-53/+88
+ Text.Pandoc.Writers.Native + The function prettyPandoc is now gone. Use writeNative instead.
2010-07-05Moved parsing functions from Text.Pandoc.Shared to new module.John MacFarlane8-512/+551
+ Text.Pandoc.Parsing
2010-07-05Added an EPUB writer.John MacFarlane3-0/+326
+ New writer module Text.Pandoc.Writers.EPUB + Stylesheet in epub.css + --epub-stylesheet command-line option. + New utility module Text.Pandoc.UUID to generate random UUIDs for EPUBs.
2010-07-05Made a proper ODT writer.John MacFarlane3-101/+85
+ Transformed the old Text.Pandoc.ODT module into a proper writer module, Text.Pandoc.Writers.ODT. + Instead of saveOpenDocumentAsODT, we now have writeODT, which takes a Pandoc document and produces a bytestring. saveOpenDocumentAsODT has been removed. + To extract the images and insert them into the ODT, we now use processPandocM on the Pandoc document rather than a custom XML parser. + Handle the case where the image is remote (or not found) by converting the Image element into an Emph with the label. + Plumbing in pandoc.hs changed slightly to accomodate this, and to allow other writers that live in the IO monad.
2010-06-30Use unicode for smart punctuation in plain, markdown, rst formats.John MacFarlane2-12/+12
2010-06-28Add birdtracks to lhs in HTML when compiled wo -fhighlighting.John MacFarlane1-1/+4
Resolves Issue #242. Previously the bird tracks would be stripped off when pandoc was not compiled with highlighting support, even if -t html+lhs was specified. Thanks to Nicholas Wu for pointing out the problem.
2010-05-08Made KeyTable a map instead of an association list.John MacFarlane6-50/+67
* This affects the RST and Markdown readers. * The type for stateKeys in ParserState has also changed. * Pandoc, Meta, Inline, and Block have been given Ord instances. * Reference keys now have a type of their own (Key), with its own Ord instance for case-insensitive comparison.