aboutsummaryrefslogtreecommitdiff
path: root/src/Text
AgeCommit message (Collapse)Author
2011-08-03Added MoinMoin reader.moinmoin2John MacFarlane
This is mostly due to Simon Michael, with changes from ranft and jgm.
2011-07-30Added PRAGMA needed for ghc 6.12.1.8.2John MacFarlane
2011-07-30Removed applicative stuff in Markdown reader.John MacFarlane
It requires parsec 3, and currently pandoc can build with parsec 2.
2011-07-30Markdown reader: Improved emph/strong parsing.John MacFarlane
Ported code from pandoc2. Now all tests pass.
2011-07-30Added nonspaceChar to Text.Pandoc.Parsing.John MacFarlane
2011-07-28Fix template problem for epub.John MacFarlane
2011-07-28Added s5-url and slidy-url variables, instead of hard-coding.John MacFarlane
If you want to put your slidy files in the slidy subdirectory, for example, you can do pandoc -t slidy -V slidy-url=slidy -s
2011-07-25Smart quotes: handle '...hi' properly.John MacFarlane
Also added test case.
2011-07-24Docbook writer: Use programlisting for code blocks.John MacFarlane
Instead of screen, as before.
2011-07-24Docbook writer: Use CALS tables (instead of XHTML tables).John MacFarlane
Reason: Some older docbook software does not work with XHTML tables. Closes #77.
2011-07-24HTML writer: Removed English title on footnote back links.John MacFarlane
This is incongruous in non-English documents.
2011-07-24Use data: protocol to embed s5 css in <link> tags.John MacFarlane
Using inline css didn't work properly with Chrome and Safari.
2011-07-24Reordered offline slidy includes.John MacFarlane
2011-07-24Use yuicompressor-packed js for s5.John MacFarlane
Removed s5/default/slides.js.comment, s5/default/slides.js.packed. Added s5/default/slides.min.js.
2011-07-24Insert CDATA around inline js/css in HTML, slidy.John MacFarlane
2011-07-24Enclose s5 scripts and css in CDATA tags.John MacFarlane
2011-07-23RST reader: Partial support for labeled footnotes.John MacFarlane
Also made simpleReferenceName parser more accurate, which affects several other parsers.
2011-07-23Use \enquote{..} for latex quotes if template uses csquotes package.John MacFarlane
This provides better support for foreign language quoting. Thanks to Andreas Wagner for the idea.
2011-07-23Properly handle characters in the 128..159 range.John MacFarlane
These aren't valid in HTML, but many HTML files produced by Windows tools contain them. We substitute correct unicode characters.
2011-07-23HTML writer/templates: Made TOC more customizable.John MacFarlane
The container for the TOC is now in the template, so users can insert a header or other styling. Thanks to Bruce D'Arcus for the suggestion.
2011-07-23LaTeX writer: don't set stVerbInNote unnecessarily.John MacFarlane
2011-07-22Changed default template naming scheme.John MacFarlane
Instead of latex.template, we now have default.latex. An appropriate extension is added automatically if the value of `--template` has no extension. So, `pandoc --template=special -t latex` looks for `special.latex`, while `pandoc --template=special -t man` looks for `special.man`.
2011-07-22Deprecated `--xetex` option - it is no longer needed.John MacFarlane
Deprecated `writerXeTeX` and the `--xetex` option. The latex writer now produces a file that can be processed by latex, pdflatex, lualatex, or xelatex, so this option isn't needed. The option is still neded in markdown2pdf, however, which has been modified to take some options that aren't in pandoc.
2011-07-22LaTeX writer: Use \texttt and escapes instead of \verb!..!.John MacFarlane
\verb is simply too fragile; it doesn't work inside command arguments.
2011-07-21LaTeX reader: Handle \subtitle command.John MacFarlane
If there's a subtitle, it is added to the title, separated by a colon and linebreak. Closes #280.
2011-07-21LaTeX reader & writer: Use \and to separate authors.John MacFarlane
Closes #279.
2011-07-19ConTeXt writer: Made \start/stoptyping flush with margin.John MacFarlane
This prevents extra blank lines.
2011-07-19LaTeX writer: make verbatim environments flush to avoid extra space.John MacFarlane
The indented `\end{verbatim}` was causing an extra blank line in the output. Closes #277.
2011-07-19Added unexported Text.Pandoc.MIME.John MacFarlane
Moved getMimeType from Text.Pandoc.Shared to Text.Pandoc.MIME, so we won't have an API change.
2011-07-17ODT writer: Construct META-INF/manifest.xml based on archive contents.John MacFarlane
This fixes a bug in ODTs containing images. LibreOffice would signal that these ODTs were corrupt, because the manifest.xml did not contain a reference to the image files.
2011-07-17Added getMimeType to Text.Pandoc.Shared.John MacFarlane
2011-07-16Un-URI-escape image filenames in LaTeX, ConTeXt, RTF, Texinfo.John MacFarlane
Also do this when copying image files into EPUBs and ODTs. Closes #263.
2011-07-16HTML writer: Use embed tag for images with non-image extensions.John MacFarlane
(e.g. PDFs). Closes #264.
2011-07-16HTML reader: treat Plain as Para when needed.John MacFarlane
For example, in Just a few glitches remaining. <ul><li> In this situation, one loses the list. </ul> And in this, the preformatting. <pre>Preformatted text not starting with its own blank line. </pre> Thansk to Dirk Laurie for noticing the issue.
2011-07-15HTML reader: Handle tbody, thead in simple tables.John MacFarlane
Closes #274.
2011-07-11Merge pull request #273 from qerub/masterJohn MacFarlane
Textile reader: Make it possible to have colons after links.
2011-07-10LaTeX reader: Gobble option & space after linebreak \\[10pt].John MacFarlane
2011-07-10Make HTML reader more forgiving of bad HTML.John MacFarlane
* Skip spaces after <b>, <emph>, etc. * Convert Plain elements into Para when they're in a list item with Para, Pre, BlockQuote, CodeBlock. An example of HTML that pandoc handles better now: ~~~~ <h4> Testing html to markdown </h4> <ul> <li> <b> An item in a list </b> <p> An introductory sentence. <pre> Some preformatted text at this stage comes next. But alas! much havoc is wrought by Pandoc. </pre> </ul> ~~~~ Thanks to Dirk Laurie for reporting the issues.
2011-07-10Improved LaTeX tables.John MacFarlane
* Use ctable package, which allows footnotes and provides additional options. * Made cell alignments work in multiline tables. * Closes #272.
2011-07-10LaTeX tables: more space btw lines, top-align cells.John MacFarlane
Closes #271.
2011-07-10Textile reader: Make it possible to have colons after links.Christoffer Sawicki
2011-07-06Fixed bug in slidy writer: unclosed div tag.John MacFarlane
2011-07-04EPUB writer: Add a meta element specify the cover.Kelsey Hightower
Some EPUB e-readers, such as the Nook, require a meta element inside the OPF metadata block to ensure the cover image is properly displayed. When generating an EPUB using the `--epub-cover-image` option, this patch adds the following meta element to the OPF metadata block in `content.opf`: <meta name="cover" content="cover-image" />
2011-06-22Support \dots and well as \ldots in LaTeX reader.John MacFarlane
2011-06-06Markdown writer: Insert HTML comment btw list and indented code block.John MacFarlane
This prevents the code block from being interpreted as part of the list.
2011-05-24LaTeX writer: use deVerb on table and picture captions.John MacFarlane
Otherwise LaTeX complains about \verb inside command argument. Thanks to bbanier for reporting the bug.
2011-05-22Forbid ()s in citation item keys.John MacFarlane
Resolves Issue #304: problems with (@item1; @item2) because the final paren was being parsed as part of the item key.
2011-04-29Revert "Parsing: Use new type aliases, PandocParser, GeneralParser."John MacFarlane
This reverts commit ec5410bc4e9d228b7dc0123061d80f9addf825bf.
2011-04-29Parsing: Use new type aliases, PandocParser, GeneralParser.John MacFarlane
This should make it easier to change the types later.
2011-04-29Allow non-plain math methods in epub.John MacFarlane