aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/Writers
AgeCommit message (Collapse)AuthorFilesLines
2012-09-29Renamed removedLeadingTrailingSpace to trim.John MacFarlane3-6/+5
Also removeLeadingSpace to triml, removeTrailingSpace to trimr.
2012-09-28HTML writer: Use toHtml instead of pre-escaping.John MacFarlane1-4/+7
We work around the problem that blaze-html unnecessarily escapes `'` by pre-escaping just the `'` characters, instead of the whole string. If blaze-html later stops escaping `'` characters, we can simplify strToHtml to toHtml. Note that this change yields a significant speed boost (111ms to 94ms on one benchmark). Closes #629.
2012-09-25Make --id-prefix affect footnote IDs in markdown writer.John MacFarlane1-4/+4
Closes #614.
2012-09-25Removed need for utf8-string package.John MacFarlane3-25/+24
* Depend on text. * Expose Text.Pandoc.UTF8. * Text.Pandoc.UTF8 now exports toString, fromString, toStringLazy, fromStringLazy. * These are used instead of the old utf8-string functions.
2012-09-24Texinfo writer: Fixed internal cross-references.John MacFarlane1-7/+26
Now we insert anchors after each header, and use @ref instead of @uref for links. Commas are now escaped as @comma{} only when needed; previously all commas were escaped. (This change is needed, in part, because @ref commands must be followed by a real comma or period.) Also insert a blank line in from of @verbatim environments.
2012-09-23Revert "More intelligent handling of text encodings."John MacFarlane1-2/+3
This reverts commit 7272735b3d413a644fd9ab01eeae8ae9cd5a925b.
2012-09-23More intelligent handling of text encodings.John MacFarlane1-3/+2
Previously, UTF-8 was enforced for both input and output. The new system: * For input, UTF-8 is tried first; if an error is raised, the locale encoding is tried. * For output, the locale encoding is always used.
2012-09-16LaTeX writer: Don't rely on the enumerate package.John MacFarlane1-17/+27
Instead, use standard LaTeX commands to change numbering style.
2012-09-16LaTeX writer: Properly escape strings inside \url{}.John MacFarlane1-1/+2
Closes #576.
2012-09-16RST writer: Fixed hyperlinked images.John MacFarlane1-17/+28
* Use :target: field when you have a simple linked image. * Don't wrap the reference. * Cleaned up code. * Closes #611.
2012-09-15LaTeX writer: Don't escape _ in hyperref identifiers.John MacFarlane1-1/+1
2012-09-15LaTeX writer: don't escape _ in url.John MacFarlane1-1/+1
2012-09-15LaTeX writer: Don't use \endhead with longtable.John MacFarlane1-1/+1
It causes the heading to be a different size form the body, sometimes.
2012-09-15Markdown writer: Made sensitive to Ext_hard_line_breaks.John MacFarlane1-4/+8
2012-09-15LaTeX writer: Use longtable instead of ctable.John MacFarlane1-19/+17
2012-09-13EPUB writer: Use ch001, ch002, etc. for chapter filenames.John MacFarlane1-5/+12
This improves sorting of chapters in some readers, which apparently sort ch2 after ch10. Closes #610.
2012-09-12HTML writer: Don't print `<dt>` unless term is non-empty.John MacFarlane1-1/+3
2012-09-12HTML writer: Improve line breaks with `<dd>` tags.John MacFarlane1-1/+2
We now put a newline between `</dd>` and `<dd>` when there are multiple definitions.
2012-09-06Made --id-prefix work in DocBook as well as HTML.John MacFarlane1-1/+1
Closes #607.
2012-09-05Docx writer: Fixed bug with nested lists.John MacFarlane1-20/+19
Previously a list like 1. one - a - b 2. two would come out with a bullet instead of "2." Thanks to Russell Allen for reporting the bug.
2012-08-25EPUB: Use title instead of "Title Page" in contents.John MacFarlane1-1/+1
Otherwise we have a hard-coded English string, which looks strange in ebooks written in other languages. Using the title for this entry seems a good solution. Closes #572.
2012-08-23Merge commit 'd25656571a4662a4e67b195daed69e77d80c4c2c'John MacFarlane1-2/+21
Conflicts: src/Text/Pandoc/Writers/ODT.hs
2012-08-23Don't strip meta and link elements in epub metadata.John MacFarlane1-3/+5
Per http://idpf.org/epub/30/spec/epub30-publications.html#sec-metadata-elem, a metadata element can contain not just Dublin Core elements but also meta and link elements, but Pandoc currently strips those out. Patch from aberrancy. Closes #589.
2012-08-21Implemented Ext_backtick_code_blocks.John MacFarlane1-6/+14
This is the variant github prefers.
2012-08-21Added Ext_fenced_code_attributes.John MacFarlane1-2/+4
2012-08-21Changed nomenclature, delimited -> fenced code blocks.John MacFarlane1-3/+3
2012-08-18Man writer: Escape - as \-.John MacFarlane1-1/+1
Unescaped -'s become hyphens, while \-'s are left as ascii minus signs. That is preferable for use with command-line options. See http://lintian.debian.org/tags/hyphen-used-as-minus-sign.html. Thanks to Andrea Bolognani for bringing the issue to our attention.
2012-08-17Docx line breaks: Use w:cr in w:r instead of w:br.John MacFarlane1-5/+6
This seems to fix a problem viewing pandoc-generated docx files in LibreOffice.
2012-08-12Implemented Ext_mmd_title_block in markdown reader & writer.John MacFarlane1-6/+29
2012-08-11Implemented tex_math extensions in markdown writer.John MacFarlane1-4/+18
2012-08-11Implemented Ext_markdown_attribute in markdown writer.John MacFarlane1-2/+19
2012-08-09Use safeRead instead of using reads directly (various modules).John MacFarlane1-3/+3
2012-08-08Changes to literate haskell options.John MacFarlane4-9/+6
- 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.
2012-08-05Markdown writer: Tables now sensitive to table extension options.John MacFarlane1-21/+42
Ext_simple_table, Ext_multiline_tables, Ext_pipe_tables. Simple tables are preferred over pipe tables when both are enabled. If no appropriate table style is available, a raw HTML table is used. So far there is no option for output of grid tables.
2012-08-05Started making markdown table writer sensitive to options.John MacFarlane1-32/+49
So far incomplete.
2012-08-04Don't include empty captions in figures.John MacFarlane6-17/+32
Closes #581.
2012-08-02Don't use escaped line breaks in plain output.John MacFarlane1-1/+3
2012-08-02Made markdown writer sensitive to Ext_subscript/superscript/strikeout.John MacFarlane1-3/+9
HTML is used if these are disabled.
2012-08-02Made markdown writer sensitive to Ext_definition_lists.John MacFarlane1-8/+13
IF not set, definition lists will be rendered as regular paragraphs, with the term set off by a line break.
2012-08-02Made markdown writer sensitive to Ext_startnum, Ext_fancy_lists.John MacFarlane1-1/+5
2012-08-02Made markdown reader sensitive to Ext_raw_tex.John MacFarlane1-2/+3
2012-08-02Made markdown writer sensitive to Ext_table_captions.John MacFarlane1-1/+1
2012-08-02Made markdown writer sensitive to Ext_pandoc_title_blocks.John MacFarlane1-1/+2
2012-08-02Made markdown writer sensitive to Ext_footnotes.John MacFarlane1-4/+10
If footnotes not enabled, footnotes are formatted like normal markdown paragraphs, with a marker like [3].
2012-07-27Replaced writerStrict with writerExtensions in WriterOptions.John MacFarlane2-17/+21
Still have not implemented individual tests for all the extensions in the markdown writer.
2012-07-26Moved WriterOptions and associated types Shared -> Options.John MacFarlane19-12/+25
2012-07-26Fixed whitespace errors.John MacFarlane12-257/+257
2012-07-24Use catch from Control.Exception to avoid warnings.John MacFarlane2-5/+8
2012-07-24Changed signatures of writeODT, writeDocx, writeEPUB.John MacFarlane3-14/+10
These now take WriterOptions and Pandoc only. The extra parameters for epub stylesheet, epub fonts, reference Docx, and reference ODT have been removed, since these things are now in WriterOptions. Note: breaking API change!
2012-07-22FB2: support images embedded as data URIs + tests.Sergey Astanin1-12/+58