summaryrefslogtreecommitdiff
path: root/src/Text/Pandoc.hs
Commit message (Collapse)AuthorAge
* Text.Pandoc: disable auto_identifiers for epub.John MacFarlane2015-08-08
| | | | | The epub writer inserts its own auto identifiers; this is more complex due to splitting into "chapter" files.
* Added odt readerMarLinn2015-07-23
| | | | | | | | | | | | | | | | | | | | | Fully implemented features: * Paragraphs * Headers * Basic styling * Unordered lists * Ordered lists * External Links * Internal Links * Footnotes, Endnotes * Blockquotes Partly implemented features: * Citations Very basic, but pandoc can't do much more * Tables No headers, no sizing, limited styling
* Plain writer: don't use symbols for super/subscript.John MacFarlane2015-06-27
| | | | | | Simplified code by using plainExtensions from Options. Closes #2237.
* Updated copyright notices to -2015. Closes #2111.John MacFarlane2015-04-26
|
* Added CommonMark writer.John MacFarlane2015-03-29
| | | | | Added `Text.Pandoc.Writers.CommonMark`, exporting `writeCommonMark`.
* Updated code example in Text.Pandoc.John MacFarlane2015-03-28
|
* Merge branch 'errortype' of https://github.com/mpickering/pandoc into ↵John MacFarlane2015-03-28
|\ | | | | | | | | | | | | | | | | | | | | mpickering-errortype Conflicts: benchmark/benchmark-pandoc.hs src/Text/Pandoc/Readers/Markdown.hs src/Text/Pandoc/Readers/Org.hs src/Text/Pandoc/Readers/RST.hs tests/Tests/Readers/LaTeX.hs
| * Move utility error functions to Text.Pandoc.SharedMatthew Pickering2015-02-18
| |
| * Update Pandoc.hsMatthew Pickering2015-02-18
| |
* | Added CommonMark reader using cmark (libcmark bindings).John MacFarlane2015-03-17
|/ | | | | | | | - Added commonmark as an input format. - Added `Text.Pandoc.Readers.CommonMark.readCommonMark`. - For now, we use the markdown writer to generate benchmark text for the CommonMark reader. We can change this when we get a writer.
* expose warnings from RST reader; refactorDaniel Bergey2014-12-12
| | | | | | This commit moves some code which was only used for the Markdown Reader into a generic form which can be used for any Reader. Otherwise, it takes naming and interface cues from the preexisting Markdown code.
* TWiki Reader: add new new twiki readerAlexander Sulfrian2014-10-30
|
* Make `raw_tex` extension non-default for textile reader, writer.John MacFarlane2014-08-14
| | | | | | Enable `raw_tex` extension in textile writer. Closes #1532.
* Added `native_divs` and `native_spans` extensions.John MacFarlane2014-08-08
| | | | | | | | | This allows users to turn off the default pandoc behavior of parsing contents of div and span tags in markdown and HTML as native pandoc Div blocks and Span inlines. Setting of default epub extensions has been moved from the EPUB reader to Text.Pandoc.
* EPUB Reader: Integrated into programMatthew Pickering2014-07-31
|
* New module, Text.Pandoc.MediaBag.John MacFarlane2014-07-31
| | | | | | | Moved `MediaBag` definition and functions from Shared: `lookupMedia`, `mediaDirectory`, `insertMedia`, `extractMediaBag`. Removed `emptyMediaBag`; use `mempty` instead, since `MediaBag` is a Monoid.
* Moved MediaBag back from Shared to Options, to avoid module cycle.John MacFarlane2014-07-30
|
* Moved MediaBag from Shared to Options.John MacFarlane2014-07-30
| | | | This will allow us to put a MediaBag in WriterOptions.
* Pandoc.hs: change BSReader to output MediaBag as well as pandoc.Jesse Rosenthal2014-07-30
|
* Txt2Tags Reader: Added recognition of macrosMatthew Pickering2014-07-27
|
* Txt2Tags Reader: Integrated into pandocMatthew Pickering2014-07-27
|
* Removed space at ends of lines in source.John MacFarlane2014-07-12
|
* Merge remote-tracking branch 'jgm/master' into dokuwikiClare Macrae2014-06-29
|\
| * 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.
* | Initial work to create dokuwiki writer (#386)Clare Macrae2013-07-14
|/ | | | In this first version, all dokuwiki files are straight copies of the media wiki counterparts.
* 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.