aboutsummaryrefslogtreecommitdiff
path: root/src/pandoc.hs
AgeCommit message (Collapse)AuthorFilesLines
2012-09-12Added basic mediawiki reader.John MacFarlane1-0/+1
Text.Pandoc.Readers.MediaWiki module, tests/mediawiki-reader.{txt,native}.
2012-09-12Changed mathjax cdn url so it doesn't use https.John MacFarlane1-1/+1
(This caused problems when used with --self-contained.) See #609.
2012-08-09Changed strict to markdown_strict.John MacFarlane1-2/+2
2012-08-09Removed `--strict`, added extensions to writer/reader names.John MacFarlane1-41/+32
* The `--strict` option has been removed. * Instead of using `--strict`, one can now use `strict` instead of `markdown` as an input or output format name. * The `--enable` and `--disable` optinos have been removed. * It is now possible to enable or disable specific extensions by appending them (with '+' or '-') to the writer or reader name. For example `pandoc -f markdown-footnotes+hard_line_breaks`. * The lhs extensions are now implemented this way, too; you can use either `+lhs` or `+literate_haskell`.
2012-08-09Removed --enable, --disable options.John MacFarlane1-28/+2
2012-08-09Use safeRead instead of using reads directly (various modules).John MacFarlane1-16/+16
2012-08-08Changes to literate haskell options.John MacFarlane1-4/+0
- Removed writerLiterateHaskell from WriterOptions. - Removed readerLiterateHaskell from ReaderOptions. - Added Ext_literate_haskell to Extensions. Test for this instead of the above. - Removed failUnlessLHS from Shared. Note: At this point, +lhs and .lhs extension no longer has any effect. Need to fix.
2012-08-06Support hard_line_breaks markdown extension.John MacFarlane1-2/+2
* Added Ext_hard_line_breaks. * Added section in README on non-pandoc extensions. * Exported pandocExtensions and strictExtensions in Text.Pandoc.Options. Closes #514.
2012-07-27Added --disable and --enable options for markdown extensions.John MacFarlane1-8/+37
2012-07-27Replaced writerStrict with writerExtensions in WriterOptions.John MacFarlane1-1/+4
Still have not implemented individual tests for all the extensions in the markdown writer.
2012-07-26Moved WriterOptions and associated types Shared -> Options.John MacFarlane1-1/+1
2012-07-26pandoc: Set readerExtensions instead of readerStrict.John MacFarlane1-1/+5
2012-07-25Changed reader parameters from ParserState to ReaderOptions.John MacFarlane1-18/+16
2012-07-25Restored stateStandalone as readerStandalone.John MacFarlane1-0/+1
It is indeed needed by the RST reader.
2012-07-25Moved stateApplyMacros, stateIndentedCodeClasses to ReaderOptions.John MacFarlane1-3/+3
2012-07-25stateCitations -> readerCitations.John MacFarlane1-2/+2
2012-07-25Moved stateLiterateHaskell to readerLiterateHaskell in Options.John MacFarlane1-3/+4
2012-07-25Got rid of stateStandalone, which was hardly used anyway.John MacFarlane1-1/+0
The only possible effect will be with rst fragments that begin with an rst title block, which will now cause the header transform.
2012-07-25Moved stateOldDashes to readerOldDashes in ReaderOptions.John MacFarlane1-1/+1
2012-07-25Moved stateTabStop to readerTabStop in ReaderOptions.John MacFarlane1-2/+2
2012-07-25Moved stateColumns to readerColumns in ReaderOptions.John MacFarlane1-1/+1
2012-07-25Moved ParseRaw from ParserState to ReaderOptions.John MacFarlane1-6/+7
2012-07-25Options -> ReaderOptions.John MacFarlane1-2/+2
Better to keep reader and writer options separate.
2012-07-25Put smart, strict in separate options field in state.John MacFarlane1-3/+4
This is the beginning of a larger transition that will make Options, not ParserState, the parameter of the read functions. (Options will also be used in writers, in place of WriterOptions.) Next step is to remove strict, replacing it with granular tests for different extensions.
2012-07-24Use catch from Control.Exception to avoid warnings.John MacFarlane1-7/+12
2012-07-24Text.Pandoc: writers now an assoc list of String, Writer.John MacFarlane1-26/+16
A Writer can be a PureStringWriter, an IOStringWriter, or an IOByteStringWriter. ALL writers are now in the 'writers' list, including the binary writers and fb2 writer. Code simplified at end of pandoc.hs.
2012-07-24Removed unneeded import.John MacFarlane1-1/+0
2012-07-24Changed signatures of writeODT, writeDocx, writeEPUB.John MacFarlane1-4/+8
These now take WriterOptions and Pandoc only. The extra parameters for epub stylesheet, epub fonts, reference Docx, and reference ODT have been removed, since these things are now in WriterOptions. Note: breaking API change!
2012-07-23Set writerTableOfContents for s5 in Text.Pandoc, not pandoc.hs.John MacFarlane1-2/+1
2012-07-23Set writerSlideVariant in Text.Pandoc rather than pandoc.hs.John MacFarlane1-49/+38
2012-07-22Added a new FictionBook2 (FB2) writer.Sergey Astanin1-7/+17
2012-07-19Make `--ascii` work properly with `--self-contained`.John MacFarlane1-1/+1
Closes #568.
2012-07-03`-V` option: Add variables to beginning of list, not end.John MacFarlane1-2/+1
This means that duplicate variables specified later on the command line take precedence. It also allows the default `-slidy-url` to be overridden even when `--self-contained` is used (provided the `-V` comes after `--self-contained`. Previously this could not be done. Note that when `--self-contained` is used, the `slidy-url` variable is set to `slidy` so that local copies are used.
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