summaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/Writers/Org.hs
Commit message (Collapse)AuthorAge
* Org Writer: Write anchor elementsMatthew Pickering2014-08-08
| | | | | | The Org Writer now writes empty span elements which have an id as an anchor. For example `Span ("uid", [], []) []` becomes `<<uid>>`
* Update copyright notices for 2014, add missing noticesAlbert Krewinkel2014-05-09
|
* Org writer: Fix output for linebreaksAlbert Krewinkel2014-04-12
| | | | | Hard linebreaks in Org mode are represented by the string "\\" as the last characters in a line. Adds this feature to the Org-mode writer.
* HLint: use `elem` and `notElem`Henry de Valence2013-12-19
| | | | Replaces long conditional chains with calls to `elem` and `notElem`.
* Adjusted writers and tests for change in parsing of div/span.John MacFarlane2013-08-18
| | | | | Textile, MediaWiki, Markdown, Org, RST will emit raw HTML div tags for divs. Otherwise Div and Span are "transparent" block containers.
* Preliminary support for new Div and Span elements in writers.John MacFarlane2013-08-08
| | | | | Currently these are "transparent" containers, except in HTML, where they produce div and span elements with attributes.
* Created Text.Pandoc.Writers.Shared, improved metaToJSON.John MacFarlane2013-07-01
| | | | | | | * Text.Pandoc.Writers.Shared contains shared functions used only in writers. * metaToJSON now takes a WriterOptions parameter, and will return an empty object if standalone is not specified.
* Metadata changes: Variables now completely shadow metadata.John MacFarlane2013-06-29
| | | | | | | | | Previously if you set a value both in metadata and with a variable, they'd be combined into a list. Now the variable replaces the value in document metadata. If many variables with the same name are set, a list is created. Shared: metaToJSON now has an argument for a variable list.
* Writers: Use defField for defaults.John MacFarlane2013-06-27
| | | | | | | This way explicitly specified fields not overridden. Fixes a problem e.g. with specifying a documentclass via the command line using -V.
* 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 'fig:' instead of '\SOH' in title to indicate figure.John MacFarlane2013-01-15
| | | | Revises 1a4b47e93368bfbd31daccdfedbd9527ee740201
* Implemented Ext_implicit_figures.John MacFarlane2013-01-14
| | | | | | | | | | | | * In markdown reader, add a '\1' character to the beginning of the title of an image that is alone in its paragraph, if implicit_figures extension is selected. * In writers, check for Para [Image alt (src,'\1':tit)] and treat it as a figure if possible. * Updated tests. This is a bit of a hack, but it allows us to make implicit_figures an extension of the markdown reader, rather than the writers.
* Added Attr field to Header.John MacFarlane2013-01-09
| | | | | | | | | | Previously header ids were autogenerated by the writers. Now they are generated (unless supplied explicitly) in the markdown parser, if the `header_identifiers` extension is selected. In addition, the textile reader now supports id attributes on headers.
* Don't put the text of an autolink in Code font.John MacFarlane2013-01-06
|
* Don't include empty captions in figures.John MacFarlane2012-08-04
| | | | Closes #581.
* Moved WriterOptions and associated types Shared -> Options.John MacFarlane2012-07-26
|
* Fixed whitespace errors.John MacFarlane2012-07-26
|
* Org writer: Add space before language name.John MacFarlane2012-05-29
| | | | Closes #523.
* Replaced Apostrophe, Ellipses, EmDash, EnDash w/ unicode strings.John MacFarlane2011-12-27
|
* Shared: Removed unescapeURI, modified escapeURI.John MacFarlane2011-12-02
| | | | | | | | | | | | escapeURI now only escapes space characters, leaving unicode characters as they are, instead of converting them to octets and URL-encoding them, as before. This gives more readable URIs. User agents now do the percent-encoding themselves. URIs are no longer unescaped at all on conversion to markdown, asciidoc, rst, org. Closes #349.
* Add support for attributes in inline Code.John MacFarlane2011-01-26
| | | | | | | | Additional related changes: * URLs in Code in autolinks now use class "url". * Require highlighting-kate 0.2.8.2, which omits the final <br/> tag, essential for inline code.
* Adjusted writers to use "tex".John MacFarlane2011-01-26
|
* Bumped version to 1.8; depend on pandoc-types 1.8.John MacFarlane2011-01-26
| | | | | | | The old TeX, HtmlInline and RawHtml elements have been removed and replaced by generic RawInline and RawBlock elements. All modules updated to use the new raw elements.
* Added new prettyprinting module.John MacFarlane2010-12-17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * Added Text.Pandoc.Pretty. This is better suited for pandoc than the 'pretty' package. One advantage is that we now get proper wrapping; Emph [Inline] is no longer treated as a big unwrappable unit. Previously we only got breaks for spaces at the "outer level." We can also more easily avoid doubled blank lines. Performance is significantly better as well. * Removed Text.Pandoc.Blocks. Text.Pandoc.Pretty allows you to define blocks and concatenate them. * Modified markdown, RST, org readers to use Text.Pandoc.Pretty instead of Text.PrettyPrint.HughesPJ. * Text.Pandoc.Shared: Added writerColumns to WriterOptions. * Markdown, RST, Org writers now break text at writerColumns. * Added --columns command-line option, which sets stColumns and writerColumns. * Table parsing: If the size of the header > stColumns, use the header size as 100% for purposes of calculating relative widths of columns.
* Org writer: Minor changes to documentation header.John MacFarlane2010-12-05
|
* Added tests.Puneeth Chaganti2010-12-04
| | | | | | | + Added tables.org and writer.org to tests. + Added org.template to templates. + Changed RunTests.hs as required. + Minor changes to Org writer.
* Added Org-mode writerPuneeth Chaganti2010-12-04
+ Added Text/Pandoc/Writers/Org.hs + Added to pandoc.cabal + Added to pandoc.hs and Text/Pandoc.hs exports.