aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/Writers
AgeCommit message (Collapse)AuthorFilesLines
2013-01-18Add data-cites field to citations in HTML5.John MacFarlane1-2/+6
This contains a space-separated list of citation IDs.
2013-01-18RTF writer: Added writeRTFWithEmbeddedImages.John MacFarlane1-1/+8
* RTF writer: Export writeRTFWithEmbeddedImages instead of rtfEmbedImage. * Text.Pandoc: Use writeRTFWithEmbeddedImages for RTF. * Moved code for embedding images in RTF out of pandoc.hs.
2013-01-17Convert highlighting-kate language to listings languageJohn MacFarlane1-19/+63
if --listings is used. Closes #704.
2013-01-16Fixed problem with duplicate ids in epub.John MacFarlane1-12/+4
2013-01-16Implemented Ext_mmd_header_identifiers in markdown writer.John MacFarlane1-0/+2
2013-01-15LaTeX writer: Prevent paragraphs containing only linebreaks or spaces.John MacFarlane1-4/+9
2013-01-15Added `writerHtmlQTags` and `--html-q-tags` option.John MacFarlane1-1/+1
The previous default was to use `<q>` tags in HTML5. But `<q>` tags are also valid HTML4, and they are not very robust in HTML5. Some user agents don't support them, and some CSS resets prevent pandoc's quotes CSS from working properly (e.g. bootstrap). It seems a better default just to insert quote characters, but the option is provided for those who have gotten used to using `<q>` tags.
2013-01-15Use 'fig:' instead of '\SOH' in title to indicate figure.John MacFarlane13-25/+25
Revises 1a4b47e93368bfbd31daccdfedbd9527ee740201
2013-01-14Implemented Ext_implicit_figures.John MacFarlane13-12/+29
* In markdown reader, add a '\1' character to the beginning of the title of an image that is alone in its paragraph, if implicit_figures extension is selected. * In writers, check for Para [Image alt (src,'\1':tit)] and treat it as a figure if possible. * Updated tests. This is a bit of a hack, but it allows us to make implicit_figures an extension of the markdown reader, rather than the writers.
2013-01-13RST writer: Fixes bug with links with duplicate text.John MacFarlane1-6/+10
We now (a) use anonymous links for links with inline URLs, and (b) use an inline link instead of a reference link if the reference link would require a label that has already been used for a different link. Closes #511.
2013-01-13RST writer: Properly handle images with no alt text.John MacFarlane1-6/+7
Closes #678.
2013-01-13RST writer: Allow soft breaks w continuations in line blocks.John MacFarlane1-1/+1
2013-01-13Use line block in RST writer when a paragraph contains linebreaks.John MacFarlane1-4/+8
Previously linebreaks weren't supported in RST, since RST has no native linebreak construct.
2013-01-12Markdown writer: Support Ext_auto_identifiers and Ext_header_attributes.John MacFarlane1-13/+23
2013-01-12Escape `|` as `\vert` in LaTeX math.John MacFarlane1-2/+11
This avoids a clash with highlighting-kate's macros, which redefine | as a short verbatim delimiter. Thanks to Björn Peemöller for raising this issue.
2013-01-11Changed hspace in last commit to 0.333em.John MacFarlane1-1/+1
This seems to match the spacing of ~ exactly.
2013-01-11LaTeX writer: Use `\hspace*` for nonbreaking space after line break.John MacFarlane1-1/+13
Since `~` spaces after a line break are just ignored. Closes #687.
2013-01-11Revised EPUB writer given changes in header attributes.John MacFarlane1-7/+18
We need to ensure that all headers have attributes, since this is no longer guaranteed by hierarchicalize. Explicitly given headers remain the same.
2013-01-11EPUB writer: Download images at URLs.John MacFarlane1-3/+3
2013-01-11Refactoring:John MacFarlane3-19/+8
* Shared now exports fetchItem (instead of getItem) and openURL * fetchItem has different parameters than getItem and includes some logic formerly in the ODT and Docx writers * getItem still used in SelfContained
2013-01-11ODT, Docx writers: Properly handle URL refs for images.John MacFarlane2-20/+38
These images are now downloaded instead of being ignored (as used to happen in the docx reader) or causing an error (as used to happen in the odt reader).
2013-01-11Improvements to docx writer.John MacFarlane1-65/+63
Avoid reading image files again when we've already processed them.
2013-01-11Docx writer: Preliminary improvements.John MacFarlane1-18/+23
* Use getItem to fetch images, so we can get them over the net if they have absolute URLs. * Added TODO notes for cleaning up the logic.
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.