aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2014-09-27Merge pull request #1601 from jkr/windowsfixJohn MacFarlane2-3/+2
Fix path-slashes inside archive for windows
2014-09-27Merge pull request #1589 from mszep/masterJohn MacFarlane1-7/+17
Add function to sanitize ConTeXt labels
2014-09-27Merge pull request #1644 from mpickering/masterJohn MacFarlane14-76/+135
Fixes and Enhancements from the tracker
2014-09-27Update tests for #1649Matthew Pickering1-1/+3
2014-09-27Org Reader: Parse multi-inline terms correctly in definition listMatthew Pickering1-1/+1
Closes #1649
2014-09-26Merge branch 'master' of github.com:jgm/pandocJohn MacFarlane1-5/+5
2014-09-26LaTeX template: load polyglossia before bibtex.John MacFarlane1-8/+7
Fixes jgm/pandoc-templates#70. Thanks to bluebirch.
2014-09-25HTML Reader: Recognise <br> tags inside <pre> blocksmpickering1-1/+6
Closes #1620
2014-09-25HTML Writer: Don't double render when email-obfuscation=nonempickering1-5/+5
Closes #1625
2014-09-25Updated README to include information about KaTeX switchesmpickering1-1/+12
2014-09-25Add support for KaTeX HTML mathmpickering3-3/+52
Closes #1626
2014-09-25HTML Writer: MathML now outputted with tex annotation.mpickering1-1/+15
Closes #1635
2014-09-25EPUB Tests: Seperating image testing from other featuresmpickering4-35/+8
2014-09-25Shared: Make collapseFilePath OS-agnosticmpickering2-23/+28
2014-09-25MediaBag: Fixes Windows specific path problemsmpickering1-5/+5
Changes the internal representation to fix the problem. I haven't tested this on windows. Closes #1597
2014-09-22Merge pull request #1639 from RyanGlScott/masterJohn MacFarlane1-5/+5
Bump text, random, http-client upper bounds
2014-09-22Bump text, random, http-client upper boundsRyanGlScott1-5/+5
2014-09-18ConTeXt writer: add function toLabelMark Szepieniec1-7/+17
This function can be used to sanitize reference labels so that they do not contain any of the illegal characters \#[]",{}%()|= . Currently only Links have their labels sanitized, because they are the only Elements that use passed labels.
2014-09-11Docx writer: Renumber header and footer relationships to avoid collisions.Jesse Rosenthal1-12/+56
We previously took the old relationship names of the headers and footer in secptr. That led to collisions. We now make a map of availabl names in the relationships file, and then rename in secptr.
2014-09-09Updated tests for #1616 change.John MacFarlane1-0/+1
2014-09-09LaTeX template: Added \VerbatimFootnotes if there is verbatim in notes.John MacFarlane1-26/+7
Fixes a bug when there is verbatim inside notes. Closes #1616.
2014-09-09LaTeX writer: Test for protecting images in header.Jesse Rosenthal1-0/+3
2014-09-09LaTeX writer: Protect graphics in headers.Jesse Rosenthal1-6/+15
Graphics in `\section`/`\subsection` etc titles need to be `\protect`ed. This adds a state value and manually turns it on before every invocation of `sectionHeader` and manually turns it off after. Using a writer value and applying `local` would probably be cleaner, but this fits with the current style.
2014-09-06Docx Reader: Remove header class properly in other langsJesse Rosenthal1-4/+4
When we encounter one of the polyglot header styles, we want to remove that from the par styles after we convert to a header. To do that, we have to keep track of the style name, and remove it appropriately.
2014-09-05Docx reader: Add test for polyglot headers.Jesse Rosenthal3-0/+14
Only Danish at the moment.
2014-09-05Docx reader: Use polyglot header list.Jesse Rosenthal1-7/+7
We're just keeping a list of header formats that different languages use as their default styles. At the moment, we have English, German, Danish, and French. We can continue to add to this. This is simpler than parsing the styles file, and perhaps less error-prone, since there seems to be some variations, even within a language, of how a style file will define headers.
2014-09-05Docx Reader: Start list of polyglot section headers.Jesse Rosenthal1-0/+7
2014-09-04Org reader: Update TestsJesse Rosenthal1-1/+5
Test for markup after blank line.
2014-09-04Org reader: Added state changing blanklines.Jesse Rosenthal1-1/+8
This allows us to emphasize at the beginning of a new paragraph (or, in general, after blank lines).
2014-09-04Docx Reader: Add tests for numbered headers.Jesse Rosenthal3-0/+5
2014-09-04Docx reader: Rewrite rewriteLink to work with new headers.Jesse Rosenthal1-9/+4
There could be new top-level headers after making lists, so we have to rewrite links after that.
2014-09-04Docx reader: Single-item headers in ordered lists are headers.Jesse Rosenthal1-4/+6
When users number their headers, Word understands that as a single item enumerated list. We make the assumption that such a list is, in fact, a header.
2014-09-02Docx reader: Modify mediabag test accordingly.Jesse Rosenthal1-2/+1
2014-09-02Docx reader: Fix window path for image lookup.Jesse Rosenthal1-1/+1
Don't use os-sensitive "combine", since we always want the paths in our zip-archive to use forward-slashes.
2014-09-01EPUB writer: Don't include nav node in spine unless --toc was requested.John MacFarlane1-4/+2
Previously we included it in the spine with `linear="no"`, leading to odd results in some readers. Closes #1593.
2014-09-01LaTeX writer: Avoid using reserved characters as \lstinline delimiters.John MacFarlane1-1/+3
Closes #1595.
2014-09-01EPUB writer: Fixed typo.John MacFarlane1-1/+1
2014-08-31Merge pull request #1594 from jkr/itemFixJohn MacFarlane2-2/+19
Item fix
2014-08-31EPUB writer: Extract title even from structured title.John MacFarlane1-7/+21
Added docTitle'.
2014-08-31Use real copyright symbol in README epub metadata example.John MacFarlane1-1/+1
2014-08-31LaTeX writer: Add tests for header-in-item.Jesse Rosenthal1-0/+7
2014-08-31LaTeX writer: Put `~` before header in item text.Jesse Rosenthal1-2/+12
Because of the built-in line skip, LaTeX can't handle a section header as the first element in a list item. (To be precise, it can't handle it if the list immediately follows a section header, but the instance is rare enough that we can afford to be a bit more general). This puts a non-breaking space before the header to solve this problem. We won't see this space, since the header skips a line before printing anyway. The output is ugly in LaTeX and this structure seems like it should probably be avoided. But it is valid HTML and native pandoc, so we should have some sort of typesettable representation in LaTeX.
2014-08-31Markdown reader: better handling of paragraph in div.John MacFarlane14-13/+32
Previously text that ended a div would be parsed as Plain unless there was a blank line before the closing div tag. Test case: <div class="first"> This is a paragraph. This is another paragraph. </div> Closes #1591.
2014-08-31README: escape (c) in epub metadata exampleJohn MacFarlane1-1/+1
2014-08-31EPUB writer: Don't use opf:title-type for epub2.John MacFarlane1-2/+2
It is not supported and epubcheck complains.
2014-08-31EPUB, EPUB3 templates: Handle structured metadata on titlepage.John MacFarlane1-6/+27
Previously we just expected 'title', 'subtitle', 'author', 'date'. Now we still support those, but also support the format recommended for epub metadata in the pandoc README: --- title: - type: main text: My Book - type: subtitle text: An investigation of metadata creator: - role: author text: John Smith - role: editor text: Sarah Jones identifier: - scheme: DOI text: doi:10.234234.234/33 publisher: My Press rights: (c) 2007 John Smith, CC BY-NC ...
2014-08-31Use protocol-relative URL for mathjax.John MacFarlane1-1/+1
See jgm/pandoc-templates#67.
2014-08-31Shared: Moved import of toChunks outside of conditional.John MacFarlane1-1/+1
Closes #1590.
2014-08-30Makefile: simplified 'make dist'.John MacFarlane1-6/+3
Note that this may not work with older cabal versions.
2014-08-30DokuWiki writer: Make tables prettier by aligning columns.John MacFarlane4-66/+50
Also cleaned up crufty code and added tests.