summaryrefslogtreecommitdiff
path: root/src/Text/Pandoc.hs
Commit message (Collapse)AuthorAge
* Finished first draft of Haddock writer.John MacFarlane2014-06-18
|
* Naming: Use Docx instead of DocX.John MacFarlane2014-06-16
| | | | For consistency with the existing writer.
* Integrated the docx reader into the main pandoc program.mpickering2014-06-16
| | | | | Changes also include generalising the types of reader allowed. The mechanism now mimics the more general output mechanism.
* Org reader: support Pandocs citation extensionAlbert Krewinkel2014-05-14
| | | | | | | | | | | | | | | Citations are defined via the "normal citation" syntax used in markdown, with the sole difference that newlines are not allowed between "[...]". This is for consistency, as org-mode generally disallows newlines between square brackets. The extension is turned on by default and can be turned off via the default syntax-extension mechanism, i.e. by specifying "org-citation" as the input format. Move `citeKey` from Readers.Markdown into Parsing The function can be used by other readers, so it is made accessible for all parsers.
* Update copyright notices for 2014, add missing noticesAlbert Krewinkel2014-05-09
|
* Fix #1267.John MacFarlane2014-04-27
| | | | | | | We now check the writerName for a lua script in pandoc.hs, so that lowercasing and format parsing aren't done. Note this behavior change: getWriter in Text.Pandoc no longer returns a custom writer on input "foo.lua".
* Merge branch 'master' of https://github.com/mb21/pandoc into mb21-masterJohn MacFarlane2014-03-04
|\
| * InDesign ICML Writermb212014-02-28
| |
* | Add a simple Emacs Org-mode readerAlbert Krewinkel2014-03-04
| | | | | | | | | | The basic structure of org-mode documents is recognized; however, org-mode features like todo markers, tags etc. are not supported yet.
* | Text.Pandoc: Don't default to pandocExtensions for all writers.John MacFarlane2013-12-06
|/ | | | | In particular, we don't want to default to math parsing for the HTML writer.
* Pass writename as argument to filters.John MacFarlane2013-08-08
| | | | | | | | | | | | | | | | | This way filters can figure out what the target format is and react appropriately. Example: #!/usr/bin/env runghc import Text.Pandoc.JSON import Data.Char main = toJSONFilter cap where cap (Just "html") (Str xs) = Str $ map toUpper xs cap _ x = x This capitalizes text only for html output.
* Text.Pandoc: Don't reexport ToJSONFilter.John MacFarlane2013-08-03
| | | | | It's better just to import this from Text.Pandoc.JSON. That way, compiled filters will be smaller in size.
* Text.Pandoc.JSON: Use To/FromJSON instances from pandoc-types.John MacFarlane2013-08-03
| | | | | | | * These use GHC generics rather than syb, and are faster. * toJsonFilter is now a deprecated synonym of toJSONFilter from Text.Pandoc.JSON. * The deprecated jsonFilter function has been removed.
* Text.Pandoc: Added readJSON, writeJSON to the API.John MacFarlane2013-07-23
| | | | Closes #817.
* Use new flexible metadata type.John MacFarlane2013-06-24
| | | | | | | | | | | | | | | | | | | | | | | | | * Depend on pandoc 1.12. * Added yaml dependency. * `Text.Pandoc.XML`: Removed `stripTags`. (API change.) * `Text.Pandoc.Shared`: Added `metaToJSON`. This will be used in writers to create a JSON object for use in the templates from the pandoc metadata. * Revised readers and writers to use the new Meta type. * `Text.Pandoc.Options`: Added `Ext_yaml_title_block`. * Markdown reader: Added support for YAML metadata block. Note that it must come at the beginning of the document. * `Text.Pandoc.Parsing.ParserState`: Replace `stateTitle`, `stateAuthors`, `stateDate` with `stateMeta`. * RST reader: Improved metadata. Treat initial field list as metadata when standalone specified. Previously ALL fields "title", "author", "date" in field lists were treated as metadata, even if not at the beginning. Use `subtitle` metadata field for subtitle. * `Text.Pandoc.Templates`: Export `renderTemplate'` that takes a string instead of a compiled template.. * OPML template: Use 'for' loop for authors. * Org template: '#+TITLE:' is inserted before the title. Previously the writer did this.
* Use aeson for json.John MacFarlane2013-06-24
| | | | Benchmarked: about twice as slow as json!
* Removed obsolete comment.John MacFarlane2013-05-09
|
* Added `Text.Pandoc.Writers.Custom`, `--print-custom-lua-writer`.John MacFarlane2013-04-14
| | | | | | | | | | 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.
* Add reader for Haddock markup based on Haddock's own lexer/parser.David Lazar2013-03-28
|
* Reveal.js improvements.John MacFarlane2013-03-23
| | | | | Changed name to revealjs (from reveal_js). Set revealjs-url template variable to 'reveal.js' by default.
* Added basic support for reveal.js.Jamie F. Olson2013-03-21
| | | | | | | | 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.
* Added Text.Pandoc.Writers.OPML.John MacFarlane2013-03-19
| | | | | | | | TODO: * Document in README * Add tests * Add template (and add template to cabal file)
* Added Text.Pandoc.Readers.OPML, exporting readOPML.John MacFarlane2013-03-19
| | | | | | | | | 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.
* Added markdown_github as input format.John MacFarlane2013-02-11
|
* RTF writer: Added writeRTFWithEmbeddedImages.John MacFarlane2013-01-18
| | | | | | | * RTF writer: Export writeRTFWithEmbeddedImages instead of rtfEmbedImage. * Text.Pandoc: Use writeRTFWithEmbeddedImages for RTF. * Moved code for embedding images in RTF out of pandoc.hs.
* Options: Added multimarkdownExtensions.John MacFarlane2013-01-16
| | | | Also added 'markdown_mmd' as input/output option.
* Options: Added githubMarkdownExtensions.John MacFarlane2013-01-11
| | | | Added github_markdown as input/output option.
* Added markdown_phpextra as writer option.John MacFarlane2013-01-10
|
* Options: Added phpMarkdownExtraExtensions.John MacFarlane2013-01-10
| | | | And added markdown_phpextra input/output format.
* EPUB changes.John MacFarlane2013-01-05
| | | | | | * Epub writer now exports writeEPUB, not writeEPUB2 and writeEPUB3. * Options now exports EPUBVersion * WriterOptions now includes writerEpubVersion.
* Use readMarkdownWithWarnings in Text.Pandoc.John MacFarlane2013-01-04
|
* Changed type of 'readers' in Text.Pandoc, so all readers are in IO.John MacFarlane2013-01-03
| | | | | | | | | 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.
* Preliminary changes for epub3 format.John MacFarlane2012-11-02
| | | | | | * EPUB writer now exports writeEPUB2 and writeEPUB3. * 'epub' output format is epub v2, while 'epub3' is v3.
* Added basic mediawiki reader.John MacFarlane2012-09-12
| | | | | Text.Pandoc.Readers.MediaWiki module, tests/mediawiki-reader.{txt,native}.
* Changed strict to markdown_strict.John MacFarlane2012-08-09
|
* Fixed handling of default extensions, so they don't override +options.John MacFarlane2012-08-09
|
* Removed `--strict`, added extensions to writer/reader names.John MacFarlane2012-08-09
| | | | | | | | | | | | * 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`.
* Added getReader, getWriter to Text.Pandoc.John MacFarlane2012-08-09
|
* Use safeRead instead of using reads directly (various modules).John MacFarlane2012-08-09
|
* Added parseFormatSpec to Text.Pandoc.John MacFarlane2012-08-09
|
* Changes to literate haskell options.John MacFarlane2012-08-08
| | | | | | | | | | | - 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.
* Moved WriterOptions and associated types Shared -> Options.John MacFarlane2012-07-26
|
* Changed reader parameters from ParserState to ReaderOptions.John MacFarlane2012-07-25
|
* Moved stateLiterateHaskell to readerLiterateHaskell in Options.John MacFarlane2012-07-25
|
* Put smart, strict in separate options field in state.John MacFarlane2012-07-25
| | | | | | | | | 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.
* Text.Pandoc: writers now an assoc list of String, Writer.John MacFarlane2012-07-24
| | | | | | | 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.
* Set writerTableOfContents for s5 in Text.Pandoc, not pandoc.hs.John MacFarlane2012-07-23
|
* Set writerSlideVariant in Text.Pandoc rather than pandoc.hs.John MacFarlane2012-07-23
|
* Added a new FictionBook2 (FB2) writer.Sergey Astanin2012-07-22
|
* Provide Data.Default instances for ParserState and WriterOptions.John MacFarlane2012-07-19
| | | | | | | | 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.