summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
* Version to 2.1.1.John MacFarlane2018-01-17
|
* Markdown reader: don't coalesce adjacent raw LaTeX blocks...John MacFarlane2018-01-17
| | | | | | if they are separated by a blank line. See lierdakil/pandoc-crossref#160 for motivation.
* Powerpoint writer: Change reference to notesSlide to endNotesSlideJesse Rosenthal2018-01-17
| | | | This will prevent confusion when speakers notes are implemented.
* Powerpoint writer: Move image sizing into picProps.Jesse Rosenthal2018-01-17
| | | | | Rather than passing around attributes, we can have image sizing in the picProps and then pass it along to write to XML.
* ImageSize: add derived Eq instance to DimensionJesse Rosenthal2018-01-17
|
* Markdown writer: fix cell width calculation.John MacFarlane2018-01-16
| | | | | | | Previously we could get ever-lengthening cell widths when a table was run repeatedly through `pandoc -f markdown -t markdown`. This patch stabilizes the relative cell widths. Closes #4265.
* Merge pull request #4271 from dotlambda/lstinline-ampersandJohn MacFarlane2018-01-16
|\ | | | | LaTeX writer: escape & in lstinline
| * LaTeX writer: escape & in lstinlineRobert Schütz2018-01-16
| |
* | Docx reader: Add test for hyperlinks in instrText tagJesse Rosenthal2018-01-16
| | | | | | | | | | | | | | This is difficult to recreate with a modern version of Word, so I'm using the file submitted with the bug report. It would be preferable to find a smaller example with Latin characters, though, so as not to confuse the issue being tested.
* | Docx reader: Parse hyperlinks in instrText tagsJesse Rosenthal2018-01-16
| | | | | | | | | | | | | | | | | | This was a form of hyperlink found in older versions of word. The changes introduced for this, though, create a framework for parsing further fields in MS Word (see the spec, ECMA-376-1:2016, §17.16.5, for more on these fields). Closes #3389 and #4266.
* | Docx reader: Parse instrText info in fldChar tags.Jesse Rosenthal2018-01-16
| | | | | | | | | | | | We introduce a new module, Text.Pandoc.Readers.Docx.Fields which contains a simple parsec parser. At the moment, only simple hyperlink fields are accepted, but that can be extended in the future.
* | Docx reader: Parse fldChar tagsJesse Rosenthal2018-01-16
|/ | | | This will allow us to parse instrTxt inside fldChar tags.
* Reduce compiler noise (exact paths for compiled modules).John MacFarlane2018-01-15
|
* HTML reader: Fix col width parsing for percentages < 10% (#4262)n3fariox2018-01-15
| | | | | Rather than take user input, and place a "0." in front, actually calculate the percentage to catch cases where small column sizes (e.g. `2%`) are needed.
* ConTeXt writer: Use xtables instead of Tables (#4223)Henri Menke2018-01-15
| | | | | | - Default to xtables for context output. - Added `ntb` extension (affecting context writer only) to use Natural Tables instead. - Added `Ext_ntb` constructor to `Extension` (API change).
* Powerpoint writer: Improve table placement.Jesse Rosenthal2018-01-15
|
* Powerpoint writer: Make our own _rels/.rels file.Jesse Rosenthal2018-01-15
| | | | | | The toplevel .rels file could have a thumbnail image if taken from the template. Rather than removing it from the inherited file, it's easier to just make our own.
* Powerpoint writer: Import reference-doc images properly.Jesse Rosenthal2018-01-15
| | | | | | There was a glob error that was leading to images from the reference-doc pptx not being imported. We don't need a glob here -- just replace it with `isPrefixOf`.
* Renaming: Json -> JSON in modules and functions.John MacFarlane2018-01-15
|
* Merge pull request #4227 from tarleb/lua-run-json-filterJohn MacFarlane2018-01-15
|\ | | | | Run JSON filters from Lua filters
| * Lua modules: add function pandoc.utils.run_json_filterAlbert Krewinkel2018-01-13
| | | | | | | | Runs a JSON filter on a Pandoc document.
| * Move filter functions to separate moduleAlbert Krewinkel2018-01-13
| |
* | Powerpoint writer: Move Presentation.hs out of PandocMonadJesse Rosenthal2018-01-15
| | | | | | | | | | | | We don't need it for anything but the log messages, and we can just keep track of that in state and pass it along to the `writePowerpoint` function. This will simplify the code.
* | Powerpoint writer: Ignore anchor links to nowehere.Jesse Rosenthal2018-01-15
| | | | | | | | | | | | We don't convert a '#target' ExternalTarget to an InternalTarget if `target` is not in the AnchorMap. We just remove the link. This prevents broken links in the Powerpoint output.
* | Remove custom prelude and ghc 7.8 support.John MacFarlane2018-01-14
| |
* | Revert "Custom prelude - only export <> from Data.Monoid."John MacFarlane2018-01-14
| | | | | | | | This reverts commit 01ea3edf0f5e83542bdec4f399d22f78e8f690a6.
* | Custom prelude - only export <> from Data.Monoid.John MacFarlane2018-01-14
| |
* | Fix import.John MacFarlane2018-01-14
| |
* | Fix cabal to use base-compat with ghc < 7.10.John MacFarlane2018-01-14
| |
* | Powerpoint writer: Fix anchor links.Jesse Rosenthal2018-01-14
| | | | | | | | | | | | | | | | | | They were broken when I refactored (the Output module wanted to use state left over from the construction of the Presentation type). This change introduces a new type `LinkTarget = InternalTarget | ExternalTarget`. Internal target points to a slide number, and these will all be resolved before the Presentation is passed along to the Output module.
* | Use base-compat for our custom prelude.John MacFarlane2018-01-14
| | | | | | | | | | | | | | This should give us more complete coverage of newer base features. See #4255.
* | Clarified `latex_macros` extension.John MacFarlane2018-01-14
| |
* | RST reader: add aligned environment when needed in math.John MacFarlane2018-01-14
| | | | | | | | | | | | | | | | | | rst2latex.py uses an align* environment for math in `.. math::` blocks, so this math may contain line breaks. If it does, we put the math in an `aligned` environment to simulate rst2latex.py's behavior. Closes #4254.
* | Markdown reader: Improved inlinesInBalancedBrackets.John MacFarlane2018-01-14
| | | | | | | | | | | | | | | | The change both improves performance and fixes a regression whereby normal citations inside inline notes were not parsed correctly. Closes jgm/pandoc-citeproc#315.
* | Allow latest QuickCheck.John MacFarlane2018-01-14
| |
* | LaTeX reader: Advance source position at end of stream.John MacFarlane2018-01-14
| |
* | Shorten unbalanced brackets test.John MacFarlane2018-01-14
| | | | | | | | It was taking a lot of time.
* | Powerpoint writer: Refactor into separate modules.Jesse Rosenthal2018-01-14
| | | | | | | | | | | | | | | | | | | | | | | | There are two steps in the conversion: a conversion from pandoc to a Presentation datatype modeling pptx, and a conversion from Presentation to a pptx archive. The two steps were sharing the same state and environment, and the code was getting a bit spaghetti-ish. This separates the conversion into separate modules (T.P.W.Powerpoint.Presentation, which defineds the Presentation datatype and goes Pandoc->Presentation) and (T.P.W.Pandoc.Output, which goes Presentation->Archive). Text.Pandoc.Writers.Powerpoint a thin wrapper around the two modules.
* | Powerpoint writer: Avoid overlapping blocks in column output.Jesse Rosenthal2018-01-14
| | | | | | | | | | | | Just as a slide can't have an image and text on the same slide because of overlapping, we can't have both in a single column. We run splitBlocks on the text in the column and discard the rest.
* | Powerpoint writer: Position images correctly in two-column layout.Jesse Rosenthal2018-01-14
| | | | | | | | | | You can have two images side-by-side, or text alongside an image. The image will be fit correctly within the column.
* | Powerpoint writer: Make content shape retrieval environment-awareJesse Rosenthal2018-01-14
| | | | | | | | | | | | | | | | We put `getContentShape` and `getContentShapeSize` inside the P monad, so that we can (in the future) make use of knowledge of what slide environment we're in to get the correct shape. This will allow us, for example, to get individual columns for a two-column layout, and place images in them appropriately.
* | LaTeX reader: pass through macro defs in rawLaTeXBlock...John MacFarlane2018-01-13
| | | | | | | | | | | | | | | | | | | | even if the `latex_macros` extension is set. This reverts to earlier behavior and is probably safer on the whole, since some macros only modify things in included packages, which pandoc's macro expansion can't modify. Closes #4246.
* | LaTeX reader: fixed pos calculation in tokenizing escaped space.John MacFarlane2018-01-13
| |
* | Powerpoint writer: Improve image handling.Jesse Rosenthal2018-01-13
| | | | | | | | | | | | | | | | | | | | | | We now determine image and caption placement by getting the dimensions of the content box in a given layout. This allows for images to be correctly sized and positioned in a different template. Note that iamges without captions and headers are no longer full-screened. We can't do this dependably in different layouts, because we don't know where the header is (it could be to the side of the content, for example).
* | data/pandoc.lua: add attr, listAttributes accessorsAlbert Krewinkel2018-01-13
| | | | | | | | | | | | | | Elements with attributes got an additional `attr` accessor. Attributes were accessible only via the `identifier`, `classes`, and `attributes`, which was in conflict with the documentation, which indirectly states that such elements have the an `attr` property.
* | data/pandoc.lua: accept single block as singleton listAlbert Krewinkel2018-01-13
| | | | | | | | | | | | Every constructor which accepts a list of blocks now also accepts a single block element for convenience. Furthermore, strings are accepted as shorthand for `{pandoc.Str "text"}` in constructors.
* | MANUAL: recommend use of `raw_attribute` extension in header includes.John MacFarlane2018-01-13
| | | | | | | | See #4253.
* | LaTeX reader: allow macro definitions inside macros.John MacFarlane2018-01-13
| | | | | | | | | | | | | | | | | | | | | | | | Previously we went into an infinite loop with ``` \newcommand{\noop}[1]{#1} \noop{\newcommand{\foo}[1]{#1}} \foo{hi} ``` See #4253.
* | LaTeX reader: allow macro definitions inside macros.John MacFarlane2018-01-13
| | | | | | | | | | | | | | | | | | | | | | | | Previously we went into an infinite loop with ``` \newcommand{\noop}[1]{#1} \noop{\newcommand{\foo}[1]{#1}} \foo{hi} ``` See #4253.
* | Powerpoint writer: read presentation size from reference file.Jesse Rosenthal2018-01-13
| | | | | | | | | | | | | | | | | | Our presentation size is now dependent on the reference/template file we use. This will make it easier to set different output sizes by supplying different reference files. The alternative (allowing a user to explicitly set output size regardless of the template) will lead to too many thorny issues, as explicitly set sizes at the various level of powerpoint layout would have to be reset.