summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
* ImageSize: Fixed implementation of sizeInPoints.John MacFarlane2012-01-15
|
* Fixed whitespace bug in comments.John MacFarlane2012-01-15
|
* ImageSize: extract dpi information from PNG and JPEG.John MacFarlane2012-01-15
| | | | | * ImageSize record now includes dpiX, dpiY, pxX, pxY. * New functions sizeInPixels and sizeInPoints.
* ODT writer now sizes images appropriately.John MacFarlane2012-01-14
| | | | | | | | | | | | | 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
* Export ImageType(..) from ImageSize.John MacFarlane2012-01-14
|
* Added Text.Pandoc.ImageSize.John MacFarlane2012-01-14
| | | | | This is intened for use in docx and odt writers, so the size of image boxes can be calculated.
* OpenDocument writer: treat image title of form "dddxddd" as size in px.John MacFarlane2012-01-14
| | | | | Later we'll modify the ODT writer to insert such titles, so image sizes will be correct in the ODT.
* SelfContained: Use getMimeType from Text.Pandoc.MIME.John MacFarlane2012-01-14
|
* Added 'layout-cache' to getMimeType.John MacFarlane2012-01-14
| | | | | | 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`.
* EPUB writer: Allow raw HTML.John MacFarlane2012-01-13
|
* Improved citation tests.John MacFarlane2012-01-13
|
* Added "title" to list of docbook block-level tags.John MacFarlane2012-01-12
|
* Split html template into html, html5 templates.John MacFarlane2012-01-11
|
* HTML writer: Don't use self-closing img, br, hr tags.John MacFarlane2012-01-11
|
* Markdown reader: fixed bug in table/hrule parsing.John MacFarlane2012-01-10
| | | | | | | 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.
* Markdown reader: Allow links in image captions.John MacFarlane2012-01-08
| | | | | | | | | | | | | | 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>
* Templates: Tell pandoc where to find default "html5" template.John MacFarlane2012-01-08
|
* Allow markdown2pdf to use `--old-dashes` and `--citatation-abbreviations`.John MacFarlane2012-01-04
|
* Markdown reader: Fix parsing of consecutive lists.John MacFarlane2012-01-02
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* README: Added note on proper date format.John MacFarlane2012-01-01
|
* EPUB writer: Allow `lang` variable to set language in metadata.John MacFarlane2012-01-01
| | | | Defaults to locale language if `lang` is not set.
* New treatment of dashes in --smart mode.John MacFarlane2012-01-01
| | | | | | | | | | | | * `---` 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.
* Support for math in RST reader and writer.John MacFarlane2011-12-31
| | | | | | | | | | | | | | | | Inline math uses the :math:`...` construct. Display math uses .. math:: ... or if multilin .. math:: ... These seem to be supported now by rst2latex.py.
* Pretty: Added beforeNonBreak combinator.John MacFarlane2011-12-31
| | | | | This allows you to include something conditionally on it being before a nonblank. Used for RST inline math.
* Support Sphinx-style math in RST writer.John MacFarlane2011-12-30
| | | | http://sphinx.pocoo.org/latest/ext/math.html
* Support Sphinx style math in RST reader.John MacFarlane2011-12-30
| | | | | | | | | | | | | | | | | | | 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.
* Updated context tests.John MacFarlane2011-12-30
|
* Removed header 1 property from ConTeXt tests.John MacFarlane2011-12-30
| | | | It didn't work with new ids.
* Fixed layout bug in ConTeXt and LaTeX writers.John MacFarlane2011-12-30
| | | | | This was a regression introduced by the recent internal links changes.
* Updated latex tests.John MacFarlane2011-12-30
|
* LaTeX writer: only use hyperdef on section if there's a link to it.John MacFarlane2011-12-30
|
* README: header identifiers now work in LaTeX, ConTeXt as well as HTML.John MacFarlane2011-12-30
| | | | Patch from B. Scott Michel.
* Added support for internal links in ConTeXt writer.John MacFarlane2011-12-30
| | | | | | | | 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.
* Add support for internal links to LaTeX writer.John MacFarlane2011-12-30
| | | | Based on a patch by B. Scott Michel.
* LaTeX template: color links blue.John MacFarlane2011-12-30
|
* ConTeXt writer: Add section labels and internal links as in HTML.B. Scott Michel2011-12-30
| | | | | | | | | | | | 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.
* Updated ConTeXt tests.John MacFarlane2011-12-30
|
* HTML writer: Better handling of authors in meta tags.John MacFarlane2011-12-30
| | | | | | | Footnotes and email addresses now come out in a more pleasing way. Modified from a patch by B. Scott Michel.
* ConTeXt writer: Made `--toc` work even without `--number-sections`.John MacFarlane2011-12-30
|
* README: Added link for HTML 5.John MacFarlane2011-12-30
|
* Small tweaks to hyphenatedurl patch.John MacFarlane2011-12-30
| | | | | Use isURI instead of isAbsoluteURI, as it also matches absolute URIs with '#...' at the end.
* ConTeXt_url_hyphenationB. Scott Michel2011-12-30
| | | | | Deeply scan through the [Inline] associated with a Link and ensure that all URLs are hyphenated using SYB primitives.
* LaTeX writer: Improved detection of book classes.John MacFarlane2011-12-30
| | | | | | | | | | We now check the `documentclass` variable, and if that is not set, we look through the template itself. Also, we have added the KOMA classes scrreprt and scrbook. You can now make a book using markdown2pdf -V documentclass:book
* EPUB: Get correct environment variable for LANG.John MacFarlane2011-12-30
| | | | This should fix `<dc:language>` problems.
* Better smart quote parsing.John MacFarlane2011-12-29
| | | | | | | | | | | * Added stateLastStrPos to ParserState. This lets us keep track of whether we're parsing the position immediately after a 'str'. If we encounter a ' in such a location, it must be an apostrophe, and can't be a single quote start. * Set this in the markdown, textile, html, and rst str parsers. * Closes #360.
* Unescape entities in citation refId.John MacFarlane2011-12-29
| | | | | | | | Closes #357. The refIds coming from citeproc contain XML numeric entities, and these don't match with the citation keys parsed by pandoc. Solution is to unescape them.
* Unicode reference ID in biblio test.John MacFarlane2011-12-29
|
* Updated tests for changes to HTML note back references.John MacFarlane2011-12-29
|
* Merge pull request #366 from gridaphobe/masterJohn MacFarlane2011-12-29
|\ | | | | Use Link instead of RawInline for reference backlinks
| * change reference backlink from RawInline to Link so it gets rendered ↵Eric Seidel2011-12-24
| | | | | | | | properly when using the xmlhtml package