aboutsummaryrefslogtreecommitdiff
path: root/src/pandoc.hs
AgeCommit message (Collapse)AuthorFilesLines
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
2010-11-20Citation related changes.John MacFarlane1-22/+9
* Don't look for bibliography in ~/.pandoc. Reason: doing this requires a read + parse of the bibliography even when the document doesn't use citations. This is a big performance drag on regular pandoc invocations. * Only look for default.csl if the document contains references. Reason: avoids the need to read and parse csl file when the document contains no references anyway. * Removed findFirstFile from Shared.
2010-11-19Use default biblio.{xml,json,bib} in pandoc data dir if none specified.John MacFarlane1-21/+23
2010-11-18If --csl not specified, read from data files or default.John MacFarlane1-6/+23
Thus --csl behaves like --reference-odt, --template, etc.
2010-11-16Removed unneeded format argument in call to readBiblioFile.John MacFarlane1-1/+1
2010-11-13Improve handling of bibliography not found error.John MacFarlane1-1/+5
2010-11-13Replaced --biblio-file with --bibliography, removed --biblio-format.John MacFarlane1-18/+9
Bibliography format is guessed from the file extension of the bibliography. Also, the bibliography entries are now read during option parsing.
2010-11-12Merge branch 'master' into citeprocJohn MacFarlane1-3/+4
2010-11-12Treat argument as URI only if it has http(s) scheme.John MacFarlane1-3/+4
Previously pandoc would treat the c: in some windowns filespecs as a URI scheme and try to download... Thanks to Peter Wang for pointing this out.
2010-10-27Changes to use citeproc 0.3.John MacFarlane1-1/+1
Patch from Andrea Rossato. Note: the markdown syntax is preliminary and will probably change.