summaryrefslogtreecommitdiff
path: root/pandoc.hs
Commit message (Collapse)AuthorAge
* Add TEI Writer.csforste2016-01-19
|
* Improved default template lookup for custom lua scripts.John MacFarlane2016-01-06
| | | | | | | | | | | | | Previously, if you tried to do `pandoc -s -t /path/to/lua/script.lua`, pandoc would look for the template in `~/.pandoc/templates/default./path/to/lua/script.lua`. With this change it will look in the more reasonable `~/.pandoc/templates/default.script.lua`. This makes it possible to store default templates for custom writers. Closes #2625.
* Revert "Make file globbing work on windows."John MacFarlane2016-01-06
| | | | This reverts commit 363ecfebc32c6fe15d81634422e8607847f588fb.
* Make file globbing work on windows.John MacFarlane2016-01-06
| | | | | Windows cmd doesn't expand wildcards; the application has to do this. So on windows we use 'glob' to expand.
* Added preliminary support for PDF creation via wkhtmltopdf.John MacFarlane2015-12-21
| | | | | | | | To use this: pandoc -t html5 -o result.pdf (and add `--mathjax` if you have math.)
* Factored out convertWithOptsJohn MacFarlane2015-12-14
|
* Removed "compatibility mode" when called as hsmarkdown.John MacFarlane2015-12-14
|
* Removed deprecated --strict option entirely.John MacFarlane2015-12-14
|
* Removed deprecated options `--offline` and `--html5`.John MacFarlane2015-12-11
| | | | These have been deprecated forever.
* Implemented SoftBreak and new `--wrap` option.John MacFarlane2015-12-11
| | | | | | | | | | | | | | | | Added threefold wrapping option. * Command line option: deprecated `--no-wrap`, added `--wrap=[auto|none|preserve]` * Added WrapOption, exported from Text.Pandoc.Options * Changed type of writerWrapText in WriterOptions from Bool to WrapOption. * Modified Text.Pandoc.Shared functions for SoftBreak. * Supported SoftBreak in writers. * Updated tests. * Updated README. Closes #1701.
* hlint refactorings.John MacFarlane2015-11-22
|
* Merge branch 'new-image-attributes' of https://github.com/mb21/pandoc into ↵John MacFarlane2015-11-19
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | mb21-new-image-attributes * Bumped version to 1.16. * Added Attr field to Link and Image. * Added `common_link_attributes` extension. * Updated readers for link attributes. * Updated writers for link attributes. * Updated tests * Updated stack.yaml to build against unreleased versions of pandoc-types and texmath. * Fixed various compiler warnings. Closes #261. TODO: * Relative (percentage) image widths in docx writer. * ODT/OpenDocument writer (untested, same issue about percentage widths). * Update pandoc-citeproc.
| * Text.Pandoc.Options: modifications for image attributes.John MacFarlane2015-07-27
| | | | | | | | | | | | | | | | | | | | | | | | * Added `Ext_common_link_attributes` constructor to `Extension` (for link and image attributes). * Added this to `pandocExtensions` and `phpMarkdownExtraExtensions`. * Added `writerDpi` to `WriterOptions`. * pandoc.hs: Added `--dpi` option. * Updated README for `--dpi` and `common_link_attributes` extension. Patch due to mb21, with some modifications: `writerDpi` is now an `Int` rather than a `Double`.
* | Rationalized behavior of --no-tex-ligatures and --smart.John MacFarlane2015-11-19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change makes `--no-tex-ligatures` affect the LaTeX reader as well as the LaTeX and ConTeXt writers. If it is used, the LaTeX reader will parse characters `` ` ``, `'`, and `-` literally, rather than parsing ligatures for quotation marks and dashes. And the LaTeX writer will print unicode quotation mark and dash characters literally, rather than converting them to the standard ASCII ligatures. Note that `--smart` has no affect on the LaTeX reader. `--smart` is still the default for all input formats when LaTeX or ConTeXt is the output format, *unless* `--no-tex-ligatures` is used. Some examples to illustrate the logic: ``` % echo "'hi'" | pandoc -t latex `hi' % echo "'hi'" | pandoc -t latex --no-tex-ligatures 'hi' % echo "'hi'" | pandoc -t latex --no-tex-ligatures --smart ‘hi’ % echo "'hi'" | pandoc -f latex --no-tex-ligatures <p>'hi'</p> % echo "'hi'" | pandoc -f latex <p>’hi’</p> ``` Closes #2541.
* | Allow .adoc file extension for AsciiDoc.Andrew Dunning2015-11-16
| | | | | | `.adoc` is the extension recommended at <http://asciidoctor.org/docs/asciidoc-writers-guide/>.
* | Improved implicit pandoc-citeproc inclusion.John MacFarlane2015-11-16
| | | | | | | | | | | | | | | | | | | | The filter pandoc-citeproc is automatically used when `--bibliography` is specified on the command line, unless `--natbib` or `--biblatex` is used. However, previously this only worked if `--bibliography` was spelled out in full, and not if `--biblio` was used. This patch fixes that problem.
* | Revert "Use -XNoImplicitPrelude and 'import Prelude' explicitly."John MacFarlane2015-11-09
| | | | | | | | This reverts commit c423dbb5a34c2d1195020e0f0ca3aae883d0749b.
* | Use -XNoImplicitPrelude and 'import Prelude' explicitly.John MacFarlane2015-11-08
| | | | | | | | | | | | | | This is needed for ghci to work with pandoc, given that we now use a custom prelude. Closes #2503.
* | Allow use of ConTeXt to generate PDFs.John MacFarlane2015-10-20
| | | | | | | | | | | | | | | | pandoc my.md -t context -o my.pdf will now create a PDF using ConTeXt rather than LaTeX. Closes #2463.
* | Use custom Prelude to avoid compiler warnings.John MacFarlane2015-10-14
| | | | | | | | | | | | | | | | | | | | | | | | | | - The (non-exported) prelude is in prelude/Prelude.hs. - It exports Monoid and Applicative, like base 4.8 prelude, but works with older base versions. - It exports (<>) for mappend. - It hides 'catch' on older base versions. This allows us to remove many imports of Data.Monoid and Control.Applicative, and remove Text.Pandoc.Compat.Monoid. It should allow us to use -Wall again for ghc 7.10.
* | Removed unneeded import.John MacFarlane2015-10-10
| |
* | Move the variable pandocVersion from `src/Text/Pandoc.hs` toAlex Vong2015-10-01
| | | | | | | | | | | | | | | | | | | | | | `src/Text/Pandoc/Shared.hs`, so that all Writers can access this variable without importing `src/Text/Pandoc.hs`, preventing circular import. * pandoc.hs: Import pandocVersion from `Text.Pandoc.Shared`. * src/Text/Pandoc.hs: Remove the definition of pandocVersion and relevant import. * src/Text/Pandoc/Shared.hs: Add the definition of pandocVersion and relevant import.
* | Update KaTeX JS and CSS versions.Emily Eisenberg2015-09-26
| | | | | | Update the default KaTeX JS/CSS links to the current version. KaTeX v0.5.1 has far more functions and symbols than v0.1.0, so it seems like a better default. I think technically this might break compatibility because we released a breaking change due to the greediness of the `\color` function, but this probably has very little impact.
* | Added `--bash-completion` option.John MacFarlane2015-08-13
|/ | | | | | | | This generates a bash completion script. To use: eval "$(pandoc --bash-completion)"
* Added odt readerMarLinn2015-07-23
| | | | | | | | | | | | | | | | | | | | | Fully implemented features: * Paragraphs * Headers * Basic styling * Unordered lists * Ordered lists * External Links * Internal Links * Footnotes, Endnotes * Blockquotes Partly implemented features: * Citations Very basic, but pandoc can't do much more * Tables No headers, no sizing, limited styling
* Better error messages for filters:John MacFarlane2015-07-02
| | | | | | - Inform user if filter requires an interpreter that isn't found in the path. - Inform user if filter returns an error status.
* New method for building man pages.John MacFarlane2015-07-01
| | | | | | | | | | | | | | | | | | + 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`.
* New method for producing man pages.John MacFarlane2015-06-28
| | | | | | | | | | | | | | | | | | | | | 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.
* replace old url with pandoc.orgPablo Rodríguez2015-06-09
|
* Amends last commit: don't use https for google charts.John MacFarlane2015-06-09
| | | | They don't have a certificate.
* Use https: for mathjax/katex/google-charts CDNs.John MacFarlane2015-06-09
| | | | Closes #1920.
* Only make implicit `-F pandoc-citeproc` when `--bibliography` option used.John MacFarlane2015-05-11
| | | | | | Not when `bibliography` field in metadata is specified. Closes #1849.
* Removed references to `biblio-files` in pandoc.hs and README.John MacFarlane2015-05-11
|
* Revert "EPUB writer: stylesheet changes. Closes #2040."John MacFarlane2015-05-09
| | | | | | | | | | 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`.
* EPUB writer: stylesheet changes. Closes #2040.John MacFarlane2015-05-08
| | | | | | | | | | | | * 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.
* Updated copyright notices to -2015. Closes #2111.John MacFarlane2015-04-26
|
* Merge branch 'errortype' of https://github.com/mpickering/pandoc into ↵John MacFarlane2015-03-28
|\ | | | | | | | | | | | | | | | | | | | | 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
| * Update executable fileMatthew Pickering2015-02-18
| |
* | Merge pull request #1976 from wcaleb/json-help-messageJohn MacFarlane2015-03-07
|\ \ | | | | | | Clarify JSON input and output in usage message
| * | Clarify JSON input and output in usage messageCaleb McDaniel2015-02-27
| |/
* / Fix issue #969, #1779 by providing --latex-engine-optSumit Sahrawat2015-03-04
|/
* Better warning when trying to read multiple binary filesMatthew Pickering2015-01-19
|
* Added `--verbose` flag for debugging output in PDF production.John MacFarlane2014-12-26
| | | | | Closes #1840. Closes #1653.
* Recognize .icml extension and use icml writer. See #1707.John MacFarlane2014-10-20
|
* Give better error messages when someone tries to convert pdf, doc, odt.John MacFarlane2014-10-19
| | | | Closes #1683.
* Add support for KaTeX HTML mathmpickering2014-09-25
| | | | Closes #1626
* Use protocol-relative URL for mathjax.John MacFarlane2014-08-31
| | | | See jgm/pandoc-templates#67.
* Removed extra blank line after version.John MacFarlane2014-08-30
|
* Removed check for PATH variable in running filters.John MacFarlane2014-08-17
| | | | | | | | | | 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.
* pandoc: Don't strip path off of sourceURL.John MacFarlane2014-08-06
| | | | | | We need this information for relative URLs! This should resolve the continuing problem noted in #750.