aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc.hs
AgeCommit message (Collapse)AuthorFilesLines
2012-08-09Use safeRead instead of using reads directly (various modules).John MacFarlane1-4/+4
2012-08-09Added parseFormatSpec to Text.Pandoc.John MacFarlane1-0/+22
2012-08-08Changes to literate haskell options.John MacFarlane1-19/+0
- Removed writerLiterateHaskell from WriterOptions. - Removed readerLiterateHaskell from ReaderOptions. - Added Ext_literate_haskell to Extensions. Test for this instead of the above. - Removed failUnlessLHS from Shared. Note: At this point, +lhs and .lhs extension no longer has any effect. Need to fix.
2012-07-26Moved WriterOptions and associated types Shared -> Options.John MacFarlane1-7/+0
2012-07-25Changed reader parameters from ParserState to ReaderOptions.John MacFarlane1-27/+8
2012-07-25Moved stateLiterateHaskell to readerLiterateHaskell in Options.John MacFarlane1-3/+9
2012-07-25Put smart, strict in separate options field in state.John MacFarlane1-0/+3
This is the beginning of a larger transition that will make Options, not ParserState, the parameter of the read functions. (Options will also be used in writers, in place of WriterOptions.) Next step is to remove strict, replacing it with granular tests for different extensions.
2012-07-24Text.Pandoc: writers now an assoc list of String, Writer.John MacFarlane1-54/+57
A Writer can be a PureStringWriter, an IOStringWriter, or an IOByteStringWriter. ALL writers are now in the 'writers' list, including the binary writers and fb2 writer. Code simplified at end of pandoc.hs.
2012-07-23Set writerTableOfContents for s5 in Text.Pandoc, not pandoc.hs.John MacFarlane1-1/+2
2012-07-23Set writerSlideVariant in Text.Pandoc rather than pandoc.hs.John MacFarlane1-4/+9
2012-07-22Added a new FictionBook2 (FB2) writer.Sergey Astanin1-8/+17
2012-07-19Provide Data.Default instances for ParserState and WriterOptions.John MacFarlane1-0/+3
Now you can use def (which is re-exported by Text.Pandoc) instead of defaultParserState or defaultWriterOptions. For now, these are still defined too, so existing code need not change. Closes #546.
2012-05-24Add support for Slideous output.Jonas Smedegaard1-0/+1
2012-05-12Export readDocBook in Text.Pandoc.John MacFarlane1-0/+1
2012-04-14Added skeleton of basic docbook reader.John MacFarlane1-0/+2
2012-03-09Added beamer+lhs as output format.John MacFarlane1-0/+2
2012-01-28Made `beamer` an output format, removed `pdf` as output format.John MacFarlane1-0/+2
Removed `--beamer` option; instead, use `beamer` as output format. There is no longer a `pdf` output format; instead, pandoc tries to produce a pdf if the output file has a `.pdf` extension. (The output format can be latex -- the default for pdf output, latex+lhs, or beamer.) This seems more consistent with the way pandoc currently works (e.g. we have an `html5` output format, not an `--html5` option).
2012-01-24Doc fixes in Text.Pandoc.John MacFarlane1-10/+9
2012-01-24Text.Pandoc: Added ToFilter instance for a -> [a] types.John MacFarlane1-0/+10
2012-01-24Added ToJsonFilter class, deprecated old jsonFilter function.John MacFarlane1-0/+37
2012-01-21Removed `beamer` output format; added `--beamer` option.John MacFarlane1-2/+0
2012-01-19Added Docx writer.John MacFarlane1-1/+3
* New module `Text.Pandoc.Docx`. * New output format `docx`. * Added reference.docx. * New option `--reference-docx`. The writer includes support for highlighted code blocks and math (which is converted from TeX to OMML using texmath's new OMML module).
2011-12-29Made `html5` and `html5+lhs` output formats.John MacFarlane1-0/+5
Deprecated the `--html5`/`-5` flag. Use the output format instead.
2011-12-29Added 'beamer' as an output format.John MacFarlane1-0/+2
Beamer output uses the default LaTeX template, with some customizations via variables. Added `writerBeamer` to `WriterOptions`. Added `--beamer` option to `markdown2pdf`.
2011-11-18Renamed to AsciiDoc. Fixed display math and escapes.John MacFarlane1-3/+3
AsciiDoc does not seem to have consistent escaping rules.
2011-11-16Added an asciidoc writer (partial).John MacFarlane1-0/+3
Still TODO: - documentation in README - add default.asciidoc to templates/ - lists - tables - proper escaping - footnotes with blank lines - print separately at end? currently they are just ignored. - fix header (date gives weird result on pandoc README)
2011-10-01Added dzslides output option.John MacFarlane1-0/+1
* Added DZSlides to HTMLSlideVariant. * Added support for dzslides in HTML writer. * Added dzslides template.
2011-01-28RTF writer: Embed images when possible.John MacFarlane1-0/+2
* Resolves Issue #275. * PNG and JPEG supported. * Export rtfEmbedImage.
2011-01-22Text.Pandoc: Added jsonFilter for easy construction of scripts.John MacFarlane1-0/+7
Here's an example of its use: -- removelinks.hs - removes links from document import Text.Pandoc main = interact $ jsonFilter $ bottomUp removeLink removeLink :: Inline -> Inline removeLink (Link xs _) = Emph xs removeLink x = x
2011-01-20Export readNative in Text.Pandoc.Shared.John MacFarlane1-0/+1
2011-01-19Added Text.Pandoc.Readers.Native (readNative).John MacFarlane1-1/+2
readNative can now read full pandoc documents, block lists, blocks, inline lists, or inlines. It will interpret Str "hi" as if it were Pandoc (Meta [] [] []) [Plain [Str "hi"]] This should make testing easier.
2011-01-14Fixed the parser for rst+lhs - set stateLiterateHaskell.John MacFarlane1-1/+2
2011-01-11Text.Pandoc: Improved readers, writers lists for lhs variants.John MacFarlane1-6/+12
Now the lhs variants set the needed literate Haskell flag in parser state and writer options.
2010-12-24Use functions from Text.Pandoc.Generic instead of processWith(M).John MacFarlane1-0/+3
2010-12-13Added support to write natbib or biblatex citations in latex output.Nathan Gass1-0/+1
2010-12-11Added JSON reader and writer.John MacFarlane1-0/+3
The JSON reader is about 20x faster than the native reader. So this can be a good way to serialize a pandoc document.
2010-12-10Moved 'readers' and 'writers' to Text.Pandoc.John MacFarlane1-0/+42
This allows library users to avoid repetitive case statements...
2010-12-04Added Org-mode writerPuneeth Chaganti1-0/+2
+ Added Text/Pandoc/Writers/Org.hs + Added to pandoc.cabal + Added to pandoc.hs and Text/Pandoc.hs exports.
2010-12-03Basic Textile Readerpaul.rivier1-0/+2
2010-11-27Merge branch 'textile'John MacFarlane1-0/+2
Conflicts: README man/man1/pandoc.1.md pandoc.cabal
2010-07-22Moved Text.Pandoc.Writers.S5 -> Text.Pandoc.S5.John MacFarlane1-1/+0
Now it doesn't export a writer, just some CSS and JS.
2010-07-22Moved s5 writing from S5 module to HTML.John MacFarlane1-2/+0
Now s5 is handled in more or less the same way as slidy, as a variant of HTML.
2010-07-22Export HTMLSlideVariant in Text.Pandoc.John MacFarlane1-0/+1
2010-07-05Moved Pandoc prettyprinting code from Shared to new Native writer.John MacFarlane1-1/+2
+ 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 MacFarlane1-0/+1
+ Text.Pandoc.Parsing
2010-07-05Added an EPUB writer.John MacFarlane1-0/+2
+ 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 MacFarlane1-0/+2
+ 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-05-17Added Textile writer module.John MacFarlane1-0/+2
2010-03-23Updated copyright notices.John MacFarlane1-2/+2
2010-03-18Added plain writer.fiddlosopher1-0/+1
Text.Pandoc.Writers.Markdown now exports a writePlain, which writes plain text without links, pictures, or special formatting (not even markdown conventions). git-svn-id: https://pandoc.googlecode.com/svn/trunk@1907 788f1e2b-df1e-0410-8736-df70ead52e1b