aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc.hs
AgeCommit message (Collapse)AuthorFilesLines
2013-04-14Added `Text.Pandoc.Writers.Custom`, `--print-custom-lua-writer`.John MacFarlane1-2/+7
pandoc -t data/sample.lua will load the script sample.lua and use it as a custom writer. data/sample.lua is provided as an example. Added `--print-custom-lua-writer` option to print the sample script.
2013-03-28Add reader for Haddock markup based on Haddock's own lexer/parser.David Lazar1-0/+3
2013-03-23Reveal.js improvements.John MacFarlane1-1/+1
Changed name to revealjs (from reveal_js). Set revealjs-url template variable to 'reveal.js' by default.
2013-03-21Added basic support for reveal.js.Jamie F. Olson1-0/+3
Support unordered and ordered lists with "fragment" elements. Modified by JGM to remove the --reveal_js-url command-line option. Instead use -V reveal_js-url=... as with slidy and the other slide formats. Also cleaned up the list code in the HTML writer.
2013-03-19Added Text.Pandoc.Writers.OPML.John MacFarlane1-0/+3
TODO: * Document in README * Add tests * Add template (and add template to cabal file)
2013-03-19Added Text.Pandoc.Readers.OPML, exporting readOPML.John MacFarlane1-0/+3
The _note attribute is supported. This is unofficial, but used e.g. in OmniOutliner and supported by multimarkdown. We treat the contents as markdown blocks under a section header. Added to documentation and tests.
2013-02-11Added markdown_github as input format.John MacFarlane1-0/+1
2013-01-18RTF writer: Added writeRTFWithEmbeddedImages.John MacFarlane1-2/+1
* RTF writer: Export writeRTFWithEmbeddedImages instead of rtfEmbedImage. * Text.Pandoc: Use writeRTFWithEmbeddedImages for RTF. * Moved code for embedding images in RTF out of pandoc.hs.
2013-01-16Options: Added multimarkdownExtensions.John MacFarlane1-0/+3
Also added 'markdown_mmd' as input/output option.
2013-01-11Options: Added githubMarkdownExtensions.John MacFarlane1-0/+2
Added github_markdown as input/output option.
2013-01-10Added markdown_phpextra as writer option.John MacFarlane1-0/+1
2013-01-10Options: Added phpMarkdownExtraExtensions.John MacFarlane1-9/+11
And added markdown_phpextra input/output format.
2013-01-05EPUB changes.John MacFarlane1-4/+5
* Epub writer now exports writeEPUB, not writeEPUB2 and writeEPUB3. * Options now exports EPUBVersion * WriterOptions now includes writerEpubVersion.
2013-01-04Use readMarkdownWithWarnings in Text.Pandoc.John MacFarlane1-3/+10
2013-01-03Changed type of 'readers' in Text.Pandoc, so all readers are in IO.John MacFarlane1-12/+12
Users who want pure readers can still get them; this just affects the function getReader that looks up a reader based on the format name. The point of this change is to make it possible to print warnings from the parser.
2012-11-02Preliminary changes for epub3 format.John MacFarlane1-2/+4
* EPUB writer now exports writeEPUB2 and writeEPUB3. * 'epub' output format is epub v2, while 'epub3' is v3.
2012-09-12Added basic mediawiki reader.John MacFarlane1-0/+3
Text.Pandoc.Readers.MediaWiki module, tests/mediawiki-reader.{txt,native}.
2012-08-09Changed strict to markdown_strict.John MacFarlane1-3/+3
2012-08-09Fixed handling of default extensions, so they don't override +options.John MacFarlane1-8/+10
2012-08-09Removed `--strict`, added extensions to writer/reader names.John MacFarlane1-5/+14
* The `--strict` option has been removed. * Instead of using `--strict`, one can now use `strict` instead of `markdown` as an input or output format name. * The `--enable` and `--disable` optinos have been removed. * It is now possible to enable or disable specific extensions by appending them (with '+' or '-') to the writer or reader name. For example `pandoc -f markdown-footnotes+hard_line_breaks`. * The lhs extensions are now implemented this way, too; you can use either `+lhs` or `+literate_haskell`.
2012-08-09Added getReader, getWriter to Text.Pandoc.John MacFarlane1-0/+31
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