aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2019-04-15RST writer: treat Span as transparent.John MacFarlane2-0/+9
Previously an Emph inside a Span was being treated as nested markup and ignored. With this patch, the Span is just ignored. Closes #5446.
2019-04-11LaTeX template: Add pdflang to hypersetup if lang is set.John MacFarlane2-0/+4
Closes #5443.
2019-04-10LaTeX reader: add braces when resolving `\DeclareMathOperator`.John MacFarlane1-1/+2
These seem to be needed for xelatex but not pdflatex. Closes #5441.
2019-04-09Update copyright yearJohn MacFarlane1-1/+1
2019-04-09Use cmark-gfm 0.2.0.John MacFarlane2-2/+2
2019-04-07update: default.revealjs follow revealjs 3.8.0 (#5435)ebiiim1-0/+1
2019-04-07Asciify.hs: add Turkish undotted-i (#5434)Mauro Bieg1-0/+1
fixes #5433
2019-04-05Add Derek Chen-Becker to AUTHORS.mdJohn MacFarlane1-0/+1
2019-04-05clarify PowerPoint templating changes in changelog.Jesse Rosenthal1-2/+4
2019-04-05Update man page and README.John MacFarlane3-133/+199
2019-04-05Bump to 2.7.2, update changelog.John MacFarlane2-1/+164
2019-04-05More fixes to beamer table footnotes.John MacFarlane1-14/+19
2019-04-05LaTeX writer: rename stInMinipage -> stExternalNotesJohn MacFarlane1-13/+14
2019-04-05Make footnotes work properly in beamer tables.John MacFarlane1-0/+6
This fixes a regression in beamer due to the fix to #5367. We put table footnotes outside the table in beamer, because footnote/footnotehyper don't work with beamer.
2019-04-05Vimwiki reader: improve handling of internal links.John MacFarlane2-13/+20
1) Don't append `.html` 2) Add `wikilink` title This mirrors behavior of other wiki readers. Generally the `.html` extension is not wanted. It may be important for output to HTML in certain circumstances, but it can always be added using a filter that matches on links with title `wikilink`. Note that if you have a workflow that uses pandoc to convert vimwiki to readable HTML pages, you may need to add such a filter to reproduce current behavior. Here is a filter that does the job: ```lua function Link(el) if el.title == 'wikilink' then el.target = el.target .. ".html" end return el end ``` Save this as `fixlinks.lua` and use with `--lua-filter fixlinks.lua`. Closes #5414.
2019-04-05PowerPoint writer code style fixJesse Rosenthal1-30/+14
I had been using record syntax in an ADT, is bad style, since it means that each record produces a partial function. Fortunately we weren't using the partial functions anywhere, so this changes it to positional syntax.
2019-04-05Update pandoc.cabal with new pptx files.Jesse Rosenthal1-0/+4
2019-04-05PowerPoint writer: expand builtin reference doc to model all layoutsJesse Rosenthal47-20/+32
The previous built-in reference doc had only title and content layouts. Add in a section-header slide and a two-content slide, so users can more easily modify it to build their own templates. Golden files needed to be regenerated. Checked on MS PowerPoint 2013.
2019-04-04PowerPoint tests: Regenerate golden filesJesse Rosenthal36-0/+0
Due to viewProps change in 61dc0f9f. Golden files checked on PowerPoint 2013 (Win 10 on virtualbox).
2019-04-04PowerPoint writer: Always open up in slide viewJesse Rosenthal1-8/+26
When editing a template/reference-doc, the user might be in Master view, but when producing a slide show, it is assumed that slide view will be desired. This removes the "lastView" attr from the viewProps.xml slide so that the presentation will always open up in slide view. Note this requires creating a new "ppt/viewProps.xml" instead of just moving over the old one from the viewProps file. Since this produces a slightly different order of xml files in the content manifest, the golden files will have to be rebuilt.
2019-04-03Add templates/default.xwiki to cabal data files.John MacFarlane1-0/+1
2019-04-03Add support for go with --listings.John MacFarlane1-0/+1
Closes #5427.
2019-04-02Update command test #5416 to make it windows friendlyJohn MacFarlane1-2/+4
2019-04-02Manual: Improve 'header' and 'heading' usage (#5424)Andrew Dunning1-112/+112
Corrects usage of 'heading' and 'header' in text (but does not change programmed names). Partially addresses #5423.
2019-04-02LaTeX template: Ensure correct heading/table order (#5421)Andrew Dunning6-61/+54
Improve the workaround for #1658, adapting a solution by @u-fischer in <https://github.com/latex3/latex2e/issues/131> that works whether or not the `indent` variable is enabled. Remove `subparagraph` variable in LaTeX template. The default is now to use run-in style for level 4 and 5 headings (`\paragraph` and `\subparagraph`). To get the previous default behavior (where these were formatted as blocks, like `\subsubsection`), set the `block-headings` variable. An example is given in the manual of reformatting the appearance of headings more thoroughly using KOMA-Script. Closes #5365.
2019-04-02Actually run the xwiki writer tests.John MacFarlane1-1/+2
2019-04-02Add test/writer.xwiki to cabal extra-source-files.John MacFarlane1-0/+1
2019-04-02Add xwiki to cabal descriptionJohn MacFarlane1-4/+5
2019-04-02Add xwiki output format to manual.John MacFarlane1-0/+5
2019-04-02Fix harmless error in file-scope code.John MacFarlane1-2/+2
Closes #5422.
2019-04-02Add XWiki Support (#4167)Derek Chen-Becker6-1/+934
Add XWiki Support Closes #1800
2019-04-01PowerPoint writer: Remove handoutsMasterList from template presentation.xmlJesse Rosenthal1-7/+9
We don't build it at the moment, so it was causing corruption.
2019-04-01PowerPoint writer: Build sp trees correctlyJesse Rosenthal1-17/+19
We were previously carrying over too many elements from the layout, which produced visual artifacts and some corruption. This empties the sptree (except for properties) after building the shapes, and then inserts them. Together with 5e944bf5, fixes #5402 (Note that this addresses the issue and template in that particular bug report. Other issues will arise no doubt arise with other templates.)
2019-04-01PowerPoint writer: Correct application of reference doc for contentJesse Rosenthal1-30/+16
Previously we had applied content shapes based on their index (which was "1", "2" in MS Word 2013). It turns out that this was a convention, and could not be relied on. Instead we use a default type (ie, a ph tag with no "type"). This is more correct, and should make the application of reference documents in PowerPoint much more robust.
2019-04-01PowerPoint writer: Make default placeholder type for template lookupJesse Rosenthal1-18/+42
This is the first step toward making templating work better. It seems that content shapes have a default ph type. In other words, shapes with *NO PH TYPE* should be considered to have an "obj" ph type, and used as content shapes. see https://github.com/scanny/python-pptx/blob/master/docs/dev/analysis/placeholders/slide-placeholders/placeholders-in-new-slide.rst
2019-04-01Dokuwiki Reader fix: parse single curly brace (#5417)Mauro Bieg2-1/+12
fixes #5416
2019-03-31PowerPoint writer: add test for speaker notes after metadata.Jesse Rosenthal4-0/+9
2019-03-31Pptx writer: Apply speaker snotes to metadata slide if applicable.Jesse Rosenthal1-15/+35
If the slide deck has a metadata slide (with author, title, etc) and has speaker notes before any body content, the speaker notes will be applied to the metadata slide. If there is no metadata slide, pandoc will behave as before.
2019-03-31Docs: Specify that templates from PPT 2013 are known to work.Jesse Rosenthal1-3/+3
There have been problems reported with other recent versions. Starts to address #5402
2019-03-30Pptx writer: test for speaker notes after breaking header.Jesse Rosenthal4-0/+7
2019-03-30Pptx writer: Correctly handle notes after section-title headerJesse Rosenthal1-3/+4
Previously, if notes came after a section-title header (ie, a level-1 header in a slide-level=2 presentation), they would go on the next slide. This keeps them on the slide with the header.
2019-03-30ipynb reader/writer: use format 'ipynb' for raw cell where no format given.John MacFarlane2-5/+9
According to nbformat docs, this is supposed to render in every format. We don't do that, but we at least preserve it as a raw block in markdown, so you can round-trip.
2019-03-29MANUAL: add paragraph on options affecting markdown in ipynb.John MacFarlane1-0/+6
2019-03-29ipynb writer - consolidate adjacent raw blocks.John MacFarlane1-2/+10
Sometimes pandoc creates two HTML blocks, e.g. one for the open tag and one for a close tag. If these aren't consolidated, only one will show up in output cell.
2019-03-29LaTeX writer: Avoid inadvertently creating ?` or !` ligatures.John MacFarlane2-0/+22
These are upside down ? and !, resp. Closes #5407.
2019-03-28Update data/jats.csl to avoid commas between name-part elements.John MacFarlane1-2/+2
Closes #5397.
2019-03-28HTML writer: Don't add data- prefix to RDFa attributes.John MacFarlane1-2/+19
Closes #5403.
2019-03-28Markdown reader: fenced div takes priority over setext header.John MacFarlane2-2/+11
For ::: {.cell} --- :::
2019-03-28Ipynb reader: use `html` for a raw cell with no format.John MacFarlane1-1/+1
The nbformat spec says that when no format is specified, the raw cell will be rendered in every markup format. Pandoc doesn't have a construct that works this way, so we just fall back to `html`.
2019-03-28Ipynb writer: fixed carry-over of nbformat from metadata.John MacFarlane1-1/+1
Previously we wrongly assumed it would be in a MetaString. It's an a MetaInlines.