summaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/Shared.hs
Commit message (Collapse)AuthorAge
* Support multiple bibliography files with natbib and biblatex output.Nathan Gass2010-12-15
|
* Added 'normalize' to Text.Pandoc.Shared.John MacFarlane2010-12-14
|
* Added support to write natbib or biblatex citations in latex output.Nathan Gass2010-12-13
|
* Fixed inlineListToIdentifier to treat '\160' as ' '.John MacFarlane2010-12-13
|
* Rewrote normalizeSpaces (mostly aesthetic reasons).John MacFarlane2010-12-07
|
* Added 'stringify' to Text.Pandoc.Shared.John MacFarlane2010-11-27
|
* Citation related changes.John MacFarlane2010-11-20
| | | | | | | | | | | * 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.
* Shared: Added findFirstFile, findDataFile, refactored readDataFile.John MacFarlane2010-11-19
|
* Added support for MathJax for displaying math in HTML.John MacFarlane2010-10-26
| | | | | | | | Added --mathjax option. Added MathJax to HTMLMathMethod. Supported MathJax in HTML writer. Resolves Issue #259.
* Added --section-divs option.John MacFarlane2010-07-15
| | | | | | | + 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.
* Added --webtex option for HTML math.John MacFarlane2010-07-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.
* Added a slidy writer.John MacFarlane2010-07-13
| | | | Resolves Issue #122.
* Merge branch 'atlists'. Added auto-numbered example lists.John MacFarlane2010-07-11
|\
| * Implemented @ for sequentially numbered examples.John MacFarlane2010-03-27
| | | | | | | | Also implemented (@label) for example labels and references.
* | Moved headerShift from pandoc.hs to Shared.John MacFarlane2010-07-11
| |
* | Slight code cleanup on substitute function.John MacFarlane2010-07-11
| |
* | Added writerUserDataDir to WriterOptions.John MacFarlane2010-07-08
| |
* | Added writerSourceDirectory to WriterOptions.John MacFarlane2010-07-08
| | | | | | | | | | This allows us to remove an argument from the ODT and EPUB writers.
* | Changed order of functions in Shared.John MacFarlane2010-07-06
| |
* | Don't allow colon in autogenerated HTML identifiers.John MacFarlane2010-07-05
| | | | | | | | They have a special meaning in XML (e.g. in EPUB).
* | Added writerEPUBMetadata field and --epub-metadata option.John MacFarlane2010-07-05
| |
* | Removed writerInclude{Before,After} from WriterOptions.John MacFarlane2010-07-05
| | | | | | | | This is no longer used with the new templating system.
* | Moved Pandoc prettyprinting code from Shared to new Native writer.John MacFarlane2010-07-05
| | | | | | | | | | + Text.Pandoc.Writers.Native + The function prettyPandoc is now gone. Use writeNative instead.
* | Moved parsing functions from Text.Pandoc.Shared to new module.John MacFarlane2010-07-05
| | | | | | | | + Text.Pandoc.Parsing
* | Made KeyTable a map instead of an association list.John MacFarlane2010-05-08
| | | | | | | | | | | | | | | | * This affects the RST and Markdown readers. * The type for stateKeys in ParserState has also changed. * Pandoc, Meta, Inline, and Block have been given Ord instances. * Reference keys now have a type of their own (Key), with its own Ord instance for case-insensitive comparison.
* | Use explicit imports from Data.Generics.John MacFarlane2010-05-07
| | | | | | | | | | | | Otherwise we have a conflict with the 'empty' symbol, introduced in syb >= 0.2. Thanks to ddssff for pointing out the problem. Resolves Issue #237.
* | Use new UTF8 module in Shared, ODT, and the executables.John MacFarlane2010-05-06
| |
* | Shared: Fixed uniqueIdent so it behaves as described in README.John MacFarlane2010-03-28
|/ | | | | | Previously some characters that are illegal in HTML identifiers, such as '<', were being allowed in header identifiers. The logic has now been fixed. Thanks to Xyne for reporting.
* Shared: Export unescapeURI.John MacFarlane2010-03-23
|
* Shared: Rewrote uri and emailAddress to return original text + escaped URI.John MacFarlane2010-03-23
|
* Shared: enamed stringToURI -> escapeURI.John MacFarlane2010-03-23
|
* Better definition of stringToURI.John MacFarlane2010-03-23
| | | | | | Now it escapes all characters that aren't allowed in a URI. %, ?, /, and other characters that are allowed in a URI are left alone. Unicode high characters are UTF-8 encoded.
* Updated copyright notices.John MacFarlane2010-03-23
|
* Fixed treatment of unicode characters in URIs.John MacFarlane2010-03-23
| | | | | | | | | | | | | | * Added stringToURI to Shared. This is used in the HTML writer for all URIs. It properly URI-encodes high characters (> 127), leaving everything else (including symbols and spaces) the same. * Modified unsanitaryURI to allow UTF8 characters in a URI. (First, we convert the URI to URI-encoded octets, then we pass through parseURIReference.) This resolves gitit Issue #99. Previously '[abc](http://gitit.net/测试)' would not be rendered as a link when --sanitize was selected.
* Added --mathml option; removed Text.Pandoc.LaTeXMathML.fiddlosopher2010-03-18
| | | | | | | | | | | * 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
* Shared: Export uniqueIdent, don't allow tilde in identifier.fiddlosopher2010-03-16
| | | | git-svn-id: https://pandoc.googlecode.com/svn/trunk@1894 788f1e2b-df1e-0410-8736-df70ead52e1b
* Made user directory a Maybe in readFile, s5HeaderIncludes, laTeXMathML.fiddlosopher2010-01-18
| | | | | | | This is more uniform, and calling libraries can always disable searching of user directories for overrides. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1821 788f1e2b-df1e-0410-8736-df70ead52e1b
* Added --data-dir option.fiddlosopher2010-01-14
| | | | | | | | | | | | | + This specifies a user data directory. If not specified, will default to ~/.pandoc on unix or Application Data\pandoc on Windows. Files placed in the user data directory will override system default data files. + Added datadir parameter to readDataFile, saveOpenDocumentAsODT, latexMathMLScript, s5HeaderIncludes, and getTemplate. Removed getDefaultTemplate. + Updated documentation. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1809 788f1e2b-df1e-0410-8736-df70ead52e1b
* Changed default of writerXeTeX to False.fiddlosopher2010-01-02
| | | | git-svn-id: https://pandoc.googlecode.com/svn/trunk@1790 788f1e2b-df1e-0410-8736-df70ead52e1b
* Removed redundant imports (found by ghc 6.12).fiddlosopher2009-12-31
| | | | git-svn-id: https://pandoc.googlecode.com/svn/trunk@1750 788f1e2b-df1e-0410-8736-df70ead52e1b
* Use System.IO.UTF8 only if ghc < 6.12.fiddlosopher2009-12-31
| | | | | | | GHC >= 6.12 (base >= 4.2) uses iconv to convert to unicode Strings. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1748 788f1e2b-df1e-0410-8736-df70ead52e1b
* Removed unneeded LANGUAGE pragmas.fiddlosopher2009-12-31
| | | | | | (CPP is enabled globally in the cabal file.) git-svn-id: https://pandoc.googlecode.com/svn/trunk@1747 788f1e2b-df1e-0410-8736-df70ead52e1b
* Added --xetex option to pandoc and markdown2pdf.fiddlosopher2009-12-31
| | | | | | | | | | | If --xetex is specified, pandoc produces latex suitable for processing by xelatex, and markdown2pdf uses xelatex to create the PDF. Resolves Issue #185. This seems better than using latex packages to detect xetex, since not all latex installations will have these. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1737 788f1e2b-df1e-0410-8736-df70ead52e1b
* Restored writerIncludeBefore, writerIncludeAfter.fiddlosopher2009-12-31
| | | | git-svn-id: https://pandoc.googlecode.com/svn/trunk@1700 788f1e2b-df1e-0410-8736-df70ead52e1b
* Changed Meta author and date types to Inline lists instead of Strings.fiddlosopher2009-12-31
| | | | | | | | | | | | Meta [Inline] [[Inline]] [Inline] rather than Meta [Inline] [String] String. This is a breaking change for libraries that use pandoc and manipulate the metadata. Changed .native files in test suite for new Meta format. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1699 788f1e2b-df1e-0410-8736-df70ead52e1b
* Changed readDataFile to look first in user data directory.fiddlosopher2009-12-31
| | | | | | | This way all of the pandoc data files can be overridden by user files. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1693 788f1e2b-df1e-0410-8736-df70ead52e1b
* Removed TH module; refactored LaTeXMathML not to use TH.fiddlosopher2009-12-31
| | | | git-svn-id: https://pandoc.googlecode.com/svn/trunk@1692 788f1e2b-df1e-0410-8736-df70ead52e1b
* Removed unneeded writer options; use template variables instead.fiddlosopher2009-12-31
| | | | | | | | | Removed writerIncludeAfter, writerIncludeBefore, writerTitlePrefix, writerHeader. Removed corresponding fields of Options structure in pandoc.hs. The options now set template variables (writerVariables) instead. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1684 788f1e2b-df1e-0410-8736-df70ead52e1b
* Added writerTemplate and writerVariables to writerOptions.fiddlosopher2009-12-31
| | | | git-svn-id: https://pandoc.googlecode.com/svn/trunk@1678 788f1e2b-df1e-0410-8736-df70ead52e1b
* Added optional section numbering in HTML output.fiddlosopher2009-12-08
| | | | | | | | | | | | This involves a change to the Element data structure, including a section number as well as an id and title for each section. Section numbers are lists of integers; this should allow different numbering schemes to be used in the future. Currently [1,2,3] -> 1.2.3. Resolves Issue #150. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1658 788f1e2b-df1e-0410-8736-df70ead52e1b