aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
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.
2019-03-28stack.yml - remove -Wmissing-home-modulesJohn MacFarlane1-1/+1
This seems to cause problems with stack ghci.
2019-03-28Shared - improve metaToJSON with numbers.John MacFarlane1-5/+8
We now do a better job marshalling numbers from MetaString OR MetaInlines into JSON Number.
2019-03-28Markdown writer: better rendering of numbers.John MacFarlane1-1/+4
If the number is integral, we render it as an integral not a float. Closes #5398.
2019-03-28Markdown writer: proper rendering of empty map in YAML metadata.John MacFarlane1-1/+3
Should be `{}` not empty string. Partially addresses #5398.
2019-03-28Use strict instead of lazy sum.John MacFarlane2-5/+5
sum is lazy; replace with `foldl' (+) 0` to avoid stack overflow in Text.Pandoc.Pretty with very long strings. Closes #5401.
2019-03-28Revert "appveyor - just build dependencies."John MacFarlane1-18/+18
This reverts commit f520c4dfbb1c63123a9a088d560d16dee8e0d686.
2019-03-28stack.yaml: remove RTS optionsJohn MacFarlane1-1/+1
2019-03-28appveyor - just build dependencies.John MacFarlane1-18/+18
This should build up our cache so we can build the whole thing.
2019-03-27appveyor - save cache on error.John MacFarlane1-0/+1
Hopefully this will allow new ghc builds to complete within 60 minutes, after a try or two.
2019-03-27ipynb writer: preserve nbformat_minor if it's given.John MacFarlane1-2/+10
This helps with round-tripping.
2019-03-27Writers.Shared.metaValueToJSON: use Number Values for integers.John MacFarlane1-4/+9
Pandoc's MetaValue doesn't have a distinguished number type, so numbers are put in MetaStrings. If the MetaString consists entirely of digits, we convert it to a Number. We should probably consider adding a MetaNumber constructor to MetaValue, for better round-tripping with JSON etc. This change aids round-tripping in ipynb metadata fields, like `toc_depth`.
2019-03-27ipynb reader: avoid introducing spurious `.0` on integers in metadata.John MacFarlane2-1/+5
2019-03-27circleci - drop test on ghc 7.10, add ghc 8.6.4.John MacFarlane1-10/+3
2019-03-27Drop support for ghc < 8.John MacFarlane5-18/+2
2019-03-27CONTRIBUTING: replace reference to travis with circleci.John MacFarlane1-2/+1
2019-03-27circleci: back to -j2.John MacFarlane1-3/+3
2019-03-27circleci: recognize both Warning: and warning:.John MacFarlane1-1/+1
2019-03-27circelci: try using -j1.John MacFarlane1-3/+3
2019-03-27Remove install step from make quick-cabal.John MacFarlane1-2/+0
2019-03-27Add ghc-options to cabal.project.John MacFarlane2-2/+4
2019-03-27Quote RTS options in stack.yaml.John MacFarlane1-1/+1
2019-03-27circleci config - remove GHC_OPTS.John MacFarlane1-5/+4
Build into stack.yaml and cabal.project.local instead.
2019-03-27Add nice default ghc options to stack.yaml.John MacFarlane1-1/+1