aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2013-02-26Fix example header identifier. Very minor.Douglas F. Calvert1-1/+1
2013-02-26Docx writer: Create content types and document rels from scratch.John MacFarlane1-15/+79
This fixes problems that arise when you edit the reference.docx with Word. Word tends to remove things from the `[Content_Types].xml` and `word/_rels/document.xml.rels` files that are needed (e.g. references to the `footnotes.xml` file and image default mime types). So we regenerate these completely rather than taking them from the `reference.docx`. We also now encode mime types for each individual image rather than using defaults. This should allow us to handle a wider range of image types. This mostly addresses #414. The only remaining issue I can see is the issue of style IDs, which Word inexplicably changes in some cases when the reference.docx is saved. E.g. `FootnoteReference` becomes `FootnoteReference1`.
2013-02-26Added to RELEASE-CHECKLIST - tag templates repo.John MacFarlane1-0/+2
2013-02-25Refactoring in Docx writer.John MacFarlane1-24/+44
2013-02-25Updated copyright year in READMEJohn MacFarlane1-1/+1
2013-02-24osx InstallationCheck script: use full path for sysctl.John MacFarlane1-2/+2
Thanks to jonahbull for the suggestion. Closes #580.
2013-02-23Docx writer: Handle PDF images.John MacFarlane1-0/+1
2013-02-23Added PDF to content types in reference.docx.John MacFarlane1-0/+0
2013-02-23ImageSize: Added Pdf to ImageType.John MacFarlane1-1/+3
So far we have no function to determine PDF's size.
2013-02-23reference.docx: Added default content type for emf.John MacFarlane1-0/+0
2013-02-23EPUB writer: Improved behavior with `--number-sections`.John MacFarlane1-7/+24
* Headers with "unnumbered" attribute are not numbered. (Nor do they cause an increment in running numbering.) * Section numbers now work properly, even when there is material before the first numbered section.
2013-02-23EPUB writer: more transition.John MacFarlane1-6/+10
Changed toChunks to toChapters.
2013-02-23EPUB writer: Temporary step towards a better system for numbering.John MacFarlane1-5/+8
With this change, `--number-sections` won't work. This will be fixed later.
2013-02-23HTML writer: fix case when writerNumberOffet is empty or short.John MacFarlane1-1/+1
We add 0s to the end of the list if it's shorter than needed.
2013-02-23Added examples in README for `--number-offset`.John MacFarlane1-0/+4
2013-02-23`--number-from` -> `--number-offset`John MacFarlane5-20/+20
Also `writerNumberFrom` -> `writeNumberOffset`. The offset is a list of numbers (0 by default). These are added to the section, subsection, etc. numbers that would have been generated automatically.
2013-02-22EPUB writer: Minor section numbering tweaks.John MacFarlane1-2/+3
* If we need to add an initial section, make it unnumbered. * Don't add extra space before unnumbered section titles in TOC.
2013-02-22Clarify that `--number-from` only works in HTML.John MacFarlane1-3/+3
2013-02-22EPUB writer: Use writerNumberFrom instead of ugly hack.John MacFarlane1-8/+1
2013-02-22Documented `--number-from`.John MacFarlane1-0/+4
2013-02-22`--number-from` implies `--number-sections`.John MacFarlane1-1/+2
2013-02-22Made HTML writer sensitive to `writerNumberFrom`.John MacFarlane1-1/+4
2013-02-21Added `--number-from` option and `writerNumberFrom`.John MacFarlane2-0/+15
These still aren't hooked up to anything in the writers.
2013-02-21Make `implicit_header_references` work with explicit header ids.John MacFarlane4-20/+30
(Markdown reader.)
2013-02-20LaTeX reader: Don't emit empty paragraph.John MacFarlane1-2/+2
See #761.
2013-02-20LaTeX reader: Parse `\section*`, etc. as unnumbered sections.John MacFarlane1-11/+19
2013-02-20Small spacing change in context template.John MacFarlane1-8/+5
2013-02-20ConTeXt template: Use `\placecontent` for toc.John MacFarlane1-6/+7
Configure it for toc depth. Thanks to Aditya Mahajan.
2013-02-19ConTeXt writer: Removed `\placecontent`.John MacFarlane1-7/+6
This produced a duplicate toc, in conjunction with `\placelist`.
2013-02-19Allow compilation with blaze-html 0.6.John MacFarlane1-2/+2
2013-02-18ConTeXt writer: now sensitive to 'unnumbered' class in headers.John MacFarlane1-7/+10
In this case \title, \subject are used instead of \chapter, \section.
2013-02-18LaTeX template: set secnumdepth to 5 if `--number-sections` specified.John MacFarlane1-6/+7
This yields behavior equivalent to the other writers, numbering level 4 and 5 headers too. Closes #753.
2013-02-16Textile reader: Handle attributes on headers.John MacFarlane3-17/+34
Includes `[lang]`, `(class #id)`, `{color:red}` styles.
2013-02-16LaTeX writer: Omit lists with no items.John MacFarlane1-0/+3
Otherwise we get LaTeX errors.
2013-02-16EPUB writer: Fix section numbering.John MacFarlane1-1/+8
Previously the numbering restarted from 1 in each chapter (with `--number-sections`), though the numbers in the table of contents were correct. Note that this fix is a bit hackish and possibly fragile: if the rendering of section numbers in HTML changes in the future, it may break. But it works, without needing changes in other modules.
2013-02-16HTML reader: Preserve all header attributes.John MacFarlane1-2/+4
2013-02-15Allow `&` in emails (for entities).John MacFarlane4-3/+19
Added tests for entities in titles and links. Closes #723.
2013-02-15Parsing: uri, email: resolve entities.John MacFarlane1-2/+3
A markdown link `<http://g&ouml;ogle.com>` should be a link to http://göogle.com.
2013-02-15Markdown reader: litChar now includes entities.John MacFarlane1-4/+4
We no longer need to use fromEntities on titles.
2013-02-15LaTeX writer: Include unnumbered sections in TOC.John MacFarlane1-12/+18
2013-02-14Implemented "unnumbered" headers in LaTeX writer.John MacFarlane1-8/+11
Starred variants of section commands used when header has "unnumbered" class.
2013-02-14HTML writer: Support header attributes.John MacFarlane4-26/+29
Note: The attributes go on the enclosing section or div if `--section-divs` is specified. Also fixed a regression (only now noticed) in html+lhs output. Previously the bird tracks were being omitted.
2013-02-13hierarchicalize: Do not number section with class "unnumbered".John MacFarlane2-12/+14
Unnumbered sections get [] for their section number. So far only the HTML writer has been adjusted to be sensitive to this. If we keep this change, all the writers will need to be changed either (a) to directly check for the "unnumbered" class, if they do section numbering themselves, or (b) to check for a null section number, if they use hierarchicalize.
2013-02-13Increased upper bound for Diff.John MacFarlane1-1/+1
2013-02-12HTML writer: Refactored adding attributes to html element.John MacFarlane1-9/+10
2013-02-12Version bump to 1.11, Text.Pandoc.Parsing no longer exposed.John MacFarlane1-2/+2
2013-02-12Shared: Changed type of Element.John MacFarlane6-11/+11
Sec now includes a field for Attr rather than just String (the identifier). Note, this is an API change.
2013-02-12Markdown reader: Fix title block parsing.John MacFarlane1-1/+4
Now if mmd_title_blocks is specified, pandoc will parse a MMD title block if it sees one, even if pandoc_title_blocks is enabled.
2013-02-12Merge pull request #748 from sheremetyev/wix-peruserJohn MacFarlane2-14/+20
Install Pandoc per-user on Windows
2013-02-13WiX: extract upgrade code into a define to avoid duplication.Fyodor Sheremetyev1-2/+3