Age | Commit message (Collapse) | Author | Files | Lines |
|
API change for consistency.
|
|
Also added writerEpubChapterLevel and writerEpubTOCLevel fields
to WriterOptions.
|
|
|
|
* Added `embed_data_files` flag. (not yet used)
* Shared no longer exports `findDataFile`.
* `readDataFile` now returns a strict bytestring.
* Shared now exports `readDataFileUTF8` which returns a string like
the old `readDataFile`.
* Rewrote modules to use new data file functions and to avoid
using functions from Paths_pandoc directly.
|
|
It is not widely implemented yet.
|
|
* Previously there were three different templates involved in
epub production. There is now just one template, default.epub
or default.epub3.
* It can now be overridden using `--template`, just like other
templates.
|
|
The titlepage stuff is now folded into the epub-page template.
A titlepage variable selects it.
|
|
The standard epub-page template is now used.
|
|
* Code highlighting now works by default.
* Quote styles work as in pandoc's HTML writer.
|
|
|
|
* 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.
|
|
|
|
* 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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* 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.
|
|
Also removeLeadingSpace to triml,
removeTrailingSpace to trimr.
|
|
* 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.
|
|
This improves sorting of chapters in some readers, which
apparently sort ch2 after ch10. Closes #610.
|
|
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.
|
|
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.
|
|
|
|
|
|
These now take WriterOptions and Pandoc only.
The extra parameters for epub stylesheet, epub fonts,
reference Docx, and reference ODT have been removed, since
these things are now in WriterOptions.
Note: breaking API change!
|
|
|
|
|
|
|
|
* This can be repeated for multiple fonts.
* Added parameter for fonts to embed to writeEPUB.
* Added ttf, otf to Mime types in Text.Pandoc.MIME.
|
|
|
|
|
|
Defaults to locale language if `lang` is not set.
|
|
This should fix `<dc:language>` problems.
|
|
Previously they were ignored. Now all links are preserved,
but purely internal links are modified so that they point
to the proper place in the EPUB.
This is nontrivial, since the heading you refer to in your
markdown source with 'my-section-1' might end up as
'ch16.xhtml#my-section' in the EPUB.
Closes #76.
|
|
|
|
epub-page.html, epub-coverimage.html, epub-titlepage.html.
|
|
kindlegen doesn't like them - even '.
It should be safe to use the unescaped ' character, since
we know that all attributes are double quoted in the relevant
files.
|
|
|
|
|
|
This addresses a problem with kindlegen pointed out by
Axel Kielhorn.
|
|
Closes #323. Thanks to Ralf Stephan for the patch (slightly modified).
|
|
Closes #319.
|
|
Closes #329.
|
|
Also do this when copying image files into EPUBs and ODTs.
Closes #263.
|
|
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" />
|