summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAge
* Add birdtracks to lhs in HTML when compiled wo -fhighlighting.John MacFarlane2010-06-28
| | | | | | | | Resolves Issue #242. Previously the bird tracks would be stripped off when pandoc was not compiled with highlighting support, even if -t html+lhs was specified. Thanks to Nicholas Wu for pointing out the problem.
* 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.
* UTF8: Modified readFile and getContents to strip BOM if present.John MacFarlane2010-05-06
|
* Use new UTF8 module in Shared, ODT, and the executables.John MacFarlane2010-05-06
|
* Added Text.Pandoc.UTF8 for portable UTF8 string IO.John MacFarlane2010-05-06
|
* Convert command-line arguments to UTF8.John MacFarlane2010-05-04
| | | | Resolves Issue #234.
* Changed rawLaTeXInline to accept '\section', '\begin', etc.John MacFarlane2010-04-26
| | | | | | | | Use new rawLaTeXInline' in LaTeX reader, and export rawLaTeXInline for use in markdown reader. Fixes bug wherein '\section{foo}' was not recognized as raw TeX in markdown document.
* Man writer: convert math to unicode when possible.John MacFarlane2010-04-26
| | | | (As in other writers.)
* Use texmath's parser in TexMath module.John MacFarlane2010-04-25
| | | | | | | | | | | * This replaces a lot of custom parser code, and expands the tex -> unicode conversion. * The behavior has also changed: if the whole formula can't be converted, the whole formula is left in raw TeX. Previously, pandoc converted parts of the formula to unicode and left other parts in raw TeX. * Added (but not yet exported) readTeXMath', which returns a Maybe. * Updated tests
* In parsing smart quotes, leave unicode curly quotes alone.John MacFarlane2010-04-10
| | | | Resolves Issue #143.
* Give LaTeX images a maximum width using the prelude onlyMax Bolingbroke2010-04-10
|
* 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.
* Markdown, RST writers: unescape URI in links, to make them readable.John MacFarlane2010-03-23
| | | | (Since they aren't required to be escaped in these formats.)
* Shared: Export unescapeURI.John MacFarlane2010-03-23
|
* Properly escape URIs in all readers.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
|
* Don't escape URIs in HTML writer.John MacFarlane2010-03-23
| | | | This should be done in the readers instead.
* 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.
* OpenDocument writer: Use a Map for stTextStyleAttr.John MacFarlane2010-03-22
| | | | This avoids duplicates (and invalid xml).
* HTML writer: fixed error in Math writer that caused infinite loop.John MacFarlane2010-03-21
|
* HTML writer: Don't include TOC div if table of contents is empty.fiddlosopher2010-03-20
| | | | git-svn-id: https://pandoc.googlecode.com/svn/trunk@1922 788f1e2b-df1e-0410-8736-df70ead52e1b
* Changed copyright date range for -v.fiddlosopher2010-03-19
| | | | git-svn-id: https://pandoc.googlecode.com/svn/trunk@1914 788f1e2b-df1e-0410-8736-df70ead52e1b
* Depend on extensible-exceptions, remove CPP in Templates module.fiddlosopher2010-03-19
| | | | | | | It's safe to depend on extensible-exceptions, since this is shipped with GHC 6.10 and 6.12. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1911 788f1e2b-df1e-0410-8736-df70ead52e1b
* Templates: Conditionally import Control.Exception.Extensible if base < 4.fiddlosopher2010-03-18
| | | | git-svn-id: https://pandoc.googlecode.com/svn/trunk@1910 788f1e2b-df1e-0410-8736-df70ead52e1b
* 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
* Better heuristics for guessing reader to use.fiddlosopher2010-03-18
| | | | | | | If argument is an absolute URL without a recognized extension, and no reader is explicitly specified, use HTML. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1908 788f1e2b-df1e-0410-8736-df70ead52e1b
* Added plain writer.fiddlosopher2010-03-18
| | | | | | | | Text.Pandoc.Writers.Markdown now exports a writePlain, which writes plain text without links, pictures, or special formatting (not even markdown conventions). git-svn-id: https://pandoc.googlecode.com/svn/trunk@1907 788f1e2b-df1e-0410-8736-df70ead52e1b
* Refactored handler for base-header-level option.fiddlosopher2010-03-18
| | | | | | | | | Now we have a list of "transforms" (Pandoc -> Pandoc). They get applied at the end in a fold. This should make it easier to add new document-transforming options in the future. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1905 788f1e2b-df1e-0410-8736-df70ead52e1b
* MediaWiki writer: make links to relative URLs wikilinks.fiddlosopher2010-03-18
| | | | | | | | | | | | | | | | | | | The new rule: If the link target is an absolute URL, an external link is created. Otherwise, a wikilink is created. Examples: 1. [label](/foo/bar) => [[foo/bar|label]] 2. [label](foo) => [[foo|label]] 3. [label](http://gitit.net/foo) => [http://gitit.net/foo label] Note on 1: We strip the leading / here, since otherwise we get a link to Help:Links/foo/bar. would it be better for 1 to become [http://{SERVERNAME}}/foo/bar label]? Perhaps, since this would guarantee the same link destination as you'd get if you used the HTML writer directly. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1904 788f1e2b-df1e-0410-8736-df70ead52e1b
* Texinfo writer: Handle images in figures.fiddlosopher2010-03-18
| | | | git-svn-id: https://pandoc.googlecode.com/svn/trunk@1901 788f1e2b-df1e-0410-8736-df70ead52e1b
* HTML writer: Use a p rather than a div for image caption.fiddlosopher2010-03-18
| | | | git-svn-id: https://pandoc.googlecode.com/svn/trunk@1900 788f1e2b-df1e-0410-8736-df70ead52e1b
* RST writer: handle images in figures.fiddlosopher2010-03-18
| | | | git-svn-id: https://pandoc.googlecode.com/svn/trunk@1899 788f1e2b-df1e-0410-8736-df70ead52e1b
* MediaWiki writer: Support images in figures.fiddlosopher2010-03-17
| | | | git-svn-id: https://pandoc.googlecode.com/svn/trunk@1898 788f1e2b-df1e-0410-8736-df70ead52e1b
* Docbook writer: support images as figures.fiddlosopher2010-03-17
| | | | git-svn-id: https://pandoc.googlecode.com/svn/trunk@1897 788f1e2b-df1e-0410-8736-df70ead52e1b
* Revert "LaTeX writer: Add unique labels to figures."fiddlosopher2010-03-17
| | | | | | This reverts commit be344321227a33c9a3f3e2031b88045f5159d1ff. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1896 788f1e2b-df1e-0410-8736-df70ead52e1b
* LaTeX writer: Add unique labels to figures.fiddlosopher2010-03-16
| | | | git-svn-id: https://pandoc.googlecode.com/svn/trunk@1895 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
* ConTeXt writer: support images in figures.fiddlosopher2010-03-16
| | | | | | | Also, DON'T put image in figure (as was done previously) when it's an inline image. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1893 788f1e2b-df1e-0410-8736-df70ead52e1b
* LaTeX writer: support figures with captions.fiddlosopher2010-03-16
| | | | git-svn-id: https://pandoc.googlecode.com/svn/trunk@1892 788f1e2b-df1e-0410-8736-df70ead52e1b
* HTML writer: implemented image-with-caption feature.fiddlosopher2010-03-16
| | | | git-svn-id: https://pandoc.googlecode.com/svn/trunk@1891 788f1e2b-df1e-0410-8736-df70ead52e1b
* Added --base-header-level option.fiddlosopher2010-03-14
| | | | | | | Thanks to Jérémy Bobbio for the patch that formed the basis of this commit. Closes Debian #563416. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1889 788f1e2b-df1e-0410-8736-df70ead52e1b
* Markdown(+lhs) reader: handle "inverse bird tracks"fiddlosopher2010-03-14
| | | | | | | | | Inverse bird tracks (<) are used for haskell example code that is not part of the literate Haskell program. Resolves Issue #211. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1888 788f1e2b-df1e-0410-8736-df70ead52e1b
* LaTeX reader: ignore \section, \pdfannot, \pdfstringdef.fiddlosopher2010-03-14
| | | | | | Resolves Issue #202. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1887 788f1e2b-df1e-0410-8736-df70ead52e1b
* LaTeX reader: Ignore alt title in section headers.fiddlosopher2010-03-14
| | | | | | Partially resolves Issue #202. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1886 788f1e2b-df1e-0410-8736-df70ead52e1b
* LaTeX reader: don't treat \section as inline LaTeX.fiddlosopher2010-03-13
| | | | git-svn-id: https://pandoc.googlecode.com/svn/trunk@1885 788f1e2b-df1e-0410-8736-df70ead52e1b
* LaTeX reader: recognize nonbreaking space ~.fiddlosopher2010-03-13
| | | | git-svn-id: https://pandoc.googlecode.com/svn/trunk@1884 788f1e2b-df1e-0410-8736-df70ead52e1b