summaryrefslogtreecommitdiff
path: root/src/Text
Commit message (Collapse)AuthorAge
...
* | 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
* 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
* 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
* 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
* 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
* Use template variables for include-before/after.fiddlosopher2010-03-13
| | | | | | | | | | | | * These options now imply -s; previously they worked also in fragment mode. * Users can now adjust position of include-before and include-after text in the templates. * Default position of include-before moved back (as it originally was) before table of contents. * Resolves Issue #217. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1883 788f1e2b-df1e-0410-8736-df70ead52e1b
* OpenDocument writer: handle tables with no headers.fiddlosopher2010-03-13
| | | | git-svn-id: https://pandoc.googlecode.com/svn/trunk@1882 788f1e2b-df1e-0410-8736-df70ead52e1b
* Man writer: properly handle headerless tables.fiddlosopher2010-03-13
| | | | git-svn-id: https://pandoc.googlecode.com/svn/trunk@1881 788f1e2b-df1e-0410-8736-df70ead52e1b
* Texinfo writer: fixed headerless tables.fiddlosopher2010-03-13
| | | | git-svn-id: https://pandoc.googlecode.com/svn/trunk@1880 788f1e2b-df1e-0410-8736-df70ead52e1b
* RST writer: Fixed headerless tables.fiddlosopher2010-03-11
| | | | git-svn-id: https://pandoc.googlecode.com/svn/trunk@1879 788f1e2b-df1e-0410-8736-df70ead52e1b
* MediaWiki writer: fixed headerless tables.fiddlosopher2010-03-11
| | | | git-svn-id: https://pandoc.googlecode.com/svn/trunk@1878 788f1e2b-df1e-0410-8736-df70ead52e1b
* RTF writer: fixed headerless tables.fiddlosopher2010-03-11
| | | | git-svn-id: https://pandoc.googlecode.com/svn/trunk@1877 788f1e2b-df1e-0410-8736-df70ead52e1b
* Markdown writer: proper support for headerless tables.fiddlosopher2010-03-10
| | | | git-svn-id: https://pandoc.googlecode.com/svn/trunk@1876 788f1e2b-df1e-0410-8736-df70ead52e1b
* HTML writer: Use tbody, thead, and cols in tables.fiddlosopher2010-03-10
| | | | git-svn-id: https://pandoc.googlecode.com/svn/trunk@1875 788f1e2b-df1e-0410-8736-df70ead52e1b
* Docbook writer: handle headerless tables.fiddlosopher2010-03-09
| | | | | | In addition, use cols, thead, and tbody. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1874 788f1e2b-df1e-0410-8736-df70ead52e1b
* Markdown writer: Fixed citations.fiddlosopher2010-03-07
| | | | | | | | | | | Previously the markdown writer printed raw citation codes, e.g. [geach1970], rather than the expanded citations provided by citeproc, e.g. (Geach 1970). Now it prints the expanded citations. This means that the document produced can be processed as a markdown document without citeproc. Thanks to dsanson for reporting, and arossato for the patch. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1871 788f1e2b-df1e-0410-8736-df70ead52e1b
* ConTeXt writer: Don't use header in headerless table.fiddlosopher2010-03-07
| | | | git-svn-id: https://pandoc.googlecode.com/svn/trunk@1868 788f1e2b-df1e-0410-8736-df70ead52e1b