aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2012-01-01EPUB writer: Allow `lang` variable to set language in metadata.John MacFarlane2-5/+9
Defaults to locale language if `lang` is not set.
2012-01-01New treatment of dashes in --smart mode.John MacFarlane6-15/+56
* `---` 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 MacFarlane5-16/+56
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-30Updated context tests.John MacFarlane1-33/+34
2011-12-30Removed header 1 property from ConTeXt tests.John MacFarlane1-3/+1
It didn't work with new ids.
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-30Updated latex tests.John MacFarlane3-6/+18
2011-12-30LaTeX writer: only use hyperdef on section if there's a link to it.John MacFarlane1-27/+34
2011-12-30README: header identifiers now work in LaTeX, ConTeXt as well as HTML.John MacFarlane1-2/+2
Patch from B. Scott Michel.
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-30LaTeX template: color links blue.John MacFarlane1-5/+5
2011-12-30ConTeXt writer: Add section labels and internal links as in HTML.B. Scott Michel2-27/+77
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-30Updated ConTeXt tests.John MacFarlane2-69/+70
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 MacFarlane2-7/+7
2011-12-30README: Added link for HTML 5.John MacFarlane1-0/+1
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.
2011-12-30LaTeX writer: Improved detection of book classes.John MacFarlane1-6/+9
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
2011-12-30EPUB: Get correct environment variable for LANG.John MacFarlane1-1/+1
This should fix `<dc:language>` problems.
2011-12-29Better smart quote parsing.John MacFarlane5-4/+22
* 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.
2011-12-29Unescape entities in citation refId.John MacFarlane1-1/+20
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.
2011-12-29Unicode reference ID in biblio test.John MacFarlane2-5/+5
2011-12-29Updated tests for changes to HTML note back references.John MacFarlane1-5/+5
2011-12-29Merge pull request #366 from gridaphobe/masterJohn MacFarlane1-2/+1
Use Link instead of RawInline for reference backlinks
2011-12-29DZSlides: Added dzslides/template.html.John MacFarlane4-13/+537
This is the unaltered file from the dzslides repository. Pandoc now reads it, looking for the core part, and includes this in the new dzslides template via the 'dzslides-core' variable. When dzslides is updated, you can just put the new template.html in your `~/.pandoc/dzslides` directory, and things should work -- provided the core part can be identified as everything from <!-- {{{{ dzslides core to the end of the file. This should make it a bit easier to keep up to date.
2011-12-29Made `--version` informative about versions of dependencies.John MacFarlane1-2/+3
2011-12-29Better formatting for list of highlighting languages.John MacFarlane1-1/+1
2011-12-29Added "beamer" a few places where we test for latex.John MacFarlane1-2/+3
2011-12-29Don't use `--smart` automatically with `man` output.John MacFarlane1-1/+1
Previously pandoc used smart mode automatically when `man` output was selected.
2011-12-29Better formatting of input/output formats in `--help`.John MacFarlane1-7/+7
2011-12-29Made `html5` and `html5+lhs` output formats.John MacFarlane3-22/+31
Deprecated the `--html5`/`-5` flag. Use the output format instead.
2011-12-29Added 'beamer' as an output format.John MacFarlane10-47/+127
Beamer output uses the default LaTeX template, with some customizations via variables. Added `writerBeamer` to `WriterOptions`. Added `--beamer` option to `markdown2pdf`.
2011-12-28Preserve attributes in highlighted HTML.John MacFarlane4-5/+8
The container element will have the classes, id, and key-value attributes you specified in the delimited code block. Previously these were stripped off.
2011-12-28EPUB: Correctly handle internal links.John MacFarlane1-6/+55
Previously they were ignored. Now all links are preserved, but purely internal links are modified so that they point to the proper place in the EPUB. This is nontrivial, since the heading you refer to in your markdown source with 'my-section-1' might end up as 'ch16.xhtml#my-section' in the EPUB. Closes #76.
2011-12-27Made `--highlight-style` and `--no-highlight` work in markdown2pdf.John MacFarlane1-0/+1
2011-12-27Added `--highlight-style` and `--no-highlight` options.John MacFarlane6-15/+67
2011-12-27Highlighting: Add language as class name.John MacFarlane3-3/+3
This restores behavior of 1.8.2.1. Adjusted tests.
2011-12-27Updated tests.John MacFarlane4-73/+80
2011-12-27Updated templates; changes for new highlighting-kate.John MacFarlane1-5/+7
2011-12-27Replaced Apostrophe, Ellipses, EmDash, EnDash w/ unicode strings.John MacFarlane29-277/+231
2011-12-27LaTeX reader: Return Str instead of Apostrophe.John MacFarlane1-1/+1
2011-12-27Markdown reader: Improved previous patch to allow unicode apostrophe.John MacFarlane1-1/+2
2011-12-27Pretty: return Str with unicode instead of Apostrophe.John MacFarlane1-1/+1
2011-12-26EPUB writer: Make external (absolute) links active.John MacFarlane1-2/+2
2011-12-26Modified str parser to capture apostrophes in smart mode.John MacFarlane1-2/+9
This solves a problem stemming from the fact that a parser doesn't know what came *before* in the input stream. Previously pandoc would parse D'oh l'*aide* as containing a single quoted "oh l", when both `'`s should be apostrophes. (Issue #360.) There are two issues here. (a) It is obvious that the first `'` is not an open quote, becaues of the preceding `D`. This patch solves the problem. (b) It is obvious to us that the second `'` is not an open quote, because we see that *aide* is some text. But getting a good algorithm that has good performance is a bit tricky. You can't assume that `'` followed by `*` is always an apostrophe: *'this is quoted'* This patch does not fix (b).