summaryrefslogtreecommitdiff log msg author committer range
path: root/src/pandoc.hs
Commit message (Collapse)AuthorAge
* Moved bibliography processing into readers.John MacFarlane2012-10-13
| | | | | | | | | | Previously this was done in src/pandoc.hs, which made it difficult for library users. * Removed readerCitations in ReaderOptions. * Added readerReferences and readerCitationStyle to ReaderOptions. * Moved use of processBiblio from main program to the markdown and LaTeX readers.
* Biblio: Changed type of processBiblio.John MacFarlane2012-10-06
| | | | | | | | | * It is no longer in the IO monad. * setHash uses state rather than Data.Unique. * It takes a Style argument rather than parameters for CSL and abbrev filenames. * pandoc.hs now calls the functions to parse the style file and add abbrevs.
* Adjusted pandoc.hs for changes in Biblio module.John MacFarlane2012-09-29
|
* Removed need for utf8-string package.John MacFarlane2012-09-25
| | | | | | | | * Depend on text. * Expose Text.Pandoc.UTF8. * Text.Pandoc.UTF8 now exports toString, fromString, toStringLazy, fromStringLazy. * These are used instead of the old utf8-string functions.
* Revert "More intelligent handling of text encodings."John MacFarlane2012-09-23
| | | | This reverts commit 7272735b3d413a644fd9ab01eeae8ae9cd5a925b.
* More intelligent handling of text encodings.John MacFarlane2012-09-23
| | | | | | | | | | Previously, UTF-8 was enforced for both input and output. The new system: * For input, UTF-8 is tried first; if an error is raised, the locale encoding is tried. * For output, the locale encoding is always used.
* Added 'UTF8.' to decodeArg.John MacFarlane2012-09-23
|
* Revert "Use local encoding for input/output rather than forcing UTF8."John MacFarlane2012-09-23
| | | | This reverts commit c69837adb648a479167be5e2d37279a02be8060c.
* Use local encoding for input/output rather than forcing UTF8.John MacFarlane2012-09-23
| | | | | | | Note that system templates are stored as UTF8 and will still be read as such, even if the local encoding is different. Text downloaded from URLs will also be treated as UTF-8.
* Export encodePath/decodePath from UTF8.John MacFarlane2012-09-23
| | | | Removed duplicate code in src/pandoc.hs.
* Changed mathjax cdn url so it doesn't use https.John MacFarlane2012-09-12
| | | | | | (This caused problems when used with --self-contained.) See #609.
* Changed strict to markdown_strict.John MacFarlane2012-08-09
|
* Removed --strict, added extensions to writer/reader names.John MacFarlane2012-08-09
| | | | | | | | | | | | * 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.
* Removed --enable, --disable options.John MacFarlane2012-08-09
|
|
* Changes to literate haskell options.John MacFarlane2012-08-08
| | | | | | | | | | | - 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.
* Support hard_line_breaks markdown extension.John MacFarlane2012-08-06
| | | | | | | | * Added Ext_hard_line_breaks. * Added section in README on non-pandoc extensions. * Exported pandocExtensions and strictExtensions in Text.Pandoc.Options. Closes #514.
* Added --disable and --enable options for markdown extensions.John MacFarlane2012-07-27
|
* Replaced writerStrict with writerExtensions in WriterOptions.John MacFarlane2012-07-27
| | | | | Still have not implemented individual tests for all the extensions in the markdown writer.
* Moved WriterOptions and associated types Shared -> Options.John MacFarlane2012-07-26
|
|
|
* Restored stateStandalone as readerStandalone.John MacFarlane2012-07-25
| | | | It is indeed needed by the RST reader.
* Moved stateApplyMacros, stateIndentedCodeClasses to ReaderOptions.John MacFarlane2012-07-25
|
|
|
* Got rid of stateStandalone, which was hardly used anyway.John MacFarlane2012-07-25
| | | | | | The only possible effect will be with rst fragments that begin with an rst title block, which will now cause the header transform.
|
|
|
* Moved ParseRaw from ParserState to ReaderOptions.John MacFarlane2012-07-25
|
| | | | Better to keep reader and writer options separate.
* Put smart, strict in separate options field in state.John MacFarlane2012-07-25
| | | | | | | | | 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.
* Use catch from Control.Exception to avoid warnings.John MacFarlane2012-07-24
|
* Text.Pandoc: writers now an assoc list of String, Writer.John MacFarlane2012-07-24
| | | | | | | 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.
* Removed unneeded import.John MacFarlane2012-07-24
|
* Changed signatures of writeODT, writeDocx, writeEPUB.John MacFarlane2012-07-24
| | | | | | | | | 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!
* Set writerTableOfContents for s5 in Text.Pandoc, not pandoc.hs.John MacFarlane2012-07-23
|
* Set writerSlideVariant in Text.Pandoc rather than pandoc.hs.John MacFarlane2012-07-23
|
* Added a new FictionBook2 (FB2) writer.Sergey Astanin2012-07-22
|
* Make --ascii work properly with --self-contained.John MacFarlane2012-07-19
| | | | Closes #568.
* -V option: Add variables to beginning of list, not end.John MacFarlane2012-07-03
| | | | | | | | | | | 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.
* Test for base 4.4.0 instead of 4.5.0 for argument/filename encoding.John MacFarlane2012-06-25
|
* Don't encode/decode file paths if base >= 4.5.John MacFarlane2012-06-24
| | | | | | | | | | | 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.
* Add support for Slideous output.Jonas Smedegaard2012-05-24
|
* Added 'zenburn' highlight style from highlighting-kate.John MacFarlane2012-05-17
| | | | Depend on h-k 0.5.0.6.
* Added writerTeXLigatures to WriterOptions, --no-tex-ligatures option.John MacFarlane2012-05-11
| | | | | This is useful for those who want to use advanced OpenType features with xelatex/lualatex.
* Input files with .db extension treated as docbook by default.John MacFarlane2012-04-14
|
* Changed -V so that you can specify a key without a value.John MacFarlane2012-03-09
| | | | Such keys get the value true.