aboutsummaryrefslogtreecommitdiff
path: root/src/pandoc.hs
AgeCommit message (Collapse)AuthorFilesLines
2012-06-25Test for base 4.4.0 instead of 4.5.0 for argument/filename encoding.John MacFarlane1-2/+2
2012-06-24Don't encode/decode file paths if base >= 4.5.John MacFarlane1-3/+17
Prior to base 4.5 (and perhaps earlier - check), filepaths and command line arguments were treated as unencoded lists of bytes, not unicode strings, so we had to work around that by encoding and decoding them. This commit adds CPP checks for base 4.5 that disable the encoding/decoding. Fixes a bug with multilingual filenames when pandoc was compiled with ghc 7.4. Closes #540.
2012-05-24Add support for Slideous output.Jonas Smedegaard1-3/+4
2012-05-17Added 'zenburn' highlight style from highlighting-kate.John MacFarlane1-1/+2
Depend on h-k 0.5.0.6.
2012-05-11Added writerTeXLigatures to WriterOptions, `--no-tex-ligatures` option.John MacFarlane1-2/+12
This is useful for those who want to use advanced OpenType features with xelatex/lualatex.
2012-04-14Input files with .db extension treated as docbook by default.John MacFarlane1-0/+1
2012-03-09Changed -V so that you can specify a key without a value.John MacFarlane1-8/+7
Such keys get the value `true`.
2012-03-09Added beamer+lhs as output format.John MacFarlane1-16/+14
2012-02-11Print texmath version in --version output.John MacFarlane1-2/+2
2012-02-05Re-added the --ascii option.John MacFarlane1-5/+18
Now it is implemented in pandoc.hs, not in the HTML writer.
2012-02-05Text.Pandoc.XML: Export fromEntities.John MacFarlane1-14/+2
Remove old 'deEntities' from pandoc.hs.
2012-02-05pandoc: Treat html5+lhs as an html format.John MacFarlane1-1/+2
2012-02-04Complete rewrite of LaTeX reader.John MacFarlane1-16/+11
* The new reader is more robust, accurate, and extensible. It is still quite incomplete, but it should be easier now to add features. * Text.Pandoc.Parsing: Added withRaw combinator. * Markdown reader: do escapedChar before raw latex inline. Otherwise we capture commands like \{. * Fixed latex citation tests for new citeproc. * Handle \include{} commands in latex. This is done in pandoc.hs, not the (pure) latex reader. But the reader exports the needed function, handleIncludes. * Moved err and warn from pandoc.hs to Shared. * Fixed tests - raw tex should sometimes have trailing space. * Updated lhs-test for highlighting-kate changes.
2012-01-31Change copyright date.John MacFarlane1-3/+3
2012-01-30Added `--epub-embed-font` option.John MacFarlane1-1/+12
* This can be repeated for multiple fonts. * Added parameter for fonts to embed to writeEPUB. * Added ttf, otf to Mime types in Text.Pandoc.MIME.
2012-01-28Made `beamer` an output format, removed `pdf` as output format.John MacFarlane1-28/+32
Removed `--beamer` option; instead, use `beamer` as output format. There is no longer a `pdf` output format; instead, pandoc tries to produce a pdf if the output file has a `.pdf` extension. (The output format can be latex -- the default for pdf output, latex+lhs, or beamer.) This seems more consistent with the way pandoc currently works (e.g. we have an `html5` output format, not an `--html5` option).
2012-01-26Added --atx-headers option.John MacFarlane1-1/+11
2012-01-25Reorganized --help output to match order of options in man page.John MacFarlane1-208/+209
2012-01-25Added --slide-level option to override default.John MacFarlane1-0/+15
This allows users to select a slide level below the first header level with content. Note that content under sections above the slide level will not appear in slides (either in beamer or in HTML slide shows). This is primarily useful for creating documents that can be made into both slides and handouts (which contain additional content outside the slides).
2012-01-21Slight edits to a couple error messages.John MacFarlane1-2/+2
2012-01-21Removed `beamer` output format; added `--beamer` option.John MacFarlane1-12/+21
2012-01-21pandoc: Better error checking.John MacFarlane1-0/+10
2012-01-21Improved deprecation warnings for --html5, --offline.John MacFarlane1-3/+4
2012-01-21pandoc: Removed deprecated --xetex option.John MacFarlane1-10/+0
2012-01-21pandoc: Check for latex program earlier.John MacFarlane1-10/+13
2012-01-21pandoc: Added optLaTeXProgram.John MacFarlane1-3/+4
2012-01-20Refactored error reporting in pandoc.hs.John MacFarlane1-40/+49
2012-01-20PDF: Use string instead of special TeXProgram type.John MacFarlane1-2/+2
2012-01-20PDF: Better error message.John MacFarlane1-2/+1
2012-01-20pandoc: Output to pdf now works.John MacFarlane1-15/+20
2012-01-20PDF: Removed TeXError type, just return a bytestring.John MacFarlane1-0/+1
2012-01-19Added Docx writer.John MacFarlane1-8/+21
* New module `Text.Pandoc.Docx`. * New output format `docx`. * Added reference.docx. * New option `--reference-docx`. The writer includes support for highlighted code blocks and math (which is converted from TeX to OMML using texmath's new OMML module).
2012-01-01New treatment of dashes in --smart mode.John MacFarlane1-0/+10
* `---` is always em-dash, `--` is always en-dash. * pandoc no longer tries to guess when `-` should be en-dash. * A new option, `--old-dashes`, is provided for legacy documents. Rationale: The rules for en-dash are too complex and language-dependent for a guesser to work reliably. This change gives users greater control. The alternative of using unicode isn't very good, since unicode em- and en- dashes are barely distinguishable in a monospace font.
2011-12-29Unescape entities in citation refId.John MacFarlane1-1/+20
Closes #357. The refIds coming from citeproc contain XML numeric entities, and these don't match with the citation keys parsed by pandoc. Solution is to unescape them.
2011-12-29DZSlides: Added dzslides/template.html.John MacFarlane1-8/+16
This is the unaltered file from the dzslides repository. Pandoc now reads it, looking for the core part, and includes this in the new dzslides template via the 'dzslides-core' variable. When dzslides is updated, you can just put the new template.html in your `~/.pandoc/dzslides` directory, and things should work -- provided the core part can be identified as everything from <!-- {{{{ dzslides core to the end of the file. This should make it a bit easier to keep up to date.
2011-12-29Made `--version` informative about versions of dependencies.John MacFarlane1-2/+3
2011-12-29Better formatting for list of highlighting languages.John MacFarlane1-1/+1
2011-12-29Added "beamer" a few places where we test for latex.John MacFarlane1-2/+3
2011-12-29Don't use `--smart` automatically with `man` output.John MacFarlane1-1/+1
Previously pandoc used smart mode automatically when `man` output was selected.
2011-12-29Better formatting of input/output formats in `--help`.John MacFarlane1-7/+7
2011-12-29Made `html5` and `html5+lhs` output formats.John MacFarlane1-1/+4
Deprecated the `--html5`/`-5` flag. Use the output format instead.
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)