Age | Commit message (Collapse) | Author | Files | Lines |
|
* 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 01d109e2efb880d9d2b8256d2e19ed4954076754. 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 is needed for epub.
|
|
|
|
|
|
|
|
|
|
* EPUB writer now exports writeEPUB2 and writeEPUB3.
* 'epub' output format is epub v2, while 'epub3'
is v3.
|
|
* 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.
|
|
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.
|
|
This helps when merging word documents with numbered or bulleted lists.
Closes #627.
|
|
Closes #626.
|
|
Also removeLeadingSpace to triml,
removeTrailingSpace to trimr.
|
|
We work around the problem that blaze-html unnecessarily escapes `'`
by pre-escaping just the `'` characters, instead of the whole string.
If blaze-html later stops escaping `'` characters, we can simplify
strToHtml to toHtml.
Note that this change yields a significant speed boost (111ms to 94ms
on one benchmark).
Closes #629.
|
|
Closes #614.
|
|
* Depend on text.
* Expose Text.Pandoc.UTF8.
* Text.Pandoc.UTF8 now exports toString, fromString,
toStringLazy, fromStringLazy.
* These are used instead of the old utf8-string functions.
|
|
Now we insert anchors after each header, and use @ref
instead of @uref for links.
Commas are now escaped as @comma{} only when needed; previously
all commas were escaped. (This change is needed, in part, because @ref
commands must be followed by a real comma or period.)
Also insert a blank line in from of @verbatim environments.
|
|
This reverts commit 7272735b3d413a644fd9ab01eeae8ae9cd5a925b.
|
|
Previously, UTF-8 was enforced for both input and output.
The new system:
* For input, UTF-8 is tried first; if an error is raised, the
locale encoding is tried.
* For output, the locale encoding is always used.
|
|
Instead, use standard LaTeX commands to change numbering style.
|
|
Closes #576.
|
|
* Use :target: field when you have a simple linked image.
* Don't wrap the reference.
* Cleaned up code.
* Closes #611.
|
|
|
|
|
|
It causes the heading to be a different size form the body,
sometimes.
|
|
|
|
|
|
This improves sorting of chapters in some readers, which
apparently sort ch2 after ch10. Closes #610.
|
|
|
|
We now put a newline between `</dd>` and `<dd>` when
there are multiple definitions.
|
|
Closes #607.
|
|
Previously a list like
1. one
- a
- b
2. two
would come out with a bullet instead of "2."
Thanks to Russell Allen for reporting the bug.
|
|
Otherwise we have a hard-coded English string, which looks
strange in ebooks written in other languages. Using the
title for this entry seems a good solution. Closes #572.
|
|
Conflicts:
src/Text/Pandoc/Writers/ODT.hs
|
|
Per
http://idpf.org/epub/30/spec/epub30-publications.html#sec-metadata-elem,
a metadata element can contain not just Dublin Core elements but also
meta and link elements, but Pandoc currently strips those out.
Patch from aberrancy. Closes #589.
|
|
This is the variant github prefers.
|
|
|
|
|
|
Unescaped -'s become hyphens, while \-'s are left as ascii
minus signs. That is preferable for use with command-line
options.
See http://lintian.debian.org/tags/hyphen-used-as-minus-sign.html.
Thanks to Andrea Bolognani for bringing the issue to our
attention.
|
|
This seems to fix a problem viewing pandoc-generated
docx files in LibreOffice.
|
|
|
|
|
|
|
|
|