aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2015-09-24Added proper support for DocBook 'xref' elementsFrerich Raabe5-2/+120
'xref' is used to create cross references to other parts of the document. It is an empty element - the cross reference text depends on various attributes. Quoting 'DocBook: The Definitive Guide': 1. If the endterm attribute is specified on xref, the content of the element pointed to by endterm will be used as the text of the cross-reference. 2. Otherwise, if the object pointed to has a specified XRefLabel, the content of that attribute will be used as the cross-reference text.
2015-09-23Allow syb 0.6.John MacFarlane1-3/+3
2015-09-23Pass the parsed DocBook content along the state of readDocBookFrerich Raabe1-2/+4
Having access to the entire document will be needed when handling elements which refer to other elements. This is needed for e.g. <xref> or <link>, both of which reference other elements (by the 'id' attribute) for the label text. I suppose that in practice, the [Content] returned by parseXML always only contains one 'Elem' value -- the document element. However, I'm not totally sure about it, so let's just pass all the Content along.
2015-09-23Minor refactoring to readDocBookFrerich Raabe1-2/+2
I plan to use the parsed and normalized XML tree read in readDocBook in other places - prepare that commit by factoring this code out into a separate, shared, definition.
2015-09-23LaTeX reader: support longtable.John MacFarlane1-0/+2
Closes #2411.
2015-09-22Merge pull request #2369 from mb21/language-variablesJohn MacFarlane3-16/+192
`lang` variable is now in BCP47 format
2015-09-20Allow aeson 0.10.John MacFarlane2-2/+3
2015-09-20Merge pull request #2406 from tarleb/org-verse-fixJohn MacFarlane2-1/+10
Make sure verse blocks can contain empty lines
2015-09-19Merge pull request #2405 from lierdakil/rest-normalize-amendJohn MacFarlane2-1/+32
[RST Writer] Don't normalize heading levels below input minimum
2015-09-19Make sure verse blocks can contain empty linesAlbert Krewinkel2-1/+10
The previous verse parsing code made the faulty assumption that empty strings are valid (and empty) inlines. This isn't the case, so lines are changed to contain at least a newline. It would generally be nicer and faster to keep the newlines while splitting the string. However, this would require more code, which seems unjustified for a simple (and fairly rare) block as *verse*. This fixes #2402.
2015-09-19[RST Writer] Don't normalize heading levels below input minimumNikolay Yakimov2-1/+32
2015-09-17Markdown writer: in TOC, add links to headers.John MacFarlane1-2/+5
Closes #829.
2015-09-15sample.lua - define CaptionedImage, add newline at end.John MacFarlane1-1/+7
Cloess #2393.
2015-09-09Tests: docx writer tests now use "../data" for data directory.John MacFarlane1-1/+4
This allows tests to be run without installing first.
2015-09-09Use user data directory for reference docx archive.John MacFarlane1-1/+1
This allows the test suite to work without installing pandoc first. It also brings the docx writer in line with the odt writer.
2015-09-09stack.yaml - bump to latest LTS Stackage.John MacFarlane1-1/+1
2015-08-25Removed obsolete reference to default.csl.John MacFarlane1-2/+2
Closes #2372. @cinaeco as the pandoc-citeproc man page describes, the current behavior if no style is specified is to look in `~/.csl/chicago-author-date.csl`, and if nothing is found there, to use a default version of chicago-author-date.csl. You may want to open a separate issue on jgm/pandoc-citeproc suggesting the use of `default.csl` rather than `chicago-author-date.csl`. I agree that this would make sense.
2015-08-20`lang` variable is now in BCP47 formatmb213-16/+192
strings are converted for LaTeX and ConTeXt output, closes #1614
2015-08-17Merge pull request #2364 from gbataille/bugDocJohn MacFarlane1-6/+6
[BUG] Haddock : * and ^ to be escaped in docs
2015-08-17[BUG] Haddock : * and ^ to be escaped in docsGrégory Bataille1-6/+6
2015-08-16stack-yaml: use lts 3.1 resolver.John MacFarlane1-1/+1
2015-08-16Merge pull request #2352 from ousia/masterJohn MacFarlane1-1/+4
added selectors for nested emphasis (epub.css)
2015-08-15Use cabal-install-head in travis for ghc 7.10.1.John MacFarlane1-2/+2
See https://www.reddit.com/r/haskell/comments/3f4bgr/the_version_of_cabal_being_used_has_changed/ Maybe this will fix the Cabal version mismatch problem?
2015-08-15Travis: removed diagnostics, add cabal path to PATH, back to ghc 7.10.1.John MacFarlane1-7/+3
ghc 7.10.2 isn't whitelisted yet. https://github.com/travis-ci/travis-ci/issues/4478
2015-08-15Added some travis diagnostics.John MacFarlane1-0/+4
2015-08-15Travis: build with ghc 7.10.2 instead of 7.10.1.John MacFarlane1-2/+2
2015-08-15Use real jpg (not empty) for docx tests to avoid warning.John MacFarlane3-0/+0
2015-08-15RST reader: better handling of indirect roles.John MacFarlane3-12/+14
Previously the parser failed on this kind of case .. role:: indirect(code) .. role:: py(indirect) :language: python :py:`hi` Now it currectly recognizes `:py:` as a code role. The previous test for this didn't work, because the name of the indirect role was the same as the language defined its parent, os it didn't really test for this behavior. Updated test.
2015-08-15Merge pull request #2360 from jg/issue-2354John MacFarlane3-22/+56
Org reader: add auto identifiers if not present on headers
2015-08-15Added note to CONTRIBUTING.md about ghc versions and travis.John MacFarlane1-0/+7
2015-08-15Org reader: add auto identifiers if not present on headersJuliusz Gonera3-22/+56
Refs #2354 This should also fix the table of contents (--toc) when generating a html file from org input
2015-08-13RST writer: ensure that `\ ` is inserted when needed...John MacFarlane1-0/+2
...before Cite and Span elements that begin with a "complex" element. Closes jgm/pandoc-citeproc#157.
2015-08-13Updated man page.John MacFarlane1-16/+54
2015-08-13Added `--bash-completion` option.John MacFarlane4-1/+89
This generates a bash completion script. To use: eval "$(pandoc --bash-completion)"
2015-08-13Added stack install instructions to INSTALL.John MacFarlane1-2/+20
2015-08-13Added a stack.yaml.John MacFarlane1-0/+11
2015-08-12RST writer: Don't insert `\ ` when complex expression in matched pairs.John MacFarlane1-3/+4
E.g. `` [:sup:`3`] `` is okay; you don't need `` [:sup:`3`\ ] ``.
2015-08-11LaTeX template: reverted change in abstract position.John MacFarlane1-6/+5
2015-08-11Revert "LaTeX template: move abstract to before `\maketitle`."John MacFarlane1-5/+8
This reverts commit aa08b4cd677b975cf63c451a3414df447e31b55c.
2015-08-10EPUB TOC: replace literal "<br/>" with space.John MacFarlane1-0/+1
Closes #2105.
2015-08-10Update version to 1.15.1.John MacFarlane1-1/+1
2015-08-10EPUB reader: stop mangling external URLs.John MacFarlane3-15/+8
Closes #2284. Note the changes to the test suite. In each case, a mangled external link has been fixed, so these are all positive.
2015-08-10Allow latest criterion version.John MacFarlane1-1/+1
2015-08-10Docx writer: Moved invalid character stripping to `formattedString`.John MacFarlane1-4/+4
This avoids an inefficient generic traversal. Updates f3aa03e. Closes #2356.
2015-08-09LaTeX template: move abstract to before `\maketitle`.John MacFarlane1-8/+5
See http://tex.stackexchange.com/questions/139469/to-have-abstract-in-the-docu ment-class-revtex
2015-08-08Text.Pandoc: disable auto_identifiers for epub.John MacFarlane1-2/+1
The epub writer inserts its own auto identifiers; this is more complex due to splitting into "chapter" files.
2015-08-08Updated html reader for new automatic header attributes.John MacFarlane1-33/+33
2015-08-08MediaWiki reader: handle unquoted table attributes.John MacFarlane2-3/+3
Closes #2355.
2015-08-08Revert "Travis: call test program directly rather than by cabal."John MacFarlane1-4/+1
This reverts commit 8bcaea5bd18c4dc26319d9ee9cb5c39de0ba2ed3.
2015-08-08Travis: call test program directly rather than by cabal.John MacFarlane1-1/+4