John MacFarlane
ef2c970d0e
Fix harmless error in file-scope code.
...
Closes #5422 .
2019-04-02 16:33:59 -07:00
Derek Chen-Becker
45944b51a0
Add XWiki Support ( #4167 )
...
Add XWiki Support
Closes #1800
2019-04-02 17:27:02 -06:00
Jesse Rosenthal
0abb858a99
PowerPoint writer: Remove handoutsMasterList from template presentation.xml
...
We don't build it at the moment, so it was causing corruption.
2019-04-01 17:01:07 -04:00
Jesse Rosenthal
9a77da475e
PowerPoint writer: Build sp trees correctly
...
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-01 15:29:23 -04:00
Jesse Rosenthal
5e944bf5b0
PowerPoint writer: Correct application of reference doc for content
...
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-01 14:45:56 -04:00
Jesse Rosenthal
da802c1a2e
PowerPoint writer: Make default placeholder type for template lookup
...
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-01 14:45:56 -04:00
Mauro Bieg
0fa6951dc1
Dokuwiki Reader fix: parse single curly brace ( #5417 )
...
fixes #5416
2019-04-01 11:36:47 -06:00
Jesse Rosenthal
0d1fc7dfff
PowerPoint writer: add test for speaker notes after metadata.
2019-03-31 17:09:00 -04:00
Jesse Rosenthal
f72a67efdd
Pptx writer: Apply speaker snotes to metadata slide if applicable.
...
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-31 17:09:00 -04:00
Jesse Rosenthal
9d1a4d1086
Docs: Specify that templates from PPT 2013 are known to work.
...
There have been problems reported with other recent versions.
Starts to address #5402
2019-03-31 13:32:32 -04:00
Jesse Rosenthal
efa6304eee
Pptx writer: test for speaker notes after breaking header.
2019-03-30 22:52:31 -04:00
Jesse Rosenthal
dda5f0a572
Pptx writer: Correctly handle notes after section-title header
...
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-30 22:44:55 -04:00
John MacFarlane
79c82a2550
ipynb reader/writer: use format 'ipynb' for raw cell where no format given.
...
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-30 09:57:43 -07:00
John MacFarlane
036179e44a
MANUAL: add paragraph on options affecting markdown in ipynb.
2019-03-29 21:59:12 -07:00
John MacFarlane
acab2087bb
ipynb writer - consolidate adjacent raw blocks.
...
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-29 21:08:00 -07:00
John MacFarlane
93ee73e1dc
LaTeX writer: Avoid inadvertently creating ? or !
ligatures.
...
These are upside down ? and !, resp.
Closes #5407 .
2019-03-29 10:04:22 -07:00
John MacFarlane
5fa4ea8eb1
Update data/jats.csl to avoid commas between name-part elements.
...
Closes #5397 .
2019-03-28 21:21:05 -07:00
John MacFarlane
1595860059
HTML writer: Don't add data- prefix to RDFa attributes.
...
Closes #5403 .
2019-03-28 21:01:24 -07:00
John MacFarlane
40865958ce
Markdown reader: fenced div takes priority over setext header.
...
For
::: {.cell}
---
:::
2019-03-28 17:39:22 -07:00
John MacFarlane
261ad9fb3d
Ipynb reader: use html
for a raw cell with no format.
...
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-28 17:18:11 -07:00
John MacFarlane
83ea529cf3
Ipynb writer: fixed carry-over of nbformat from metadata.
...
Previously we wrongly assumed it would be in a MetaString.
It's an a MetaInlines.
2019-03-28 17:12:44 -07:00
John MacFarlane
9c7a57d648
stack.yml - remove -Wmissing-home-modules
...
This seems to cause problems with stack ghci.
2019-03-28 17:02:25 -07:00
John MacFarlane
2b0a0bba9c
Shared - improve metaToJSON with numbers.
...
We now do a better job marshalling numbers from MetaString
OR MetaInlines into JSON Number.
2019-03-28 17:01:32 -07:00
John MacFarlane
4c9a68e83f
Markdown writer: better rendering of numbers.
...
If the number is integral, we render it as an integral
not a float.
Closes #5398 .
2019-03-28 16:20:39 -07:00
John MacFarlane
ba613b2e9e
Markdown writer: proper rendering of empty map in YAML metadata.
...
Should be `{}` not empty string.
Partially addresses #5398 .
2019-03-28 14:10:00 -07:00
John MacFarlane
7fa5fbed9e
Use strict instead of lazy sum.
...
sum is lazy; replace with `foldl' (+) 0` to avoid stack
overflow in Text.Pandoc.Pretty with very long strings.
Closes #5401 .
2019-03-28 13:51:15 -07:00
John MacFarlane
b87a3efb93
Revert "appveyor - just build dependencies."
...
This reverts commit f520c4dfbb
.
2019-03-28 10:19:52 -07:00
John MacFarlane
33476b30f9
stack.yaml: remove RTS options
2019-03-28 08:58:11 -07:00
John MacFarlane
f520c4dfbb
appveyor - just build dependencies.
...
This should build up our cache so we can build the whole thing.
2019-03-28 08:46:54 -07:00
John MacFarlane
50ee9292cc
appveyor - save cache on error.
...
Hopefully this will allow new ghc builds to complete within 60 minutes,
after a try or two.
2019-03-27 23:27:08 -07:00
John MacFarlane
612e6555a9
ipynb writer: preserve nbformat_minor if it's given.
...
This helps with round-tripping.
2019-03-27 18:04:20 -07:00
John MacFarlane
6157f7ec4f
Writers.Shared.metaValueToJSON: use Number Values for integers.
...
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-27 17:11:14 -07:00
John MacFarlane
2138ef8239
ipynb reader: avoid introducing spurious .0
on integers in metadata.
2019-03-27 16:52:17 -07:00
John MacFarlane
47aaad705a
circleci - drop test on ghc 7.10, add ghc 8.6.4.
2019-03-27 11:40:18 -07:00
John MacFarlane
3ecc8d154b
Drop support for ghc < 8.
2019-03-27 11:38:24 -07:00
John MacFarlane
a43c0bf54b
CONTRIBUTING: replace reference to travis with circleci.
2019-03-27 11:27:56 -07:00
John MacFarlane
a0397bae98
circleci: back to -j2.
2019-03-27 11:26:41 -07:00
John MacFarlane
f5f8f903e1
circleci: recognize both Warning: and warning:.
2019-03-27 11:24:50 -07:00
John MacFarlane
3c88a2bf60
circelci: try using -j1.
2019-03-27 10:39:25 -07:00
John MacFarlane
53fd8e02af
Remove install step from make quick-cabal.
2019-03-27 10:06:55 -07:00
John MacFarlane
9e63924f28
Add ghc-options to cabal.project.
2019-03-27 09:36:52 -07:00
John MacFarlane
03293a4ac4
Quote RTS options in stack.yaml.
2019-03-27 09:36:27 -07:00
John MacFarlane
ec99e9de56
circleci config - remove GHC_OPTS.
...
Build into stack.yaml and cabal.project.local instead.
2019-03-27 09:24:17 -07:00
John MacFarlane
9e876fb568
Add nice default ghc options to stack.yaml.
2019-03-27 09:22:24 -07:00
John MacFarlane
44ef31b2ae
Another try at circleci config.
2019-03-27 09:02:40 -07:00
John MacFarlane
8358f6b94e
circleci config - don't use 'all' for cabal test.
2019-03-27 08:10:42 -07:00
John MacFarlane
2c3b8cd6d2
circleci - ensure that config doesn't change between build and test.
...
Print test output directly.
2019-03-27 07:31:15 -07:00
John MacFarlane
218565b229
circleci tweak - move up cabal v2-test.
2019-03-26 22:44:05 -07:00
John MacFarlane
d086a190d5
circleci - explicitly specify ghc version for cabal builds.
2019-03-26 22:25:44 -07:00
John MacFarlane
542272a52a
JATS writer: Ensure that plain strings go inside <pub-id>
tag.
...
See #5397 .
2019-03-26 21:43:59 -07:00