aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/Writers
AgeCommit message (Collapse)AuthorFilesLines
2013-01-09Fixed regression in example lists.John MacFarlane1-6/+7
This was associated with e1be934dc2ff061e5200017d6503280686983e1f.
2013-01-09Added Attr field to Header.John MacFarlane17-51/+59
Previously header ids were autogenerated by the writers. Now they are generated (unless supplied explicitly) in the markdown parser, if the `header_identifiers` extension is selected. In addition, the textile reader now supports id attributes on headers.
2013-01-07Implemented tight lists in context, latex writers.John MacFarlane2-13/+27
2013-01-06Don't put the text of an autolink in Code font.John MacFarlane11-16/+26
2013-01-06Docx writer: Use rIdNN identifiers for r:embed in images.John MacFarlane1-1/+1
2013-01-06Docx writer: Use separate footnotes.xml for notes.John MacFarlane1-21/+32
This seems to help LibreOffice convert the file, even though it was valid docx before. Note that the references in notes must be in word/_rels/footnotes.xml.rel. We handle this now by simply making that file contain all the references in word/_rels/document.xml.rel. Something better could be done eventually, but this works. Closes #637.
2013-01-05LaTeX tables: Use minipage rather than parbox for block containers.John MacFarlane1-2/+2
This allows verbatim code to be included in grid tables. Closes #663.
2013-01-05Implemented --toc-depth (and --toc!) for RTF writer.John MacFarlane1-1/+3
2013-01-05Support --toc-depth in context writer.John MacFarlane1-0/+6
2013-01-05For epub3, use epub:type to mark footnotes and footnote refs.John MacFarlane1-6/+14
This yields nice popup footnotes in iBooks. See http://www.pigsgourdsandwikis.com/2012/05/creating-pop-up-footnotes-in-epub-3-and.html
2013-01-05EPUB changes.John MacFarlane1-12/+4
* Epub writer now exports writeEPUB, not writeEPUB2 and writeEPUB3. * Options now exports EPUBVersion * WriterOptions now includes writerEpubVersion.
2013-01-05Implemented --toc-depth for markdown writer.John MacFarlane1-7/+7
2013-01-05Implemented toc-depth for html writer.John MacFarlane1-2/+3
2013-01-05Changed --toc-level to --toc-depth.John MacFarlane3-3/+3
2013-01-05Implemented --toc-level for rst.John MacFarlane1-1/+3
2013-01-05Implemented --toc-level in LaTeX writer.John MacFarlane1-0/+4
2013-01-05Changed `--epub-toc-level` to `--toc-level`.John MacFarlane1-1/+1
Also writerEpubTOCLevel -> writerTOCLevel. So far this is only implemented in the EPUB writer.
2013-01-04MediaWiki writer: use `<code>` not `<tt>` for Code.John MacFarlane1-1/+1
2013-01-04Renamed writerEPUBMetadata -> writerEpubMetadata.John MacFarlane1-1/+1
API change for consistency.
2013-01-04Added `--epub-chapter-level` and `--epub-toc-level` options.John MacFarlane1-11/+13
Also added writerEpubChapterLevel and writerEpubTOCLevel fields to WriterOptions.
2013-01-04EPUB writer: Parameterize header level for splitting chapters.John MacFarlane1-8/+14
2013-01-03Implemented `Ext_header_identifiers`, `Ext_implicit_header_references`.John MacFarlane1-1/+3
Now by default pandoc will act as if link references have been defined for all headers. So, you can do this: # My header Link to [My header]. Another link to [it][My header]. Closes #691.
2012-12-29Data files changes.John MacFarlane3-26/+9
* 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.
2012-12-19EPUB3: Don't use the switch statement for mathml.John MacFarlane1-10/+5
It is not widely implemented yet.
2012-11-06Textile reader/writer: Fixed autolinks.John MacFarlane1-1/+4
Previously the textile reader and writer incorrectly implented RST-style autolinks for URLs and email addresses. This has been fixed. Now an autolink is done this way: "$":http://myurl.com
2012-11-05HTML writer: Include highlighting-css for code spans, too.John MacFarlane1-1/+3
Previously it was only included if used in a code block. Closes #653.
2012-11-04EPUB writer: Rationalized templates.John MacFarlane1-8/+3
* 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.
2012-11-04EPUB: removed need for separate epub-titlepage template.John MacFarlane1-8/+3
The titlepage stuff is now folded into the epub-page template. A titlepage variable selects it.
2012-11-04EPUB writer: Removed need for separate epub-coverpage template.John MacFarlane1-11/+5
The standard epub-page template is now used.
2012-11-04EPUB writer: Improved handling of CSS.John MacFarlane1-2/+6
* Code highlighting now works by default. * Quote styles work as in pandoc's HTML writer.
2012-11-04RST writer: Don't add ":align: center" to figures.John MacFarlane1-2/+1
2012-11-04EPUB writer: Set epub3 variable before calling templates.John MacFarlane1-1/+2
2012-11-04EPUB writer: Better TOC and footnote handling.John MacFarlane1-20/+29
* 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.
2012-11-04EPUB: Use section divs by default for better semantic markup.John MacFarlane1-0/+1
2012-11-04LaTeX writer: Don't use [fragile] unnecessarily.John MacFarlane1-1/+5
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.
2012-11-04Improved support for MathML in EPUB3.John MacFarlane1-16/+26
* 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.
2012-11-02EPUB: Don't use opf:role in EPUB3.John MacFarlane1-1/+2
2012-11-02EPUB: Fixed invalid nesting problem in nav.xhtml.John MacFarlane1-3/+3
2012-11-02EPUB: Added properties attribute.John MacFarlane1-1/+3
2012-11-02HTML writer: Use XHtml5 only if blaze version current enough.John MacFarlane1-0/+4
2012-11-02HTML writer: Use Text.Blaze.XHtml5 instead of Html5.John MacFarlane1-1/+1
This is needed for epub.
2012-11-02EPUB: Use HTML5 for epub3.John MacFarlane1-1/+4
2012-11-02EPUB: Set epub3 template variable controlling doctype.John MacFarlane1-3/+5
2012-11-02EPUB writer: Don't create entry for nav.xhtml in EPUB2.John MacFarlane1-2/+3
2012-11-02Fixed a couple validation bugs that affect epub2 also.John MacFarlane1-2/+3
2012-11-02Preliminary changes for epub3 format.John MacFarlane1-15/+64
* EPUB writer now exports writeEPUB2 and writeEPUB3. * 'epub' output format is epub v2, while 'epub3' is v3.
2012-10-11EPUB writer improvements.John MacFarlane1-27/+54
* 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.
2012-10-04Remove newline after <br/> in translation of LineBreakBrent Yorgey1-1/+1
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.
2012-10-02Docx writer: Added nsid to abstractNum elements.John MacFarlane1-11/+16
This helps when merging word documents with numbered or bulleted lists. Closes #627.
2012-10-02Use integer ids for bookmarks.John MacFarlane1-6/+8
Closes #626.