aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/Writers
AgeCommit message (Collapse)AuthorFilesLines
2011-01-26Adjusted writers to use "tex".John MacFarlane5-8/+9
2011-01-26Distinguish latex & context environments; blank line after in writers.John MacFarlane2-4/+2
2011-01-26Bumped version to 1.8; depend on pandoc-types 1.8.John MacFarlane14-58/+86
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.
2011-01-23Added needed space after .bc and .bq.John MacFarlane1-15/+15
Otherwise these can trap a </dd>, for example. Better solution to try next: rewrite using Pretty.
2011-01-23Textile writer: Don't escape code in bc. block.John MacFarlane1-1/+1
2011-01-23Textile writer: Don't HTML-escape between @'s.John MacFarlane1-1/+1
2011-01-23Textile writer: Use <pre> instead of bc.. for code with blank lines.John MacFarlane1-5/+8
This has fewer interaction effects.
2011-01-22ConTeXt writer: Ensure cr after \stoptyping.John MacFarlane1-1/+1
2011-01-22ConTeXt writer: Don't add cr at end of inline footnote.John MacFarlane1-1/+1
2011-01-21Make sure native output ends in newline with --standalone.John MacFarlane1-1/+1
2011-01-21Haddock comment improvements.John MacFarlane1-1/+5
2011-01-20Markdown writer: Avoid printing excess spaces at end if no notes/refs.John MacFarlane1-1/+2
2011-01-20Native writer: eliminated empty spaces in brackets.John MacFarlane1-2/+3
2011-01-20Improved native writer using Pretty.John MacFarlane1-48/+32
2-3X speed improvement and more consistent layout.
2011-01-19Made writeNative sensitive to writerStandalone.John MacFarlane1-4/+7
The Pandoc (Meta ...) is not written unless standalone is set.
2011-01-19Fixed problem with inline code in ConTeXt writer.John MacFarlane1-1/+3
Previously `}` would be rendered '\type{}}'. Now we check the string for '}' and '{'. If it contains neither, use \type{}; otherwise use \mono{} with an escaped version of the string. Note: There are some issues using the \type!str! form, including differences btw mkii and mkiv. For now this is a conservative fix. Perhaps in the future we can use \type!str!. See the discussion on pandoc-discuss s.v. "Bug in context writer".
2011-01-16Support --chapters for ConTeXt output as well.John MacFarlane1-3/+6
2011-01-16Use <chapter> for top docbook header if template has <book>.John MacFarlane1-2/+6
Resolves Issue #265.
2011-01-16Added --chapters option affecting docbook and latex.John MacFarlane2-3/+6
* Added writerChapters to WriterOptions. * Added --chapters command-line option. * --chapters causes top-level headers to be "chapter" instead of "section" in LaTeX and DocBook. * Resolves Issue #225.
2011-01-15HTML writer: Add ids to <section> tags.John MacFarlane1-1/+2
2011-01-14LaTeX writer: Escape strings in \href{..}.John MacFarlane1-2/+2
Previously strings weren't escaped, so %5D would be interpreted as a LaTeX comment!
2011-01-14LateX writer: In nonsimple tables, put cells in \parbox.John MacFarlane1-9/+12
Otherwise we can get problems with linebreaks, and cell spacing isn't right. Thanks to Jef Allbright for pointing out the problem.
2011-01-11Improvements to --html5 support:John MacFarlane1-13/+36
+ <nav> for TOC, <figure> for figures, type attribute in <ol>. + Don't add math javascript in html5. + Use style attributes instead of deprecated width, align. + html template: move <title> after <meta>. Note: charset needs to be declared before title. + slidy and s5 templates: move <title> after <meta>. + html template: Added link to html5 shim for IE. + Make --html5 have an effect only for 'html' writer (not s5, slidy, epub).
2011-01-11Preliminary support for HTML5.John MacFarlane1-1/+4
+ Added writerHtml5 writer option. + Added --html5 option. + Added support for lang in html tag (so you can do 'pandoc -s --V lang=en', for example). + Updated html template with conditionals for HTML5. + When HTML5 selected, use <header> tag around title in document, and use <section> tags instead of <div>s if --section-divs specified.
2011-01-06RST writer: blank line after literate Haskell code block.John MacFarlane1-3/+3
2011-01-06Markdown writer: blank line after delimited code block.John MacFarlane1-2/+2
2010-12-26Markdown writer: Fixed bug in Image.John MacFarlane1-1/+1
URI was getting unescaped twice!
2010-12-24Use functions from Text.Pandoc.Generic instead of processWith(M).John MacFarlane4-6/+10
2010-12-22ODT writer: Don't wrap text in opendocument.John MacFarlane1-1/+1
2010-12-22Texinfo writer: Updated to use Pretty.John MacFarlane1-56/+37
2010-12-22Man writer: updated to use Pretty.John MacFarlane1-18/+22
2010-12-21OpenDocument writer: Updated to use Pretty.John MacFarlane1-8/+12
2010-12-21Docbook writer: Updated to use Pretty.John MacFarlane1-21/+20
2010-12-21Shared: Made splitBy take a test instead of an element.John MacFarlane2-2/+2
2010-12-20Markdown writer: use \ for newline instead of two spaces at eol.John MacFarlane1-1/+4
(Unless --strict.)
2010-12-20Markdown writer: Use delimited code block if there are attributes.John MacFarlane1-2/+21
(Unless in strict mode.)
2010-12-20Plain writer: set stateStrictMarkdown automatically.John MacFarlane1-3/+4
2010-12-20ConTeXt writer: Updated to use Text.Pandoc.Pretty.John MacFarlane1-73/+71
2010-12-19LaTeX writer: A bit of code polish.John MacFarlane1-29/+28
2010-12-19LaTeX writer: Modified to use Pretty.John MacFarlane1-34/+30
Improved footnote formatting, removed spurious blank lines.
2010-12-18LaTeX writer: Use \paragraph, \subparagraph for level 4,5 headers.John MacFarlane1-9/+10
2010-12-17Added new prettyprinting module.John MacFarlane3-303/+307
* 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.
2010-12-15Use top-level header at end as bibliography title for natbib and biblatex ↵Nathan Gass1-4/+13
output.
2010-12-15Remove punctuation at start of suffix for natbib and biblatex output.Nathan Gass1-2/+6
This is necessary as the latex citation commands include there own punctuation, which resulted in doubled commas for markdown documents where citeproc output works correctly.
2010-12-15Support multiple bibliography files with natbib and biblatex output.Nathan Gass1-1/+2
2010-12-13Added option to write citation markup in markdown writer.Nathan Gass1-1/+29
2010-12-13Added support to write natbib or biblatex citations in latex output.Nathan Gass1-5/+113
2010-12-05Org writer: Minor changes to documentation header.John MacFarlane1-3/+3
2010-12-04Added tests.Puneeth Chaganti1-1/+1
+ Added tables.org and writer.org to tests. + Added org.template to templates. + Changed RunTests.hs as required. + Minor changes to Org writer.
2010-12-04Added Org-mode writerPuneeth Chaganti1-0/+291
+ Added Text/Pandoc/Writers/Org.hs + Added to pandoc.cabal + Added to pandoc.hs and Text/Pandoc.hs exports.