aboutsummaryrefslogtreecommitdiff
path: root/src/Text
AgeCommit message (Collapse)AuthorFilesLines
2012-01-21pandoc: Better error checking.John MacFarlane1-5/+5
2012-01-20PDF: Use string instead of special TeXProgram type.John MacFarlane1-16/+6
2012-01-20PDF: Better error message.John MacFarlane1-3/+7
2012-01-20pandoc: Output to pdf now works.John MacFarlane1-0/+1
2012-01-20PDF: Export TeXProgram type.John MacFarlane1-1/+1
2012-01-20PDF: Removed TeXError type, just return a bytestring.John MacFarlane1-18/+7
2012-01-20Fixed -Wall errors in PDF module.John MacFarlane1-20/+13
2012-01-20Added Text.Pandoc.PDF - converts latex to PDF.John MacFarlane1-0/+167
2012-01-20Docx: Put display math on separate line.John MacFarlane1-5/+9
2012-01-20Docx writer: Fixed styles in footnotes.John MacFarlane1-0/+6
Previously a footnote in a list item would be a list item, etc.!
2012-01-20Docx: Adjusted list spacing for less cramped number markers.John MacFarlane1-1/+1
2012-01-20Docx writer: Start bullet lists with solid bullet.John MacFarlane1-6/+7
2012-01-20Docx writer: Don't indent first level of lists.John MacFarlane1-2/+2
2012-01-20Docx writer: Fixed bug with numbered lists.John MacFarlane1-24/+37
Numbered lists were being numbered continuously, instead of having new lists start again with 1.
2012-01-19Templates: Removed vestigial remnant of openxml template.John MacFarlane1-1/+1
Closes #381 (I think).
2012-01-19Minor comment fixes.John MacFarlane1-2/+0
2012-01-19Check for existence before opening image file.John MacFarlane1-49/+57
Print warning if file doesn't exist.
2012-01-19Added Docx writer.John MacFarlane4-5/+637
* New module `Text.Pandoc.Docx`. * New output format `docx`. * Added reference.docx. * New option `--reference-docx`. The writer includes support for highlighted code blocks and math (which is converted from TeX to OMML using texmath's new OMML module).
2012-01-15ImageSize: Fixed implementation of sizeInPoints.John MacFarlane1-1/+1
2012-01-15Fixed whitespace bug in comments.John MacFarlane1-19/+16
2012-01-15ImageSize: extract dpi information from PNG and JPEG.John MacFarlane2-50/+93
* ImageSize record now includes dpiX, dpiY, pxX, pxY. * New functions sizeInPixels and sizeInPoints.
2012-01-14ODT writer now sizes images appropriately.John MacFarlane2-3/+10
OpenDocument writer: a title like "123x467" is interpreted as size in *points*. ODT writer: while adding images to the archive, computes their sizes and inserts a title attribute with the size before calling opendocument writer. Size is computed as follows: size in points = size in pixels * 96 / 72
2012-01-14Export ImageType(..) from ImageSize.John MacFarlane1-1/+1
2012-01-14Added Text.Pandoc.ImageSize.John MacFarlane1-0/+110
This is intened for use in docx and odt writers, so the size of image boxes can be calculated.
2012-01-14OpenDocument writer: treat image title of form "dddxddd" as size in px.John MacFarlane1-3/+14
Later we'll modify the ODT writer to insert such titles, so image sizes will be correct in the ODT.
2012-01-14SelfContained: Use getMimeType from Text.Pandoc.MIME.John MacFarlane1-135/+6
2012-01-14Added 'layout-cache' to getMimeType.John MacFarlane1-0/+1
This ensures that the META-INF/manifest.xml for ODT files will have everything it needs. Fixes a bug using modified ODT files as `--reference-odt`.
2012-01-13EPUB writer: Allow raw HTML.John MacFarlane1-6/+1
2012-01-12Added "title" to list of docbook block-level tags.John MacFarlane1-1/+1
2012-01-11Split html template into html, html5 templates.John MacFarlane1-1/+0
2012-01-11HTML writer: Don't use self-closing img, br, hr tags.John MacFarlane1-7/+12
2012-01-10Markdown reader: fixed bug in table/hrule parsing.John MacFarlane1-1/+1
Top line of table must not be followed by a blank line. This bug caused slowdown on some files with hrules and tables, and pandoc tried to interpret the hrules as the tops of multiline tables.
2012-01-08Markdown reader: Allow links in image captions.John MacFarlane1-13/+10
This change also means that [link with [link](/url)](/url) will turn into <p><a href="/url">link with link</a></p> instead of <p><a href="/url">link with [link](/url)</a></p>
2012-01-08Templates: Tell pandoc where to find default "html5" template.John MacFarlane1-0/+1
2012-01-02Markdown reader: Fix parsing of consecutive lists.John MacFarlane1-10/+12
Pandoc previously behaved like Markdown.pl for consecutive lists of different styles. Thus, the following would be parsed as a single ordered list, rather than an ordered list followed by an unordered list: 1. one 2. two - one - two This patch makes pandoc behave more sensibly, parsing this as two lists. Any change in list type (ordered/unordered) or in list number style will trigger a new list. Thus, the following will also be parsed as two lists: 1. one 2. two a. one b. two Since we regard this as a bug in Markdown.pl, and not something anyone would ever rely on, we do not preserve the old behavior even when `--strict` is selected.
2012-01-01EPUB writer: Allow `lang` variable to set language in metadata.John MacFarlane1-2/+5
Defaults to locale language if `lang` is not set.
2012-01-01New treatment of dashes in --smart mode.John MacFarlane2-6/+31
* `---` is always em-dash, `--` is always en-dash. * pandoc no longer tries to guess when `-` should be en-dash. * A new option, `--old-dashes`, is provided for legacy documents. Rationale: The rules for en-dash are too complex and language-dependent for a guesser to work reliably. This change gives users greater control. The alternative of using unicode isn't very good, since unicode em- and en- dashes are barely distinguishable in a monospace font.
2011-12-31Support for math in RST reader and writer.John MacFarlane2-7/+10
Inline math uses the :math:`...` construct. Display math uses .. math:: ... or if multilin .. math:: ... These seem to be supported now by rst2latex.py.
2011-12-31Pretty: Added beforeNonBreak combinator.John MacFarlane1-0/+21
This allows you to include something conditionally on it being before a nonblank. Used for RST inline math.
2011-12-30Support Sphinx-style math in RST writer.John MacFarlane1-2/+3
http://sphinx.pocoo.org/latest/ext/math.html
2011-12-30Support Sphinx style math in RST reader.John MacFarlane1-4/+35
Inline: :math:`E=mc^2` Block: .. math: E = mc^2 .. math:: E = mc^2 a = b^2 (This latter will turn into a paragraph with two display math elements.) Closes #117.
2011-12-30Fixed layout bug in ConTeXt and LaTeX writers.John MacFarlane2-4/+4
This was a regression introduced by the recent internal links changes.
2011-12-30LaTeX writer: only use hyperdef on section if there's a link to it.John MacFarlane1-27/+34
2011-12-30Added support for internal links in ConTeXt writer.John MacFarlane1-30/+15
Based on a patch by B. Scott Michel. Also simplified use of \hyphenateurl. We no longer try to go within an Inline list to find URLs. This is resource-heavy, and the main use case is autolinks, which can be readily recognized.
2011-12-30Add support for internal links to LaTeX writer.John MacFarlane1-27/+50
Based on a patch by B. Scott Michel.
2011-12-30ConTeXt writer: Add section labels and internal links as in HTML.B. Scott Michel1-21/+71
Add the ability to refer to internal links to the ConTeXt writer, just like the HTML writer can. The 'hierarchicalize' function generates unique names for sections, which can be used for references in ConTeXt, just as they can be in HTML. The ConTeXt writer adds these unique identifiers to each \section and does special processing of the Link target to see if it starts with a '#' (hash symbol), which is the tip-off that the link is an internal link.
2011-12-30HTML writer: Better handling of authors in meta tags.John MacFarlane1-12/+26
Footnotes and email addresses now come out in a more pleasing way. Modified from a patch by B. Scott Michel.
2011-12-30ConTeXt writer: Made `--toc` work even without `--number-sections`.John MacFarlane1-2/+2
2011-12-30Small tweaks to hyphenatedurl patch.John MacFarlane1-9/+6
Use isURI instead of isAbsoluteURI, as it also matches absolute URIs with '#...' at the end.
2011-12-30ConTeXt_url_hyphenationB. Scott Michel1-6/+13
Deeply scan through the [Inline] associated with a Link and ensure that all URLs are hyphenated using SYB primitives.