Age | Commit message (Collapse) | Author | Files | Lines |
|
* 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.
|
|
|
|
|
|
|
|
|
|
- Removed writerLiterateHaskell from WriterOptions.
- Removed readerLiterateHaskell from ReaderOptions.
- Added Ext_literate_haskell to Extensions. Test for this
instead of the above.
- Removed failUnlessLHS from Shared.
Note: At this point, +lhs and .lhs extension no longer has any effect.
Need to fix.
|
|
Ext_simple_table, Ext_multiline_tables, Ext_pipe_tables.
Simple tables are preferred over pipe tables when both are
enabled. If no appropriate table style is available,
a raw HTML table is used.
So far there is no option for output of grid tables.
|
|
So far incomplete.
|
|
Closes #581.
|
|
|
|
HTML is used if these are disabled.
|
|
IF not set, definition lists will be rendered as regular
paragraphs, with the term set off by a line break.
|
|
|
|
|
|
|
|
|
|
If footnotes not enabled, footnotes are formatted like normal
markdown paragraphs, with a marker like [3].
|
|
Still have not implemented individual tests for all the extensions
in the markdown writer.
|
|
|