aboutsummaryrefslogtreecommitdiff
path: root/src/pandoc.hs
AgeCommit message (Collapse)AuthorFilesLines
2011-12-27Added `--highlight-style` and `--no-highlight` options.John MacFarlane1-5/+35
2011-12-22Removed highlighting flag. Highlighting support is now standard.John MacFarlane1-6/+1
2011-12-22Added writerHighlight to WriterOptions.John MacFarlane1-1/+2
2011-12-17Use blaze-html instead of xhtml for HTML generation.John MacFarlane1-11/+2
* This is a breaking API change for `writeHtml`. * It introduces a new dependency on blaze-html. * Pandoc now depends on highlighting-kate >= 0.4, which also uses blaze-html. * The --ascii option has been removed, because of differences in blaze-html's and xhtml's escaping. * Pandoc will no longer transform leading newlines in code blocks to `<br/>` tags.
2011-12-03New slidy directory for "self-contained."John MacFarlane1-0/+2
2011-11-23pandoc.hs : changed a couple `writerName` to `writerName'`.John MacFarlane1-2/+2
This fixes a bug in which `pandoc --self-contained` would only work properly if `-t html` were specified explicitly.
2011-11-22Set `--standalone` implicitly when non-text output format.John MacFarlane1-4/+4
(ODT, EPUB). This restores pandoc's previous behavior. You can again do `pandoc test.txt -o test.odt` and get a standalone ODT file. Resolves #351.
2011-11-21Added --self-contained, integrated into src/pandoc.hs.John MacFarlane1-26/+24
--offline is now a deprecated synonym for --self-contained. TODO: Documentation, remove old S5 module.
2011-11-16Added an asciidoc writer (partial).John MacFarlane1-0/+1
Still TODO: - documentation in README - add default.asciidoc to templates/ - lists - tables - proper escaping - footnotes with blank lines - print separately at end? currently they are just ignored. - fix header (date gives weird result on pandoc README)
2011-11-11Implemented --citation-abbreviations option.John MacFarlane1-1/+10
Mostly due to Andrea Rossato.
2011-10-26Removed redundant import.John MacFarlane1-1/+1
2011-10-01Added dzslides output option.John MacFarlane1-5/+7
* Added DZSlides to HTMLSlideVariant. * Added support for dzslides in HTML writer. * Added dzslides template.
2011-07-24Fixed slidy css.John MacFarlane1-1/+1
* Use non-minimized version of `slidy.css` with `--offline` option, so users can more easily edit it. * Fixed bug in slidy css that prevented proper centering of title.
2011-07-23Changed `--mathjax` to link to mathjax CDN by default.John MacFarlane1-2/+6
`--mathjax` now takes an optional URL argument. If it is not provided, pandoc links directly to the (secure) mathjax CDN. This is what they now recommend. Thanks to dsanson.
2011-07-22Changed default template naming scheme.John MacFarlane1-2/+9
Instead of latex.template, we now have default.latex. An appropriate extension is added automatically if the value of `--template` has no extension. So, `pandoc --template=special -t latex` looks for `special.latex`, while `pandoc --template=special -t man` looks for `special.man`.
2011-07-22Look for value of --template in datadir if not found.John MacFarlane1-12/+19
This way, you can put your special.template.latex in ~/.pandoc and use it from any directory.
2011-07-22Deprecated `--xetex` option - it is no longer needed.John MacFarlane1-4/+6
Deprecated `writerXeTeX` and the `--xetex` option. The latex writer now produces a file that can be processed by latex, pdflatex, lualatex, or xelatex, so this option isn't needed. The option is still neded in markdown2pdf, however, which has been modified to take some options that aren't in pandoc.
2011-04-16Revert API change in EPUB writer.John MacFarlane1-5/+3
Instead of passing the epub cover image as a parameter, we now pass it in the list of variables. This avoids the API change introduced in f5cbb68534c52b292c57aaf741ab94442ddadd7a without losing the new functionality.
2011-03-13Added --epub-cover-image option.John MacFarlane1-1/+11
API change: Added a parameter for the cover image path to writeEPUB. Followed best practices outlined in http://blog.threepress.org/2009/11/20/best-practices-in-epub-cover-images/
2011-02-06pandoc.hs: Updated copyright notice.John MacFarlane1-3/+3
2011-02-06Added --ascii option.John MacFarlane1-2/+11
Currently supported only in HTML writer.
2011-01-30pandoc.hs: Simplified code for writing result.John MacFarlane1-18/+14
2011-01-28Add possibility to use listings package for code blocks andJosef Svenningsson1-1/+10
inline code in the LaTeX writer.
2011-01-28RTF writer: Embed images when possible.John MacFarlane1-5/+9
* Resolves Issue #275. * PNG and JPEG supported. * Export rtfEmbedImage.
2011-01-23Default to textile writer on .textile extension.John MacFarlane1-0/+1
2011-01-20Added --normalize option.John MacFarlane1-1/+7
2011-01-16Removed '--no-citeproc' as alias for '--natbib'.John MacFarlane1-1/+1
This was confusing, I think, as no-citeproc could be either natbib or biblatex.
2011-01-16Minor code formatting.John MacFarlane1-0/+5
2011-01-16Moved --chapters to before --number-sections in option list.John MacFarlane1-5/+5
2011-01-16Added --chapters option affecting docbook and latex.John MacFarlane1-1/+10
* 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-11Improvements to --html5 support:John MacFarlane1-2/+3
+ <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/+10
+ 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-07pandoc: Test standalone' rather than standalone for final newline.John MacFarlane1-1/+1
2011-01-06pandoc: Add newline to output unless standalone.John MacFarlane1-2/+6
This avoids output that does not end with a newline, which is inconvenient when working with many tools. Updated tests accordingly.
2010-12-17Added new prettyprinting module.John MacFarlane1-20/+38
* 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-15Support multiple bibliography files with natbib and biblatex output.Nathan Gass1-1/+1
2010-12-13Added option to write citation markup in markdown writer.Nathan Gass1-1/+1
2010-12-13Added support to write natbib or biblatex citations in latex output.Nathan Gass1-13/+24
2010-12-12Recognize .json extension as json reader/writer.John MacFarlane1-0/+2
2010-12-11Removed deprecated -C/--custom-header option.John MacFarlane1-17/+0
Use --template instead.
2010-12-10Moved 'readers' and 'writers' to Text.Pandoc.John MacFarlane1-49/+5
This allows library users to avoid repetitive case statements...
2010-12-10Removed HTML sanitization.John MacFarlane1-9/+0
This is better done on the resulting HTML; use the xss-sanitize library for this. xss-sanitize is based on pandoc's sanitization, but improves it. - Removed stateSanitize from ParserState. - Removed --sanitize-html option.
2010-12-04Added Org-mode writerPuneeth Chaganti1-0/+2
+ Added Text/Pandoc/Writers/Org.hs + Added to pandoc.cabal + Added to pandoc.hs and Text/Pandoc.hs exports.
2010-12-03Merge branch 'citeproc' into master.John MacFarlane1-43/+34
Conflicts: src/Text/Pandoc/Definition.hs
2010-12-03Use textile reader by default for .textile extension.John MacFarlane1-0/+1
2010-12-03Basic Textile Readerpaul.rivier1-0/+1
2010-11-27Merge branch 'master' into citeprocJohn MacFarlane1-0/+1
2010-11-27Merge branch 'textile'John MacFarlane1-0/+1
Conflicts: README man/man1/pandoc.1.md pandoc.cabal
2010-11-23More flexible handling of --csl.John MacFarlane1-2/+10
Look for csl files in ~/.csl if not found locally. Add .csl extension if it is not provided.
2010-11-23Removed citeproc flag and CPP conditionals.John MacFarlane1-18/+0