aboutsummaryrefslogtreecommitdiff
path: root/pandoc.hs
AgeCommit message (Collapse)AuthorFilesLines
2015-07-02Better error messages for filters:John MacFarlane1-2/+8
- Inform user if filter requires an interpreter that isn't found in the path. - Inform user if filter returns an error status.
2015-07-01New method for building man pages.John MacFarlane1-15/+0
+ Removed `--man1`, `--man5` options (breaking change). + Removed `Text.Pandoc.ManPages` module (breaking API change). + Version bump to 1.15 because of the breaking changes, even though they involve features that have only been in pandoc for a day. + Makefile target for `man/man1/pandoc.1`. This uses pandoc to create the man page from README using a custom template and filters. + Added `man/` directory with template and filters needed to build man page. + We no longer have two man pages: pandoc.1 and pandoc_markdown.5. Now there is just pandoc.1, which has all the content from README. This change was needed because of the extensive cross-references between parts of the README. + Removed old `data/pandoc.1.template` and `data/pandoc_markdown.5.template`.
2015-06-28New method for producing man pages.John MacFarlane1-0/+15
This change adds `--man1` and `--man5` options to pandoc, so pandoc can generate its own man pages. It removes the old overly complex method of building a separate executable (but not installing it) just to create the man pages. The man pages are no longer automatically created in the build process. The man/ directory has been removed. The man page templates have been moved to data/. New unexported module: Text.Pandoc.ManPages. Text.Pandoc.Data now exports readmeFile, and `readDataFile` knows how to find README. Closes #2190.
2015-06-09replace old url with pandoc.orgPablo Rodríguez1-1/+1
2015-06-09Amends last commit: don't use https for google charts.John MacFarlane1-1/+1
They don't have a certificate.
2015-06-09Use https: for mathjax/katex/google-charts CDNs.John MacFarlane1-5/+5
Closes #1920.
2015-05-11Only make implicit `-F pandoc-citeproc` when `--bibliography` option used.John MacFarlane1-2/+2
Not when `bibliography` field in metadata is specified. Closes #1849.
2015-05-11Removed references to `biblio-files` in pandoc.hs and README.John MacFarlane1-3/+0
2015-05-09Revert "EPUB writer: stylesheet changes. Closes #2040."John MacFarlane1-4/+2
This reverts commit 1c2951dfd9ee72e5270cb974a06098adb9178f89. See #2040. The semantics was too squishy. `--css` takes a URL, but for EPUB we need files that we can read. I prefer keeping the old system for now, with `--epub-stylesheet`.
2015-05-08EPUB writer: stylesheet changes. Closes #2040.John MacFarlane1-2/+4
* Allow `--css` to be used to specify stylesheets. * Deprecated `--epub-stylesheet` and made it a synoynym of `--css`. * If a code block with class "css" is given as contents of the `stylesheet` metadata field, use its literal code as contents of the epub stylesheet. Otherwise, treat it as a filename and read the file. * Note: `--css` and `stylesheet` in metadata are not compatible. `stylesheet` takes precedence.
2015-04-26Updated copyright notices to -2015. Closes #2111.John MacFarlane1-3/+3
2015-03-28Merge branch 'errortype' of https://github.com/mpickering/pandoc into ↵John MacFarlane1-10/+12
mpickering-errortype Conflicts: benchmark/benchmark-pandoc.hs src/Text/Pandoc/Readers/Markdown.hs src/Text/Pandoc/Readers/Org.hs src/Text/Pandoc/Readers/RST.hs tests/Tests/Readers/LaTeX.hs
2015-03-07Merge pull request #1976 from wcaleb/json-help-messageJohn MacFarlane1-5/+7
Clarify JSON input and output in usage message
2015-03-04Fix issue #969, #1779 by providing --latex-engine-optSumit Sahrawat1-1/+13
2015-02-27Clarify JSON input and output in usage messageCaleb McDaniel1-5/+7
2015-02-18Update executable fileMatthew Pickering1-10/+12
2015-01-19Better warning when trying to read multiple binary filesMatthew Pickering1-1/+2
2014-12-26Added `--verbose` flag for debugging output in PDF production.John MacFarlane1-1/+10
Closes #1840. Closes #1653.
2014-10-20Recognize .icml extension and use icml writer. See #1707.John MacFarlane1-0/+1
2014-10-19Give better error messages when someone tries to convert pdf, doc, odt.John MacFarlane1-1/+12
Closes #1683.
2014-09-25Add support for KaTeX HTML mathmpickering1-3/+32
Closes #1626
2014-08-31Use protocol-relative URL for mathjax.John MacFarlane1-1/+1
See jgm/pandoc-templates#67.
2014-08-30Removed extra blank line after version.John MacFarlane1-1/+1
2014-08-17Removed check for PATH variable in running filters.John MacFarlane1-6/+9
This cause problems on Windows 8, where the variable is called `Path`. Instead, simply trap the exception that will be raised by `findExecutable` if path is not set. This should fix #1542.
2014-08-06pandoc: Don't strip path off of sourceURL.John MacFarlane1-2/+1
We need this information for relative URLs! This should resolve the continuing problem noted in #750.
2014-08-04Merge pull request #1486 from Aelve/minorJohn MacFarlane1-37/+52
Very minor cleanup and readability changes
2014-08-04Slightly fix readability of main program file.Artyom Kazak1-37/+52
2014-08-04Merge branch 'epubend' of https://github.com/mpickering/pandoc into ↵John MacFarlane1-0/+1
mpickering-epubend Conflicts: pandoc.cabal
2014-08-02Text.Pandoc.SelfContained changes.John MacFarlane1-3/+2
* mkSelfContained now takes just two arguments, WriterOptions and the string. * It no longer looks in data files. This only made sense when we had copies of slidy and S5 code there. * Shared.fetchItem' is used instead of the nearly duplicate getItem.
2014-07-31pandoc.hs: More code reorganization.John MacFarlane1-72/+80
2014-07-31EPUB Reader: Integrated into programMatthew Pickering1-0/+1
2014-07-31pandoc.hs: Rewrote some of the logic for clarity.John MacFarlane1-25/+31
2014-07-31New module, Text.Pandoc.MediaBag.John MacFarlane1-3/+4
Moved `MediaBag` definition and functions from Shared: `lookupMedia`, `mediaDirectory`, `insertMedia`, `extractMediaBag`. Removed `emptyMediaBag`; use `mempty` instead, since `MediaBag` is a Monoid.
2014-07-31Made MediaBag a newtype, and added mime type information to media.John MacFarlane1-16/+10
Shared now exports functions for interacting with a MediaBag: - `emptyMediaBag` - `lookuMedia` - `insertMedia` - `mediaDirectory` - `extractMediaBag`
2014-07-30getT2TMeta: Take list of source files instead of single.John MacFarlane1-3/+1
Get latest modification time.
2014-07-30Allow --self-contained to get content from MediaBag.John MacFarlane1-1/+3
Added a parameter to makeSelfContained (API change).
2014-07-30PDF, Docx, EPUB, and ODT writers now automatically use MediaBag.John MacFarlane1-8/+10
The MediaBag is thread through from the reader, with no need to extract to files.
2014-07-30pandoc: Thread media bag into WriterOptions.John MacFarlane1-12/+14
This will make it available to docx and epub readers, etc., so we don't have to extract media to a directory when going from docx -> epub.
2014-07-30Added --extract-media option.John MacFarlane1-16/+47
This has been documented to affect the epub and docx readers, so we should either add the epub reader before the next release or change the documentation.
2014-07-30Make toplevel pandoc bin make use of mediabag.Jesse Rosenthal1-1/+2
Note that at the moment the mediabag is discarded. This will have to be changed to make use of it.
2014-07-27Txt2Tags Reader: Added recognition of macrosMatthew Pickering1-6/+14
2014-07-27Txt2Tags Reader: Integrated into pandocMatthew Pickering1-1/+2
2014-07-01Merge branch 'master' of git://github.com/jgm/pandoc into dokuwikiClare Macrae1-2/+6
2014-06-30Filters: respect shebang if filter is executable.John MacFarlane1-2/+6
Closes #1389.
2014-06-29Merge remote-tracking branch 'jgm/master' into dokuwikiClare Macrae1-124/+231
2014-06-27Fixed `--filter` so it doesn't search PATH for a filter with a path.John MacFarlane1-1/+3
This fixed a bug wherein `--filter ./caps.py` would run `caps.py` from the system path, even if there was a `caps.py` in the working directory.
2014-06-25Add track changes option to command line.Jesse Rosenthal1-0/+17
2014-06-21Fixed compiler warnings.John MacFarlane1-2/+0
2014-06-20Filters: don't print misleading error message.John MacFarlane1-4/+1
Previously pandoc would say that a filter was not found, even in a case where the filter had a syntax error.
2014-06-16Integrated the docx reader into the main pandoc program.mpickering1-3/+10
Changes also include generalising the types of reader allowed. The mechanism now mimics the more general output mechanism.