aboutsummaryrefslogtreecommitdiff
path: root/src/pandoc.hs
AgeCommit message (Collapse)AuthorFilesLines
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
2010-07-21Avoid shadowing when compiling with citeproc.John MacFarlane1-4/+4
2010-07-20Made spacing at end of output more consistent.John MacFarlane1-1/+1
Previously some of the writers added spurious whitespace. This has been removed, resolving Issue #232. NOTE: If your application combines pandoc's output with other text, for example in a template, you may need to add spacing. For example, a pandoc-generated markdown file will not have a blank line after the final block element. If you are inserting it into another markdown file, you will need to make sure there is a blank line between it and the next block element.
2010-07-15Added --section-divs option.John MacFarlane1-0/+9
+ Header identifiers now get attached to the headers, unless --section-divs is specified, in which case they are added to enclosing divs. By default, the divs are not added. + Resolves Issue #230, #239.
2010-07-15Added --webtex option for HTML math.John MacFarlane1-3/+15
+ Added --webtex command-line option, with optional parameter. (Defaults to using google charts API.) + Added WebTeX HTMLMathMethod. + Removed MimeTeX HTMLMathMethod. (WebTeX is generic and subsumes it.) + Modified --mimetex option to use WebTeX. + Thanks to lpeterse for the idea and some of the code.
2010-07-13Added a slidy writer.John MacFarlane1-5/+11
Resolves Issue #122.
2010-07-11Moved headerShift from pandoc.hs to Shared.John MacFarlane1-7/+2
2010-07-08Get default stylesheet in EPUB writer, rather than pandoc.hs.John MacFarlane1-10/+7
2010-07-08Added writerUserDataDir to WriterOptions.John MacFarlane1-3/+3
2010-07-08Added writerSourceDirectory to WriterOptions.John MacFarlane1-7/+9
This allows us to remove an argument from the ODT and EPUB writers.
2010-07-05Added writerEPUBMetadata field and --epub-metadata option.John MacFarlane1-0/+12
2010-07-05Removed writerInclude{Before,After} from WriterOptions.John MacFarlane1-8/+0
This is no longer used with the new templating system.
2010-07-05Moved Pandoc prettyprinting code from Shared to new Native writer.John MacFarlane1-5/+1
+ Text.Pandoc.Writers.Native + The function prettyPandoc is now gone. Use writeNative instead.
2010-07-05Added an EPUB writer.John MacFarlane1-1/+19
+ New writer module Text.Pandoc.Writers.EPUB + Stylesheet in epub.css + --epub-stylesheet command-line option. + New utility module Text.Pandoc.UUID to generate random UUIDs for EPUBs.
2010-07-05Made a proper ODT writer.John MacFarlane1-15/+16
+ Transformed the old Text.Pandoc.ODT module into a proper writer module, Text.Pandoc.Writers.ODT. + Instead of saveOpenDocumentAsODT, we now have writeODT, which takes a Pandoc document and produces a bytestring. saveOpenDocumentAsODT has been removed. + To extract the images and insert them into the ODT, we now use processPandocM on the Pandoc document rather than a custom XML parser. + Handle the case where the image is remote (or not found) by converting the Image element into an Emph with the label. + Plumbing in pandoc.hs changed slightly to accomodate this, and to allow other writers that live in the IO monad.
2010-05-17Added Textile writer module.John MacFarlane1-0/+1
2010-05-06Use new UTF8 module in Shared, ODT, and the executables.John MacFarlane1-29/+22
2010-05-04Convert command-line arguments to UTF8.John MacFarlane1-1/+2
Resolves Issue #234.
2010-03-23Updated copyright notices.John MacFarlane1-2/+2
2010-03-19Changed copyright date range for -v.fiddlosopher1-1/+1
git-svn-id: https://pandoc.googlecode.com/svn/trunk@1914 788f1e2b-df1e-0410-8736-df70ead52e1b
2010-03-18Added --mathml option; removed Text.Pandoc.LaTeXMathML.fiddlosopher1-4/+13
* Added data/MathMLinHTML.js, which is included when no URL is provided for --mathml. This allows MathML to be displayed in better browsers, as text/html. * The module was no longer necessary; its functionality (two lines) was incorporated into pandoc.hs. * Consolidated the two LaTeXMathML.js files into one. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1909 788f1e2b-df1e-0410-8736-df70ead52e1b
2010-03-18Better heuristics for guessing reader to use.fiddlosopher1-6/+9
If argument is an absolute URL without a recognized extension, and no reader is explicitly specified, use HTML. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1908 788f1e2b-df1e-0410-8736-df70ead52e1b