* Here we go back to splitting the document at the Pandoc AST
level, and converting each chapter to HTML separately.
* Fixes bug in footnote processing introduced by
commit 01d109e2ef. The bug caused
all footnotes to appear in the last chapter, so that footnote
links from other chapters would not work. Closes#651.
* We also disable writerTableOfContents, since TOC is automatic
for epub.
We were using [fragile] on slides even if they only contained
code that was rendered using `\texttt`. Now `[fragile]` is
only used for slides containing inline code if that code
is rendered using listings. Closes#649.
* MathML math method now used always in EPUB3 (even if another
math method specified in options).
* epub:switch is used to specify a non-MathML default. This is supposed
to proide a good fallback behavior in older readers, though I'm
not sure how well it works in practice.
This reverts commit da87837318.
Reason: The code was overzealous and would rule out some things
we want to be able to do, like include the same file multiple
times.
Previously this was done in src/pandoc.hs, which made it difficult
for library users.
* Removed readerCitations in ReaderOptions.
* Added readerReferences and readerCitationStyle to ReaderOptions.
* Moved use of processBiblio from main program to the
markdown and LaTeX readers.
Now pandoc correctly handles hard line breaks inside list items.
Previously they broke list parsing. Thanks to Pablo
Rodríguez for pointing out the problem.
Now it will also try to parse block commands. This is usually
what we want, given how rawLaTeXInline is used in the markdown
and textile readers. If a block-level LaTeX command is used
in the middle of a paragraph (e.g. `\subtitle` inside a title),
we can treat it as raw inline LaTeX.
* We now convert to XHTML before cutting into chapter-sized chunks.
This fixes a number of problems.
* `--number-sections` now works properly.
* A proper three-level table of contents is now used in `toc.ncx`.
There is no longer a subsidiary table of contents at the beginning
of each chapter.
* New epub-page template without the `$title$` variable. Titles are
left in the chapter bodies as an initial h1.
* Closes#539.
Previously a field list consisting only of metadata fields (author,
title, date) would be parsed as an empty DefinitionList, which is not
legal in LaTeX and not needed in any format. This patch fixes the
problem, which I learned of from
http://stackoverflow.com/questions/12762767/modify-variable-in-rst-with-pandoc.
* It is no longer in the IO monad.
* setHash uses state rather than Data.Unique.
* It takes a Style argument rather than parameters for CSL
and abbrev filenames.
* pandoc.hs now calls the functions to parse the style file
and add abbrevs.
There's no particular need for a newline (other than making the
generated MediaWiki source look nice to a human), and in fact
sometimes it is incorrect: in particular, inside an enumeration, list
items cannot have embedded newline characters.