summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAge
* RST reader: support RST-style citations.John MacFarlane2017-03-03
| | | | | | | | | | | The citations appear at the end of the document as a definition list in a special div with id `citations`. Citations link to the definitions. Added stateCitations to ParserState. Closes #853.
* Docx writer: Don't include bookmarks on headers unless non-null id.John MacFarlane2017-03-03
| | | | Closes #3476.
* Pretty: don't error for blocks of size < 1.John MacFarlane2017-03-03
| | | | | | | | | | Instead, resize to 1. Note, this (together with earlier changes to the Markdown writer) seems to fix #1785. The table renders as garbage, but pandoc now completes the conversion quickly and doesn't get tied up.
* ConTeXt writer: remove unnecessary $ (#3482)Alexander Krotov2017-03-03
|
* RST reader: Handle multiline cells in simple tables.John MacFarlane2017-03-02
| | | | Closes #1166.
* LaTeX writer: add `\leavevmode` before hypertarget at start of paragraph.John MacFarlane2017-03-02
| | | | | | | Closes #2704 (formatting problems in beamer citations). See http://tex.stackexchange.com/questions/22852/function-and-usage-of-leavevmode
* LaTeX writer: use % after hypertarget before code blockJohn MacFarlane2017-03-02
|
* LaTeX writer: minor tweak to hypertarget (semantically irrelevant).John MacFarlane2017-03-02
|
* Removed unnecessary import.John MacFarlane2017-03-02
|
* Markdown reader: when splitting pipe table cells, skip tex math.John MacFarlane2017-03-02
| | | | | | | | You might have a `|` character inside math. (Or for that matter something that the parser might mistake for raw HTML.) See #3481.
* LaTeX writer: always add hypertarget when there's a non-empty identifier.John MacFarlane2017-03-01
| | | | | Previously the hypertargets were only added when there was actually a link to that identifier. Closes #2719.
* LaTeX reader: don't drop contents of \hypertarget.John MacFarlane2017-03-01
|
* Writers: Use gets to access MonadState where possible (#3480)Alexander Krotov2017-03-01
|
* Markdown writer: Fixed grid tables embedded in grid tables.John MacFarlane2017-03-01
| | | | Closes #2834.
* Markdown writer: Refactored gridTable to use widths in chars.John MacFarlane2017-03-01
|
* ODT writer: calculate aspect ratio for percentage-sized images (#3478)Mauro Bieg2017-03-01
| | | closes #3239
* RST reader: implemented implicit internal header links.John MacFarlane2017-02-28
| | | | Cloess #3475.
* Removed `--epub-stylesheet`; use `--css` instead.John MacFarlane2017-02-27
| | | | | | | | | | | | * Removed writerEpubStylesheet in WriterOptions. * Removed `--epub-stylesheet` option. * Allow `--css` to be used with epub. * Allow multiple stylesheets to be used. * Stylesheets will be taken both from `--css` and from the `stylesheet` metadata field (which can contain either a file path or a list of them). Closes #3472, #847.
* LaTeX reader: Handle komascript `\dedication`.John MacFarlane2017-02-27
| | | | | | | | It now adds a `dedication` field to metadata. It is up to the user to supply a template that uses this variable. Closes #1845.
* Minor cleanups in LaTeX reader.John MacFarlane2017-02-27
|
* RST reader: support scale and align attributes of images.John MacFarlane2017-02-26
| | | | Closes #2662.
* ImageSize: export lengthToDim, new function scaleDimension.John MacFarlane2017-02-26
|
* `--self-contained`: don't incorporate elements with `data-external="1"`.John MacFarlane2017-02-26
| | | | | | | | | You can leave an external link as it is by adding the attribute data-external="1" to the element. Pandoc will then not try to incorporate its content when `--self-contained` is used. This is similar to a feature already supported by the EPUB writer. Closes #2656.
* Fixed type sig for older GHC versions.John MacFarlane2017-02-25
|
* App: reverse optInputFiles so they come out in right order in templates.John MacFarlane2017-02-25
|
* Markdown writer: don't include variables in metadata blocks!John MacFarlane2017-02-25
| | | | | Previously variables set on the command line were included in e.g. YAML metadata, contrary to documentation and intentions.
* Fixed addVariablesToJSON.John MacFarlane2017-02-25
| | | | It was previously not allowing multiple values to become lists.
* Add `sourcefile` and `outputfile` template variables (#3439)Roland Hieber2017-02-25
| | | Closes #3431.
* Writers.Shared: export metaToJSON', addVariablesToJSON.John MacFarlane2017-02-25
| | | | | | | | | | This allows us to add the variables AFTER using the metadata to generate a YAML header (in the Markdown writer). Addresses the problem shown by https://travis-ci.org/jgm/pandoc/jobs/205154181#L705 See #3439
* Writers.Shared: Changed metaToJSON a bit.John MacFarlane2017-02-25
| | | | | | Now we handle metadata first, then variables. This way, meta-json variable will not contain representations of variables, only proper metadata.
* AsciiDoc writer: use PandocMonad throughout.John MacFarlane2017-02-25
| | | | Issues info messages for non-rendered raw content.
* Fetch images when generating PDF via context.John MacFarlane2017-02-25
| | | | | | | | To do this, we create the temp directory as a subdirectory of the working directory. Since context mk IV by default looks for images in the parent directory, this works. Closes #3380.
* Docx writer: use Set for dynamic styles to avoid duplicates.John MacFarlane2017-02-25
|
* Docx writer: bookmarks for Span with id.John MacFarlane2017-02-25
| | | | And cleaned up code.
* Docx writer bookmark improvements.John MacFarlane2017-02-25
| | | | | | - Bookmark start/end now surrounds content rather than preceding it. - Bookmarks generated for Div with id. Fixes jgm/pandoc-citeproc#205. - Cleaner code for handling dir and style attributes for Div.
* Make `--ascii` work with DocBook output too.John MacFarlane2017-02-25
|
* LaTeX reader: allow hspace and vspace to count as raw block or inline.John MacFarlane2017-02-25
| | | | | | | | | Previously we would refuse to parse anything as raw inline if it was in the blockCommands list. Now we allow exceptions if they're listed under ignoreInlines in inlineCommands. This should make it easier e.g. to include an \hspace between two side-by-side raw LaTeX tables.
* Revert "LaTeX reader: don't treat `\vspace` and `\hspace` as block commands."John MacFarlane2017-02-25
| | | | This reverts commit 2873cd82886d1fa557bf3abde37b5ceb3cadf40c.
* Removed unnecessary import.John MacFarlane2017-02-24
|
* Use catchError instead of runExceptT.John MacFarlane2017-02-24
|
* Implemented `\graphicspath` in LaTeX reader.John MacFarlane2017-02-24
| | | | Closes #736.
* Removed useless TEXINPUTS stuff for context2pdf.John MacFarlane2017-02-24
| | | | mkiv context doesn't use TEXINPUTS.
* Shared: remove 'warn'.John MacFarlane2017-02-24
| | | | | PDF writer: Use 'report' instead of 'warn', make it sensitive to verbosity settings.
* Logging: Remove UsingResourceFrom, add CouldNotConvertImageJohn MacFarlane2017-02-24
|
* Class: Add stResourcePath to CommonState, getResourcePath, setResourcePath.John MacFarlane2017-02-24
| | | | | | | | | | | | To be used in implementing `\graphicspath` in LaTeX, and possibly in things like PDF production via context. Use resource path in fetchItem. Issue an info message if we get a resource from somewhere other than ".". Added UsingResourceFrom to log message.
* EPUB reader: minor refactoring, avoiding explicit MediaBag handling.John MacFarlane2017-02-24
| | | | This all works behind the scenes in CommonState plumbing.
* Some fixes to the preceding revisions in SelfContained.John MacFarlane2017-02-24
| | | | Make sure we don't duplicate end tags for script or link.
* SelfContained: don't use data URIs for script or style.John MacFarlane2017-02-24
| | | | | | | | | | | | | | Instead, just use script or style tags with the content inside. The old method with data URIs prevents certain optimizations outside pandoc. Exception: data URIs are still used when a script contains `</script>` or a style contains `</`. Closes #3423. Also, in MIME, use application/javascript (not application/x-javascript).
* Refactored getData from getDataURI in SelfContained.John MacFarlane2017-02-24
|
* Removed `\strut` at beginning of table cells.John MacFarlane2017-02-23
| | | | | | | This fixes a problem with alignment of lists in table cells (closes #3436). The `\strut` at the end seems to be enough to avoid the too-close spacing that motivated addition of the strut in #1573.