Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2017-10-05 | pandoc.lua: throw better error when pipe command fails | Albert Krewinkel | 1 | -3/+2 | |
A table containing the error code, command, and command output is thrown instead of just a string error message. | |||||
2017-10-05 | Use hslua v0.9.0 | Albert Krewinkel | 1 | -12/+1 | |
2017-10-03 | pandoc.lua: use wrapper funciton for pipe command | Albert Krewinkel | 1 | -1/+1 | |
The pipe command is wrapped in a lua function, throwing a lua error if the command returns with an error. A wrapper is needed as Haskell functions exposed to lua may not throw lua errors due to limitations of hslua. The error handling is written such that a table can be returned as an error object in the future. This is potentially useful when finer control is required while catching the error in lua code. Current limitations of hslua require error objects to be strings. | |||||
2017-10-03 | Lua.PandocModule: promote addFunction to top level | Albert Krewinkel | 1 | -14/+10 | |
This reduces some boilerplate. | |||||
2017-10-02 | Markdown reader: Fixed bug with indented code following raw LaTeX. | John MacFarlane | 1 | -1/+1 | |
Closes #3947. | |||||
2017-10-02 | Org reader: support `\n` export option | Albert Krewinkel | 3 | -2/+5 | |
The `\n` export option turns all newlines in the text into hard linebreaks. Closes #3950 | |||||
2017-10-01 | Lua: added 'pipe', which encapsulates Text.Pandoc.Process.pipeProcess. | John MacFarlane | 1 | -0/+17 | |
This is hard to do in lua, so it's helpful to provide this. | |||||
2017-10-01 | Lua: move sha1 from pandoc.mediabag to pandoc. | John MacFarlane | 1 | -1/+3 | |
2017-09-30 | Lua: use sha1 instead of hashname. | John MacFarlane | 1 | -13/+5 | |
Better to leave control over the extension to the user. | |||||
2017-09-30 | Lua: make fetch return mime type first and then content. | John MacFarlane | 1 | -1/+1 | |
2017-09-30 | Lua: simply mediabag module. | John MacFarlane | 1 | -15/+31 | |
Now 'fetch' simply fetches content and mime type. A new 'hashname' function is provided to get a filename based on the sha1 hash of the contents and the mime type. | |||||
2017-09-30 | Lua: make lua.mediabag.fetch return filename and mime type. | John MacFarlane | 1 | -0/+4 | |
This is necessary because you may need to insert the filename into an image or link element. | |||||
2017-09-30 | Lua filters: make sure whole CommonState is passed through... | John MacFarlane | 2 | -14/+22 | |
to insertResource (`fetch`). | |||||
2017-09-30 | EPUB writer: simplified some functions. | John MacFarlane | 1 | -24/+18 | |
2017-09-30 | Removed unneeded import. | John MacFarlane | 1 | -1/+0 | |
2017-09-30 | Removed Verbosity and MediaBag params from makePDF. | John MacFarlane | 2 | -36/+29 | |
They can be obtained from CommonState since we're in PandocIO. | |||||
2017-09-30 | Text.Pandoc.Class - add getVerbosity. | John MacFarlane | 1 | -0/+5 | |
2017-09-30 | Removed writerSourceURL, add source URL to common state. | John MacFarlane | 14 | -115/+113 | |
Removed `writerSourceURL` from `WriterOptions` (API change). Added `stSourceURL` to `CommonState`. It is set automatically by `setInputFiles`. Text.Pandoc.Class now exports `setInputFiles`, `setOutputFile`. The type of `getInputFiles` has changed; it now returns `[FilePath]` instead of `Maybe [FilePath]`. Functions in Class that formerly took the source URL as a parameter now have one fewer parameter (`fetchItem`, `downloadOrRead`, `setMediaResource`, `fillMediaBag`). Removed `WriterOptions` parameter from `makeSelfContained` in `SelfContained`. | |||||
2017-09-30 | Run Lua filters before extracting media | Albert Krewinkel | 1 | -2/+2 | |
This enables users to change the media files being extracted via lua filters. | |||||
2017-09-30 | Text.Pandoc.Lua: add mediabag submodule | Albert Krewinkel | 4 | -36/+166 | |
2017-09-28 | Support R filters #3940 (#3941) | Andrie de Vries | 1 | -0/+1 | |
2017-09-28 | Muse reader: parse anchors | Alexander Krotov | 1 | -1/+11 | |
2017-09-27 | RST writer: add header anchors when header has non-standard id. | John MacFarlane | 1 | -1/+6 | |
Closes #3937. | |||||
2017-09-26 | Lua filters: set global FORMAT instead of args. | John MacFarlane | 2 | -8/+8 | |
This changes the type of runLuaFilter. | |||||
2017-09-26 | Lua: set "arg" instead of "PandocParameters". | John MacFarlane | 1 | -2/+2 | |
This is standard for lua scripts, and I see no reason to depart from the standard here. Also, "arg" is now pushed onto the stack before the script is loaded. Previously it was not, and thus "PandocParameters" was not available at the top level. | |||||
2017-09-26 | Muse reader: test metadata parsing | Alexander Krotov | 1 | -2/+1 | |
2017-09-26 | Fix a typo: s/collabarators/collaborators/ | Alexander Krotov | 1 | -1/+1 | |
2017-09-25 | Org reader: update emphasis border chars | Albert Krewinkel | 1 | -3/+3 | |
The org reader was updated to match current org-mode behavior: the set of characters which are acceptable to occur as the first or last character in an org emphasis have been changed and now allows all non-whitespace chars at the inner border of emphasized text (see `org-emphasis-regexp-components`). Fixes: #3933 | |||||
2017-09-24 | Allow lua filters to return lists of elements | Albert Krewinkel | 2 | -61/+90 | |
Closes: #3918 | |||||
2017-09-20 | Fixed bug in determining writer for xelatex engine. | John MacFarlane | 1 | -1/+1 | |
This revises the last commit, fixing #3931. | |||||
2017-09-19 | Fix and simply latex engine code in App. | John MacFarlane | 1 | -47/+44 | |
Fixes #3931. | |||||
2017-09-17 | Added `--strip-comments` option, `readerStripComments` in `ReaderOptions`. | John MacFarlane | 4 | -8/+24 | |
* Options: Added readerStripComments to ReaderOptions. * Added `--strip-comments` command-line option. * Made `htmlTag` from the HTML reader sensitive to this feature. This affects Markdown and Textile input. Closes #2552. | |||||
2017-09-16 | Markdown reader: added inlines, inlines1. | John MacFarlane | 1 | -18/+23 | |
Eventually we'll add `processEmphasis` and `processBracketed` to this. This will allow us to conform to CommonMark rules and fix #3903 and #1735. | |||||
2017-09-15 | Set PANDOC_READER_OPTIONS in environment where filters are run. | John MacFarlane | 1 | -7/+16 | |
This contains a JSON representation of ReaderOptions. | |||||
2017-09-15 | Remove To/FromJSON instance for WriterOptions. | John MacFarlane | 1 | -4/+0 | |
This required the (now removed) instances for Syntax. It was too long, anyway, to be of use. | |||||
2017-09-14 | FromJSON/ToJSON instances for Reader, WriterOptions. | John MacFarlane | 2 | -0/+18 | |
Depends on skylighting 0.3.5. | |||||
2017-09-12 | Textile reader: allow 'pre' code in list item. | John MacFarlane | 1 | -8/+4 | |
Closes #3916. | |||||
2017-09-12 | Add default pdf engine for beamer. | John MacFarlane | 1 | -0/+1 | |
2017-09-12 | Use defaultLatexEngine instead of `head latexEngines`. | John MacFarlane | 1 | -3/+9 | |
Partial functions make me nervous. | |||||
2017-09-11 | Support for PDF generation via `weasyprint` and `prince` (#3909) | Mauro Bieg | 4 | -62/+108 | |
* Rename --latex-engine to --pdf-engine * In `Text.Pandoc.Options.WriterOptions`, rename `writerLaTeXEngine` to `writerPdfEngine` and `writerLaTeXArgs` to `writerPdfArgs`. * Add support for `weasyprint` and `prince`, in addition to `wkhtmltopdf`, for PDF generation via HTML (closes #3906). * `Text.Pandoc.PDF.html2pdf`: use stdin instead of intermediate HTML file | |||||
2017-09-11 | Merge pull request #3911 from labdsf/muse-reader-braces | John MacFarlane | 1 | -1/+8 | |
Muse reader: parse {{{ }}} example syntax | |||||
2017-09-11 | Muse reader: allow inline markup to be followed by punctuation | Alexander Krotov | 1 | -2/+3 | |
Previously code was not allowed to be followed by comma, and emphasis was allowed to be followed by letter. | |||||
2017-09-11 | Muse reader: parse {{{ }}} example syntax | Alexander Krotov | 1 | -1/+8 | |
2017-09-11 | Muse reader: parse verbatim tag | Alexander Krotov | 1 | -1/+6 | |
2017-09-10 | Muse reader: trim newlines from <example>s | Alexander Krotov | 1 | -1/+10 | |
2017-09-09 | Muse reader: debug inline code markup | Alexander Krotov | 1 | -9/+6 | |
2017-09-08 | Write euro symbol directly in LaTeX | Andrew Dunning | 1 | -6/+0 | |
The textcomp package allows pdfLaTeX to parse `€` directly, making the \euro command unneeded. Closes #3801. | |||||
2017-09-08 | Removed old beamer template. | John MacFarlane | 2 | -0/+2 | |
We now use the default.latex template for both latex and beamer. It contains conditionals for the beamer-specific things. `pandoc -D beamer` will return this template. | |||||
2017-09-07 | Markdown writer: Escape pipe characters when `pipe_tables` enabled. | John MacFarlane | 1 | -0/+1 | |
Closes #3887. | |||||
2017-09-07 | LaTeX writer: use proper code for list enumerators. | John MacFarlane | 1 | -2/+13 | |
This should fix problems with lists that don't use arabic numerals. Closes #3891. |