summaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/XML.hs
Commit message (Collapse)AuthorAge
* Update dates in copyright noticesAlbert Krewinkel2017-05-13
| | | | | This follows the suggestions given by the FSF for GPL licensed software. <https://www.gnu.org/prep/maintain/html_node/Copyright-Notices.html>
* Stylish-haskell automatic formatting changes.John MacFarlane2017-03-04
|
* Remove TagSoup compatJesse Rosenthal2016-09-02
| | | | | | | We already lower-bound tagsoup at 0.13.7, which means we were always running the compatibility layer (it was conditional on min value 0.13). Better to just use `lookupEntity` from the library directly, and convert a string to a char if need be.
* Updated copyright dates to include 2016.John MacFarlane2016-03-22
|
* Fixed shadowing warning.John MacFarlane2016-01-08
|
* Work around tagsoup bug - not allowing uppercase x in hex entities.John MacFarlane2016-01-08
| | | | Issue submitted at tagsoup.
* Entity handling fixes:John MacFarlane2016-01-08
| | | | | | | | | | | | | - Text.Pandoc.XML.fromEntities: handle entities without a semicolon. Always lookup character references with the trailing ';', even if it wasn't present. And never add it when looking up numerical entities. (This is what tagsoup seems to require.) - Text.Pandoc.Parsing.characterReference: Always lookup character references with the trailing ';', and leave off the ';' when looking up numerical entities. This fixes a regression for e.g. `&lang;`.
* Revert "Use -XNoImplicitPrelude and 'import Prelude' explicitly."John MacFarlane2015-11-09
| | | | This reverts commit c423dbb5a34c2d1195020e0f0ca3aae883d0749b.
* Use -XNoImplicitPrelude and 'import Prelude' explicitly.John MacFarlane2015-11-08
| | | | | | | This is needed for ghci to work with pandoc, given that we now use a custom prelude. Closes #2503.
* Updated copyright notices to -2015. Closes #2111.John MacFarlane2015-04-26
|
* Update copyright notices for 2014, add missing noticesAlbert Krewinkel2014-05-09
|
* Added Text.Pandoc.Compat.TagSoupEntity.John MacFarlane2013-08-08
| | | | | This allows pandoc to compile with tagsoup 0.13.x. Thanks to Dirk Ullrich for the patch.
* 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.
* Added Text.Pandoc.Writers.OPML.John MacFarlane2013-03-19
| | | | | | | | TODO: * Document in README * Add tests * Add template (and add template to cabal file)
* Fixed bug in fromEntities.John MacFarlane2012-04-14
| | | | The previous version would turn "hi & low you know;" into "hi &".
* Fixed bug in fromEntities: require semicolon to process as entity.John MacFarlane2012-02-05
|
* Text.Pandoc.XML: Export fromEntities.John MacFarlane2012-02-05
| | | | Remove old 'deEntities' from pandoc.hs.
* XML: Added toEntities.John MacFarlane2012-01-28
|
* XML: don't use breaking spaces in attribute lists.John MacFarlane2010-12-21
|
* XML: Replaced escapeStringAsXML with a faster version.John MacFarlane2010-12-21
| | | | | | Benchmarked with criterion, it's about 8x faster than the old version. This speeds up docbook, opendocument, and html writers.
* Updated copyright notices.John MacFarlane2010-03-23
|
* XML: don't escape \160 (nonbreaking space) as an entity.fiddlosopher2010-01-01
| | | | git-svn-id: https://pandoc.googlecode.com/svn/trunk@1770 788f1e2b-df1e-0410-8736-df70ead52e1b
* Added stripTags to Text.Pandoc.XML.fiddlosopher2009-12-05
| | | | | | This is used in the HTML writer. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1647 788f1e2b-df1e-0410-8736-df70ead52e1b
* Moved all haskell source to src subdirectory.fiddlosopher2009-01-24
git-svn-id: https://pandoc.googlecode.com/svn/trunk@1528 788f1e2b-df1e-0410-8736-df70ead52e1b