summaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/Writers
Commit message (Collapse)AuthorAge
* gladTeX HTML - specify ENV for display or inline.John MacFarlane2010-08-01
| | | | | | | | | | | | Thanks to Jonathan Daugherty for the patch. The gladTeX program gives finer control over the LaTeX environment used to render its input. The latest version (1.1) uses the "displaymath" environment by default, which is nice for large, block-level equations, but it isn't so nice for inline math (where "math" is more appropriate). This patch causes the HTML writer to differentiate between the two by explicitly setting the LaTeX environment on the generated EQ tag.
* Moved Text.Pandoc.Writers.S5 -> Text.Pandoc.S5.John MacFarlane2010-07-22
| | | | Now it doesn't export a writer, just some CSS and JS.
* Improved cutUp function, removed extra </div>John MacFarlane2010-07-22
|
* Moved s5 writing from S5 module to HTML.John MacFarlane2010-07-22
| | | | | Now s5 is handled in more or less the same way as slidy, as a variant of HTML.
* Extended --offline to s5.John MacFarlane2010-07-22
| | | | | S5 default is now to include links, rather than a full copy of scripts and stylesheets.
* Slidy writer: Avoid spurious blank page.John MacFarlane2010-07-22
|
* Made spacing at end of output more consistent.John MacFarlane2010-07-20
| | | | | | | | | | | | Previously some of the writers added spurious whitespace. This has been removed, resolving Issue #232. NOTE: If your application combines pandoc's output with other text, for example in a template, you may need to add spacing. For example, a pandoc-generated markdown file will not have a blank line after the final block element. If you are inserting it into another markdown file, you will need to make sure there is a blank line between it and the next block element.
* Slidy writer: create new slide at every level 1 header.John MacFarlane2010-07-18
|
* Use default highlighting CSS rather than embedding CSS in templates.John MacFarlane2010-07-16
|
* 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.
* Improved handling of code in man writer.John MacFarlane2010-07-14
| | | | | | + Inline code is now in monoscpace, not bold. + Code blocks now use .nf (no fill) and .IP (indented paragraph). + Resolves Issue #247.
* Code cleanup, S5 writer.John MacFarlane2010-07-14
|
* Improved Slidy writer.John MacFarlane2010-07-13
| | | | | We now carve up slides at HorizontalRules, rather than by level-1 headers. This gives the user lots of flexibility.
* 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.
* | Cleaned up EPUB writer.John MacFarlane2010-07-09
| |
* | EPUB writer: don't put multiple copies of same image in epub.John MacFarlane2010-07-08
| |
* | Get default stylesheet in EPUB writer, rather than pandoc.hs.John MacFarlane2010-07-08
| |
* | 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.
* | Addendum to the fix to issue #242.John MacFarlane2010-07-07
| | | | | | | | | | | | | | | | The previous fix resulted in bird tracks being included in both html and html+lhs renderings of literate haskell sections when pandoc was compiled without highlighting support. This change make pandoc without highlighting behave like pandoc with highlighting: the bird tracks are used only if html+lhs output is specified.
* | Allow language-neutral table captions.John MacFarlane2010-07-06
| | | | | | | | | | | | + Captions may now begin simply with ':', instead of 'Table:' + Captions may now appear either above or below the table. + Resolves Issue #227.
* | Made -Wall clean.John MacFarlane2010-07-05
| |
* | Removed links (internal and external).John MacFarlane2010-07-05
| |
* | Process user-supplied EPUB metadata.John MacFarlane2010-07-05
| | | | | | | | | | | | Read a sequence of elements from the file. Ignore anything that's not valid Dublin Core. If title, language, uuid not supplied, supply them.
* | 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
* | Added an EPUB writer.John MacFarlane2010-07-05
| | | | | | | | | | | | | | | | + New writer module Text.Pandoc.Writers.EPUB + Stylesheet in epub.css + --epub-stylesheet command-line option. + New utility module Text.Pandoc.UUID to generate random UUIDs for EPUBs.
* | Made a proper ODT writer.John MacFarlane2010-07-05
| | | | | | | | | | | | | | | | | | | | | | | | | | | | + Transformed the old Text.Pandoc.ODT module into a proper writer module, Text.Pandoc.Writers.ODT. + Instead of saveOpenDocumentAsODT, we now have writeODT, which takes a Pandoc document and produces a bytestring. saveOpenDocumentAsODT has been removed. + To extract the images and insert them into the ODT, we now use processPandocM on the Pandoc document rather than a custom XML parser. + Handle the case where the image is remote (or not found) by converting the Image element into an Emph with the label. + Plumbing in pandoc.hs changed slightly to accomodate this, and to allow other writers that live in the IO monad.
* | Use unicode for smart punctuation in plain, markdown, rst formats.John MacFarlane2010-06-30
| |
* | 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.
* | Man writer: convert math to unicode when possible.John MacFarlane2010-04-26
| | | | | | | | (As in other writers.)
* | Give LaTeX images a maximum width using the prelude onlyMax Bolingbroke2010-04-10
|/
* 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.)
* Don't escape URIs in HTML writer.John MacFarlane2010-03-23
| | | | This should be done in the readers instead.
* 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
* 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