aboutsummaryrefslogtreecommitdiff
path: root/src/pandoc.hs
AgeCommit message (Collapse)AuthorFilesLines
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.
2010-10-26Added support for MathJax for displaying math in HTML.John MacFarlane1-0/+6
Added --mathjax option. Added MathJax to HTMLMathMethod. Supported MathJax in HTML writer. Resolves Issue #259.
2010-10-26Process LaTeX macros in markdown, and apply to TeX math.John MacFarlane1-2/+3
Example: \newcommand{\plus}[2]{#1 + #2} $\plus{3}{4}$ yields: 3+4
2010-10-24Changed --help message for --variable to KEY:VALUE.John MacFarlane1-1/+1
Was previously FILENAME.
2010-09-10Encode filenames as UTF8.John MacFarlane1-2/+2
Resolves Issue #252 (pandoc doesn't properly handle unicode filenames).
2010-07-24--offline implies --standalone.John MacFarlane1-1/+2
2010-07-22Moved Text.Pandoc.Writers.S5 -> Text.Pandoc.S5.John MacFarlane1-1/+1
Now it doesn't export a writer, just some CSS and JS.
2010-07-22Moved s5 writing from S5 module to HTML.John MacFarlane1-6/+3
Now s5 is handled in more or less the same way as slidy, as a variant of HTML.
2010-07-22Extended --offline to s5.John MacFarlane1-1/+4
S5 default is now to include links, rather than a full copy of scripts and stylesheets.
2010-07-22Added new --offline option for slidy.John MacFarlane1-5/+20
Added slidy/slidy.min.{css,js}.
2010-07-22Export HTMLSlideVariant in Text.Pandoc.John MacFarlane1-1/+1