aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2013-08-14Small code cleanup.John MacFarlane1-1/+1
2013-08-14Added scripts/tikz.py.John MacFarlane1-0/+67
2013-08-14Minor code reformatting in script examples.John MacFarlane5-5/+10
2013-08-14Added scripts/abc.py.John MacFarlane1-0/+50
2013-08-14Print stderr output of filters to stderr.John MacFarlane1-3/+3
2013-08-14Improved graphviz.py.John MacFarlane1-4/+3
It won't regenerate images that have already been built.
2013-08-14Added graphviz.py example script.John MacFarlane1-0/+47
2013-08-14Commented python modules/sample scripts.John MacFarlane5-7/+59
2013-08-13Added module for writing python scripts, with several examples.John MacFarlane6-6/+110
See scripts subdirectory.
2013-08-13Removed `--print-sample-lua-writer`, added `--print-default-data-file`.John MacFarlane2-13/+13
Closes #943.
2013-08-12Text.Pandoc.Compat.Monoid: Small improvements to the (<>) definition.John MacFarlane1-0/+4
2013-08-11reference.odt: Change generator in meta.xml to Pandoc.John MacFarlane1-0/+0
2013-08-11ODT/OpenDocument writer: Minor changes for ODF 1.2 conformance.John MacFarlane5-16/+22
See #939. We leave the nonconforming contextual-spacing attribute, which is provided by LibreOffice itself and seems to be supported.
2013-08-11PDF: Add suggestion to use --latex-engine=xelatex on encoding error.John MacFarlane1-2/+8
2013-08-11Options: Changed `writerSourceDir` to `writerSourceURL` (now a Maybe).John MacFarlane7-41/+34
Previously we used to store the directory of the first input file, even if it was local, and used this as a base directory for finding images in ODT, EPUB, Docx, and PDF. This has been confusing to many users. It seems better to look for images relative to the current working directory, even if the first file argument is in another directory. writerSourceURL is set to 'Just url' when the first command-line argument is an absolute URL. (So, relative links will be resolved in relation to the first page.) Otherwise, 'Nothing'. The ODT, EPUB, Docx, and PDF writers have been modified accordingly. Note that this change may break some existing workflows. If you have been assuming that relative links will be interpreted relative to the directory of the first file argument, you'll need to make that the current directory before running pandoc. Closes #942.
2013-08-10Added Tests.Walk.John MacFarlane3-0/+50
This verifies that walk and query match the generic traversals.
2013-08-10Use walk, walkM in place of bottomUp, bottomUpM when possible.John MacFarlane11-27/+31
They are significantly faster.
2013-08-10Use query instead of queryWith.John MacFarlane4-9/+36
2013-08-10Updated tests for new Format.John MacFarlane7-65/+65
2013-08-10Adjustments for new Format newtype.John MacFarlane19-76/+106
2013-08-08Preliminary support for new Div and Span elements in writers.John MacFarlane18-0/+64
Currently these are "transparent" containers, except in HTML, where they produce div and span elements with attributes.
2013-08-08Pass writename as argument to filters.John MacFarlane3-11/+13
This way filters can figure out what the target format is and react appropriately. Example: #!/usr/bin/env runghc import Text.Pandoc.JSON import Data.Char main = toJSONFilter cap where cap (Just "html") (Str xs) = Str $ map toUpper xs cap _ x = x This capitalizes text only for html output.
2013-08-08Use pipeProcess in Text.Pandoc.PDF.John MacFarlane1-36/+3
2013-08-08Added Text.Pandoc.Process (pipeProcess).John MacFarlane2-1/+107
A souped up version of readProcessWithErrorCode that uses lazy bytestrings and allows setting environment.
2013-08-08Improved INSTALL instructions.John MacFarlane1-23/+43
2013-08-08Revert "Revert "Added `--filter` option.""John MacFarlane3-4/+30
This reverts commit 2e5edbb27837372f658b1abbe05371be57415847.
2013-08-08Revert "Textile reader: Removed raw LaTeX parsing."John MacFarlane1-0/+16
This reverts commit bb61624bb2bba416e1992ecdf101f9660a3edcae. Apparently someone put this there for a reason, since it's in the test suite.
2013-08-08Added Text.Pandoc.Compat.TagSoupEntity.John MacFarlane6-5/+21
This allows pandoc to compile with tagsoup 0.13.x. Thanks to Dirk Ullrich for the patch.
2013-08-08Added Text.Pandoc.Compat.Monoid.John MacFarlane4-2/+19
This allows pandoc to compile with base < 4.5, where Data.Monoid doesn't export `<>`. Thanks to Dirk Ullirch for the patch.
2013-08-07Textile reader: Removed raw LaTeX parsing.John MacFarlane1-16/+0
This isn't part of Textile.
2013-08-07Allow YAML title blocks to contain only comments.John MacFarlane1-1/+4
2013-08-06Added support for MetaBool.John MacFarlane3-1/+4
2013-08-06Updated changelogJohn MacFarlane1-0/+1
2013-08-06Beamer template: Added fonttheme variable.John MacFarlane2-8/+11
2013-08-06Biblio: Capitalize citation note only if it has a prefix.John MacFarlane2-7/+11
So, author names or titles that aren't capitalized will stay uncapitalized.
2013-08-05Require latest version of texmath.John MacFarlane1-1/+1
Closes #935.
2013-08-05Updated changelog.John MacFarlane1-49/+149
2013-08-04Remove CPP from default-extensions; add pragmas to modules as needed.John MacFarlane5-10/+4
2013-08-03Removed comment that chokes recent cpp.John MacFarlane1-1/+0
Closes #933.
2013-08-03MediaWiki writer: Use native mediawiki tables instead of HTML.John MacFarlane2-235/+164
Closes #720.
2013-08-03Text.Pandoc: Don't reexport ToJSONFilter.John MacFarlane1-2/+2
It's better just to import this from Text.Pandoc.JSON. That way, compiled filters will be smaller in size.
2013-08-03pandoc.cabal: Removed support for ghc version < 7.2.John MacFarlane1-40/+6
There is no point to supporting them, since pandoc-types requires at least ghc 7.2 for GHC generics.
2013-08-03Text.Pandoc.JSON: Use To/FromJSON instances from pandoc-types.John MacFarlane1-62/+12
* These use GHC generics rather than syb, and are faster. * toJsonFilter is now a deprecated synonym of toJSONFilter from Text.Pandoc.JSON. * The deprecated jsonFilter function has been removed.
2013-08-02Biblio: Don't interfere with Notes that aren't citation notes.John MacFarlane1-2/+3
Closes #898: notes not generated from citations were being adjusted (first letter capitalized, for example, against author's intentions).
2013-08-02Biblio: Override citeproc-hs's endWithPunct.John MacFarlane1-1/+14
The new version correctly sees a sentence ending in '.)' as ending with punctuation. This fixes a bug which led such sentences to receive an extra period at the end: '.).'. Thanks to Steve Petersen for reporting.
2013-07-30Fixed compilation with http-conduit flag False.John MacFarlane1-2/+2
2013-07-29Markdown atx headers: Allow `.` or `)` after `#` if no `fancy_lists`.John MacFarlane1-1/+2
2013-07-29Document that `fancy_lists` turns on `#` as list marker.John MacFarlane1-0/+6
2013-07-26Beamer: add allowframebreaks to slide if set in header classes.John MacFarlane2-8/+21
It's recommended that your bibliography slide have this attribute: # References {.allowframebreaks} This causes multiple slides to be created if necessary, depending on the length of the bibliography.
2013-07-25LaTeX writer: Change `\` to `/` in paths.John MacFarlane1-2/+4
`/` works even on Windows in LaTeX. `\` will cause major problems if unescaped.