aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/Writers/Custom.hs
AgeCommit message (Collapse)AuthorFilesLines
2015-05-05Deal with deprecation warning in Custom.John MacFarlane1-2/+10
2015-04-26Merge pull request #2112 from lierdakil/issue2101John MacFarlane1-33/+29
Custom Writer: Set foreign encoding to UTF-8
2015-04-26Updated copyright notices to -2015. Closes #2111.John MacFarlane1-2/+2
2015-04-26Custom Writer: Set foreign encoding to UTF-8Nikolay Yakimov1-33/+29
Closes #2101, #1634 Also factored out ByteString, since it's only used as an intermediate representation.
2015-04-21Custom writer: use UTF-8 aware bytestring conversion.John MacFarlane1-7/+8
This might help with #2101.
2015-01-18Custom writer: Raise `PandocLuaException` instead of using 'error'.John MacFarlane1-2/+9
Eventually we'll change the return type so that no exception is involved, but at least this can be trapped.
2015-01-18Custom writer: raise error if loadstring returns an error status.John MacFarlane1-1/+6
This will make debugging custom scripts much easier.
2014-07-16Remove unused import.John MacFarlane1-1/+0
2014-07-16Custom writers now work with `--template`.John MacFarlane1-2/+14
Removed HTML header scaffolding from data/sample.lua.
2014-07-16Made Citation information available in lua custom writer.John MacFarlane1-2/+17
2014-05-09Update copyright notices for 2014, add missing noticesAlbert Krewinkel1-2/+2
2014-04-04Correctly handle UTF-8 in custom lua scripts. Closes #1189.John MacFarlane1-2/+1
2014-04-04Custom writer: read lua script as UTF-8.John MacFarlane1-1/+2
This should fix #1189.
2013-08-10Adjustments for new Format newtype.John MacFarlane1-0/+6
2013-08-08Preliminary support for new Div and Span elements in writers.John MacFarlane1-0/+5
Currently these are "transparent" containers, except in HTML, where they produce div and span elements with attributes.
2013-08-06Added support for MetaBool.John MacFarlane1-0/+2
2013-06-27Custom writer: Pass full metadata, not just tit/auth/date.John MacFarlane1-5/+15
2013-06-24Use new flexible metadata type.John MacFarlane1-4/+4
* 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.
2013-04-14Added `Text.Pandoc.Writers.Custom`, `--print-custom-lua-writer`.John MacFarlane1-0/+230
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.