summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAge
* Require two spaces after capital letter + period for list item.fiddlosopher2010-02-03
| | | | | | | | | | | | Otherwise "E. coli" starts a list. This might change the semantics of some existing documents, since previously the two-space requirement was only enforced when the second word started with a capital letter. But it is consistent with the existing documentation and follows the principle of least surprise. Resolves Issue #212. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1829 788f1e2b-df1e-0410-8736-df70ead52e1b
* Allow absolute URI as parameter (in this case, content is downloaded).fiddlosopher2010-02-02
| | | | | | | | | + Adds dependency on HTTP. + If a parameter is an absolute URI, pandoc will try to get the content via HTTP. + So, you can do: pandoc -r html -w markdown http://www.fsf.org git-svn-id: https://pandoc.googlecode.com/svn/trunk@1826 788f1e2b-df1e-0410-8736-df70ead52e1b
* Made HTML reader much more forgiving.fiddlosopher2010-02-02
| | | | | | | | | | | | | | | + Incorporated idea (from HXT) that an element can be closed by an open tag for another element. + Javascript is partially parsed to make sure that a <script> section is not closed by a </script> in a comment or string. + More lenient non-quoted attribute values. Now we accept anything but a space character, quote, or <>. This helps in parsing e.g. www.google.com! + Bare & signs are now parsed as a string. This is a common HTML mistake. + Skip a bare < in malformed HTML. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1825 788f1e2b-df1e-0410-8736-df70ead52e1b
* LaTeX writer: set numbersections template variable.fiddlosopher2010-01-31
| | | | git-svn-id: https://pandoc.googlecode.com/svn/trunk@1824 788f1e2b-df1e-0410-8736-df70ead52e1b
* Made userdir arg of saveDocumentAsODT a Maybe.fiddlosopher2010-01-18
| | | | | | | This way it's consistent with other data file retrieval functions. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1823 788f1e2b-df1e-0410-8736-df70ead52e1b
* Removed unneeded import.fiddlosopher2010-01-18
| | | | git-svn-id: https://pandoc.googlecode.com/svn/trunk@1822 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
* Rename getTemplate -> getDefaultTemplate.fiddlosopher2010-01-18
| | | | | | | (One reason is that getTemplate conflicts with a function in yst.) git-svn-id: https://pandoc.googlecode.com/svn/trunk@1820 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
* Added getTemplate to Text.Pandoc.Templates.fiddlosopher2010-01-11
| | | | | | | This allows the caller to select whether to allow user overrides from the user data directory (~/.pandoc). git-svn-id: https://pandoc.googlecode.com/svn/trunk@1803 788f1e2b-df1e-0410-8736-df70ead52e1b
* HTML writer: don't include empty UL if --toc but no sections.fiddlosopher2010-01-09
| | | | | | Resolves Issue #199. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1799 788f1e2b-df1e-0410-8736-df70ead52e1b
* markdown2pdf: always do at least two runs.fiddlosopher2010-01-05
| | | | | | Reason: hyperref bookmarks require this. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1797 788f1e2b-df1e-0410-8736-df70ead52e1b
* LaTeX writer: Removed stLink, link template variable.fiddlosopher2010-01-05
| | | | | | Reason: we now always include hyperref in the template. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1796 788f1e2b-df1e-0410-8736-df70ead52e1b
* Updated haddocks for changes in Meta type.fiddlosopher2010-01-04
| | | | git-svn-id: https://pandoc.googlecode.com/svn/trunk@1794 788f1e2b-df1e-0410-8736-df70ead52e1b
* LaTeX writer: if book, report, or memoir documentclass, use \chapter{}fiddlosopher2010-01-03
| | | | | | for first-level headers. Otherwise use \section{}. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1793 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
* markdown2pdf.hs: throw error if pandoc --dump-args does.fiddlosopher2010-01-02
| | | | git-svn-id: https://pandoc.googlecode.com/svn/trunk@1781 788f1e2b-df1e-0410-8736-df70ead52e1b
* markdown2pdf.hs: When --toc, run latex an extra time.fiddlosopher2010-01-02
| | | | | | Previously --toc was broken. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1780 788f1e2b-df1e-0410-8736-df70ead52e1b
* pandoc.hs: warn of deprecated options after --dump-args has exited.fiddlosopher2010-01-02
| | | | | | | Otherwise we mess up the wrappers that look at the output of --dump-args. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1779 788f1e2b-df1e-0410-8736-df70ead52e1b
* XML: don't escape \160 (nonbreaking space) as an entity.fiddlosopher2010-01-01
| | | | git-svn-id: https://pandoc.googlecode.com/svn/trunk@1770 788f1e2b-df1e-0410-8736-df70ead52e1b
* Docbook writer: use unicode instead of entities.fiddlosopher2010-01-01
| | | | git-svn-id: https://pandoc.googlecode.com/svn/trunk@1769 788f1e2b-df1e-0410-8736-df70ead52e1b
* HTML writer: Use functions from XML module to escape strings.fiddlosopher2010-01-01
| | | | git-svn-id: https://pandoc.googlecode.com/svn/trunk@1768 788f1e2b-df1e-0410-8736-df70ead52e1b
* Finished converting HTML writer to use unicode instead of entities.fiddlosopher2010-01-01
| | | | git-svn-id: https://pandoc.googlecode.com/svn/trunk@1767 788f1e2b-df1e-0410-8736-df70ead52e1b
* Modified S5 writer to look for s5 files in s5 directory.fiddlosopher2010-01-01
| | | | git-svn-id: https://pandoc.googlecode.com/svn/trunk@1764 788f1e2b-df1e-0410-8736-df70ead52e1b
* Added --reference-odt option.fiddlosopher2009-12-31
| | | | | | | | | | | This allows the user to customized the styles used in pandoc-generated ODTs. The user may also put a default reference.odt in the ~/.pandoc directory. We have removed the old data/odt directory and replaced it with a reference.odt. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1760 788f1e2b-df1e-0410-8736-df70ead52e1b
* LaTeX writer: Only require listings package if needed.fiddlosopher2009-12-31
| | | | | | That is, if literate Haskell code is used. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1759 788f1e2b-df1e-0410-8736-df70ead52e1b
* Added needed imports from System.IO when we're using ghc >= 6.12.fiddlosopher2009-12-31
| | | | git-svn-id: https://pandoc.googlecode.com/svn/trunk@1754 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
* Use UTF8 instead of entities in HTML.fiddlosopher2009-12-31
| | | | | | Resolves Issue #163. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1744 788f1e2b-df1e-0410-8736-df70ead52e1b
* HTML footnotes: put anchor inside sup, instead of other way.fiddlosopher2009-12-31
| | | | | | Resolves Issue #191. Thanks to infinity0x for suggesting. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1743 788f1e2b-df1e-0410-8736-df70ead52e1b
* markdown2pdf.hs: interpret ! in a log as an error line.fiddlosopher2009-12-31
| | | | git-svn-id: https://pandoc.googlecode.com/svn/trunk@1739 788f1e2b-df1e-0410-8736-df70ead52e1b
* Modified latex template to include bare minimum of packages.fiddlosopher2009-12-31
| | | | | | | | | | | | Packages will be included only if they are needed, given what is in the document. So if you never use strikeout, you don't need to install the ulem package. Also moved amsmath to the top of the package list, made \maketitle conditional on a title being present, and adjusted spacing. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1738 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
* Modified mediawiki writer to use new templates.fiddlosopher2009-12-31
| | | | git-svn-id: https://pandoc.googlecode.com/svn/trunk@1736 788f1e2b-df1e-0410-8736-df70ead52e1b
* Updated texinfo writer to use new templates.fiddlosopher2009-12-31
| | | | git-svn-id: https://pandoc.googlecode.com/svn/trunk@1735 788f1e2b-df1e-0410-8736-df70ead52e1b
* Modified RTF writer to use new templates.fiddlosopher2009-12-31
| | | | | | | Also changed treatment of multiple authors: they now occupy multiple paragraphs rather than using a line break. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1734 788f1e2b-df1e-0410-8736-df70ead52e1b
* Revised man writer to use new templates.fiddlosopher2009-12-31
| | | | | | | | Note that now the "--after-body" will come after the "AUTHORS" section, whereas before it would come before it. This is a slight break from backwards compatibility. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1733 788f1e2b-df1e-0410-8736-df70ead52e1b
* Opendocument writer: support new templates.fiddlosopher2009-12-31
| | | | | | Also, don't generate unneeded style declarations. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1731 788f1e2b-df1e-0410-8736-df70ead52e1b
* Don't wrap text in OpenDocument writer.fiddlosopher2009-12-31
| | | | | | | The tags are so long that it's pointless. Use <> instead of $$ to prevent huge indents. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1730 788f1e2b-df1e-0410-8736-df70ead52e1b
* Context and latex writers - parse title, author, date before body.fiddlosopher2009-12-31
| | | | git-svn-id: https://pandoc.googlecode.com/svn/trunk@1729 788f1e2b-df1e-0410-8736-df70ead52e1b
* Updated docbook writer to use new templates.fiddlosopher2009-12-31
| | | | git-svn-id: https://pandoc.googlecode.com/svn/trunk@1728 788f1e2b-df1e-0410-8736-df70ead52e1b
* LaTeX reader: use \\ to separate multiple authors.fiddlosopher2009-12-31
| | | | git-svn-id: https://pandoc.googlecode.com/svn/trunk@1727 788f1e2b-df1e-0410-8736-df70ead52e1b
* Markdown reader: use ; as separator between authors.fiddlosopher2009-12-31
| | | | | | | This allows you to use ',' within author names: e.g. "John Jones, Jr." git-svn-id: https://pandoc.googlecode.com/svn/trunk@1726 788f1e2b-df1e-0410-8736-df70ead52e1b
* Improved RST writer.fiddlosopher2009-12-31
| | | | | | Updated test suite. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1725 788f1e2b-df1e-0410-8736-df70ead52e1b
* Fixed bug with $else$ in templates module.fiddlosopher2009-12-31
| | | | | | | We need to be sure we parse the else block even if the if condition is satisfied. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1724 788f1e2b-df1e-0410-8736-df70ead52e1b
* Use $for$ for multiple authors in context, latex, markdown.fiddlosopher2009-12-31
| | | | git-svn-id: https://pandoc.googlecode.com/svn/trunk@1723 788f1e2b-df1e-0410-8736-df70ead52e1b
* Use $for$ for header-includes.fiddlosopher2009-12-31
| | | | | | | | Put variables in right order. We've specified that if they use -A, -B, -H multiple times, the text appears in the same order as on the command line. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1722 788f1e2b-df1e-0410-8736-df70ead52e1b
* Use $for$ for --css option in HTML writer.fiddlosopher2009-12-31
| | | | git-svn-id: https://pandoc.googlecode.com/svn/trunk@1721 788f1e2b-df1e-0410-8736-df70ead52e1b