summaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/Writers/RST.hs
Commit message (Collapse)AuthorAge
* RST writer: ensure that `\ ` is inserted when needed...John MacFarlane2015-08-13
| | | | | ...before Cite and Span elements that begin with a "complex" element. Closes jgm/pandoc-citeproc#157.
* RST writer: Don't insert `\ ` when complex expression in matched pairs.John MacFarlane2015-08-12
| | | | E.g. `` [:sup:`3`] `` is okay; you don't need `` [:sup:`3`\ ] ``.
* Updated copyright notices to -2015. Closes #2111.John MacFarlane2015-04-26
|
* RST Writer: treat headings in block quotes, etc as rubricsNikolay Yakimov2015-04-16
|
* RST Writer: Normalize headings to sequential levelsNikolay Yakimov2015-04-13
| | | | This is pretty much required by docutils.
* Fixed toc depth in RST writer.John MacFarlane2015-04-12
| | | | | | Previously the depth was being rendered as a floating point number with a decimal point. Thanks to Nick Yakimov for noticing this.
* RST writer: better handling of raw latex inline.John MacFarlane2015-04-07
| | | | | | | We use `` :raw-latex:`...` `` and add a definition for this role to the template. Closes #1961.
* ghc 7.10.1 RC1 requires specifying the type of String literals ↵Mark Wright2015-01-05
| | | | https://ghc.haskell.org/trac/ghc/wiki/Migration/7.10#GHCsaysNoinstanceforFoldable...arisingfromtheuseof...
* Reverted "omit blank lines after list items," better fix for #1777.John MacFarlane2014-11-25
| | | | | | | Now we do as before, including blank lines after list items in loose lists (even though RST doesn't care -- this is just a matter of visual appeal). But we chomp any excess whitespace after the last list item, which solves #1777.
* RST writer: Omit blank lines after list items.John MacFarlane2014-11-25
| | | | | | | They are optional in RST (except after the last list item, of course). Fixes #1777.
* RST writer: Ensure blank line after figure.John MacFarlane2014-11-25
|
* Fixed double-rendering of footnotes in RST tables.John MacFarlane2014-11-19
| | | | Closes #1769.
* RST writer: Wrap line blocks with spaces before continuations.John MacFarlane2014-09-30
| | | | Improves on fix to #1656.
* Don't wrap lines in rST line blocks.John MacFarlane2014-09-29
| | | | | | | | Closes #1656. Fixing pandoc to wrap the lines but insert spaces would be much more complicated. This at least makes the output semantically correct.
* Use `stripPrefix` where appropriate.Artyom Kazak2014-08-04
|
* Removed space at ends of lines in source.John MacFarlane2014-07-12
|
* Update copyright notices for 2014, add missing noticesAlbert Krewinkel2014-05-09
|
* RST writer: Avoid stack overflow with certain tables.John MacFarlane2014-03-14
| | | | | | | | | Closes #1197. Note that there are still problems with the formatting of the tables inside tables with output produced from the input file in the original bug report. But this fixes the stack overflow problem.
* RST writer: Ensure no blank line after def in definition list.John MacFarlane2014-01-02
| | | | Closes #992.
* Use isURI instead of isAbsoluteURI.John MacFarlane2013-10-16
| | | | It allows fragments identifiers.
* RST writer: Skip spaces after display math.John MacFarlane2013-10-11
| | | | | Otherwise we get indentation problems, and part of the next paragraph may be rendered as part of the math.
* 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.
* Updated for removed unMeta, unFormat in pandoc-types.John MacFarlane2013-08-14
|
* Adjustments for new Format newtype.John MacFarlane2013-08-10
|
* 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.
* Markdown/RST writers: Only autolink absolute URIs.John MacFarlane2013-04-14
| | | | | | | This fixes a regression and closes #830. $ echo '<a href="x">x</a>' | pandoc -f html -t markdown <x>
* Support :number-lines: in RST code output.John MacFarlane2013-03-06
|
* RST writer: Use `.. code:: language` for code blocks with language.John MacFarlane2013-01-26
| | | | | Closes #721. Also fixed whitespace in lhs tests.
* 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.
* RST writer: Fixes bug with links with duplicate text.John MacFarlane2013-01-13
| | | | | | | | | We now (a) use anonymous links for links with inline URLs, and (b) use an inline link instead of a reference link if the reference link would require a label that has already been used for a different link. Closes #511.
* RST writer: Properly handle images with no alt text.John MacFarlane2013-01-13
| | | | Closes #678.
* RST writer: Allow soft breaks w continuations in line blocks.John MacFarlane2013-01-13
|
* Use line block in RST writer when a paragraph contains linebreaks.John MacFarlane2013-01-13
| | | | | Previously linebreaks weren't supported in RST, since RST has no native linebreak construct.
* 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
|
* Changed --toc-level to --toc-depth.John MacFarlane2013-01-05
|
* Implemented --toc-level for rst.John MacFarlane2013-01-05
|
* RST writer: Don't add ":align: center" to figures.John MacFarlane2012-11-04
|
* RST writer: Fixed hyperlinked images.John MacFarlane2012-09-16
| | | | | | | * Use :target: field when you have a simple linked image. * Don't wrap the reference. * Cleaned up code. * Closes #611.
* 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
|
* Fixed whitespace errors.John MacFarlane2012-07-26
|
* RST writer: Don't wrap link references.John MacFarlane2012-04-21
| | | | Closes #487.
* RST writer: Better handling of inline formatting.John MacFarlane2012-03-24
| | | | | | | | | * `hi*there*hi` now gets rendered properly as `hi\ *there*\ hi` * Unnecessary '\ ' are avoided around :math:, :sub:, :sup: * Implemented most of the rules in http://docutils.sourceforge.net/docs/ref/rst/restructuredtext.html#inline-markup-recognition-rules, though some unnecessary '\ ' may be inserted when unicode quotes are used.
* Don't wrap headers in markdown or rst.John MacFarlane2012-02-08
|