Mauro Bieg
1d033a2691
add test/tables.xwiki to git and pandoc.cabal ( #5498 )
2019-05-12 10:37:37 -04:00
Albert Krewinkel
da9638e6a3
Org writer: always indent src blocks content by 2 spaces
...
Emacs always uses two spaces when indenting the content of src blocks,
e.g., when exiting a `C-c '` edit-buffer. Pandoc used to indent contents
by the space-equivalent of one tab, but now always uses two spaces, too.
Closes : #5440
2019-05-12 14:49:52 +02:00
Alexander Krotov
5c7ad59ffe
FB2 reader: add notes parsing test
2019-05-11 12:10:20 +00:00
Alexander Krotov
c1d9cf7daf
FB2 reader: parse notes
...
Closes #5493
2019-05-11 12:10:20 +00:00
Alexander Krotov
e9343b96bc
FB2 reader: use XML.Light.Input.parseXMLDoc to parse the root element
2019-05-11 10:34:17 +03:00
Alexander Krotov
692f88fd8f
Reduce the amount of state in FB2 reader
2019-05-11 10:12:08 +03:00
Alexander Krotov
53874d8bd6
FB2 reader: use Text.XML.Light.unqual where possible
2019-05-11 10:07:52 +03:00
♫ Christian Krause ♫
51fa5f6ee2
MANUAL.txt: removes double 'inside' ( #5489 )
2019-05-07 12:24:12 -04:00
John MacFarlane
98ee6ca289
Asciidoc writer: use `
+...+
` form for inline code.
...
The old `` `a__b__c` `` yields emphasis inside code in asciidoc.
To get a pure literal code span, use `` `+a__b__c+` ``.
2019-05-05 21:57:30 -07:00
John MacFarlane
5affa30e8a
Asciidoc writer: use proper smart quotes with asciidoctor.
...
Asciidoctor has a different format for smart quotes.
Closes #5487 .
2019-05-05 21:47:15 -07:00
John MacFarlane
548ffa38c3
LaTeX writer: don't produce columns environment unless beamer.
...
The environment is beamer-only and as far as I'm
aware there's no latex package that provides it
for non-beamer use.
Closes #5485 .
2019-05-05 07:26:18 -07:00
Albert Krewinkel
33e2d46dbe
Org reader: prefer plain symbols over math symbols
...
Symbols like `\alpha` are output plain and unemphasized, not as math.
Fixes : #5483
2019-05-05 14:48:37 +02:00
Albert Krewinkel
7e7bc3493e
Org reader: recognize emphasis after TODO/DONE keyword
...
Fixes : #5484
2019-05-05 13:53:11 +02:00
John MacFarlane
545da6113c
HTML writer: don't add variation selector if it's already there.
...
See f11d0c9dc8
This fixes round-trip failures.
2019-05-04 13:35:44 -07:00
John MacFarlane
fee3258280
Add template variable curdir
with working directory
...
from which pandoc is run. Closes #5464 .
2019-05-04 09:07:50 -07:00
John
2fa8c0dc96
FB2 writer: use genre metadata field ( #5478 )
2019-05-04 11:56:00 -04:00
John MacFarlane
9dd2eefded
JATS writer: fix citations with PMID so they validate.
...
Closes #5481 . This includes an update to data/jats.csl.
2019-05-04 08:45:43 -07:00
John MacFarlane
d73cb5f1a8
Improve c4a81fb941
.
...
We do want to recognize "0" as a number, even though
it has "0" as a prefix.
2019-05-04 08:44:59 -07:00
John MacFarlane
c4a81fb941
metaToJSON: treat digits starting with 0 as a string...
...
not a number.
Closes #5479 .
2019-05-03 22:41:24 -07:00
John MacFarlane
8478997980
EPUB2/3 templates: Move inline styles to default epub.css.
...
Those who use a custom CSS stylesheet with EPUB should
add these lines:
```css
code{ white-space: pre-wrap; }
span.smallcaps{ font-variant: small-caps; }
span.underline{ text-decoration: underline; }
q { quotes: "“" "”" "‘" "’"; }
div.column{ display: inline-block; vertical-align: top; width: 50%; }
```
See #5466 .
2019-05-03 22:25:46 -07:00
Eric Schrijver
63254ae958
Epub3 stylesheet link compatible with kindlegen ( #5466 )
...
daamien@411119b removes `type="text/css"` from both `<style>` and `<rel="stylesheet">` elements in all templates. However, Amazon’s kindlegen software relies on this attribute on `<link>` elements when detecting stylesheets to include.
2019-05-04 01:11:10 -04:00
Albert Krewinkel
786594b23b
Lua: add pandoc.system
module ( #5468 )
...
The `system` Lua module provides utility functions to interact with the
operating- and file system. E.g.
print(pandoc.system.get_current_directory())
or
pandoc.system.with_temporary_directory('tikz', function (dir)
-- write and compile a TikZ file with pdflatex
end)
2019-05-04 01:06:30 -04:00
John MacFarlane
4f260c96d9
LaTeX reader: Allow newlines in \mintinline
.
2019-05-03 10:18:16 -07:00
chinapedia
cfb3726216
MediaWiki reader: handle multiple attributes in table row ( #5471 )
2019-05-01 20:21:15 -04:00
Shim Myeongseob
73efef589a
Fix broken links in documents ( #5473 )
...
Fix broken links in doc/epub.md, doc/getting-started.md,
doc/customizing-pandoc.md, doc/using-the-pandoc-api.md.
Also, use absolute links to pandoc.org when possible, so that
the links can be followed by people viewing these documents
on GitHub.
2019-05-01 20:09:36 -04:00
John MacFarlane
a20323033e
Fix footnote in image caption.
...
Regression! The fix for #4683 broke this case.
2019-05-01 16:56:37 -07:00
Winnie Hellmann
4a7f5b6d13
Remove reference to head.min.js ( #5448 )
...
This file has been removed in 3.8.0: 29b0e86089
Add a note in the changelog that users will need to update reveal.js to at least 3.8.0
for their presentations generated with this version of pandoc to work correctly.
2019-05-01 19:08:12 -04:00
Albert Krewinkel
4d16239100
CI: test with GHC 8.6.5
2019-05-01 21:28:37 +02:00
John MacFarlane
f11d0c9dc8
HTML: prevent gratuitious emojification on iOS.
...
iOS chooses to render a number of Unicode entities,
including '↩', as big colorful emoji. This can be
defeated by appending Unicode
VARIATION SELECTOR-15'/'VARIATION SELECTOR-16'.
So we now append this character when escaping
strings, for both '↩' and '↔'.
If other characters prove problematic, they can
simply be added to needsVariationSelector.
Closes #5469 .
2019-04-30 22:32:52 -07:00
Alexander Krotov
2b2d9baaa8
Muse writer tests: compare Text without converting to [Char]
2019-04-28 03:21:14 +03:00
John MacFarlane
66dd2008b0
Fix --self-contained so it works when output format has extensions.
...
Previously if you used `--self-contained` with `html-smart` or
`html+smart`, it wouldn't work.
2019-04-25 21:56:26 -04:00
John MacFarlane
d88a601642
Allow use of -output-directory in --pdf-engine-opt.
...
This is currently possible with `mklatex` and `-outdir`, but
was not yet possible with xelatex and `-output-directory`.
Closes #5462 .
2019-04-23 10:08:25 -07:00
John MacFarlane
dd344715f6
EPUB writer: Ensure unique ids for styleesheets in content.opf.
...
Closes #5463 .
2019-04-23 09:48:50 -07:00
John MacFarlane
6699471484
HTML writer: Add class="heading" to level 7+ Headers...
...
rendered as p tags. Closes #5457 .
2019-04-20 22:24:24 -07:00
John MacFarlane
66ffe1831e
Update stack.yaml, use latest pandoc-citeproc and lts-13.
2019-04-18 21:36:39 -07:00
Herbert Valerio Riedel
75b2db9a84
Don't advertise base-4.8 support anymore ( #5455 )
...
Problem is that blaze-html provides the Semigroup instance for Html
conditionally only for base >= 4.9
2019-04-17 14:19:21 -07:00
John MacFarlane
1e6c6b449f
Allow QuickCheck 2.13.
2019-04-17 08:26:55 -07:00
John MacFarlane
e1cc73ed97
Text.Pandoc.PDF: replace </>
with literal "/".
...
We use forward-slash for a directory separator in tmpDir,
even on Windows (because that's what tex likes). So we
should not put a backslash between the tmpDir and the
filename on Windows. This is harmless enough in normal
Windows setups, but it breaks on Cygwin.
Closes #5451 . Thanks to @cc2x for noticing and diagnosing
the problem.
2019-04-16 21:12:42 -07:00
John MacFarlane
144b2eabc2
Tigthen up fix to #5446 .
...
We only treat Span as transparent if it has no attributes.
2019-04-16 09:32:19 -07:00
Matthew Doty
32e358bfe9
Improved sample lua tikz filter in lua-filters docs ( #5445 )
...
There are three changes:
- It only processes elements which begin with \begin{tikzpicture}
- It uses pdf2svg instead of imagemagick to preserve fidelity
- The images produced have transparent backgrounds
2019-04-15 21:39:03 -07:00
John MacFarlane
e409509a68
RST writer: treat Span as transparent.
...
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-15 09:48:11 -07:00
John MacFarlane
6d19c08e9f
LaTeX template: Add pdflang to hypersetup if lang is set.
...
Closes #5443 .
2019-04-11 16:58:36 -07:00
John MacFarlane
8f01044062
LaTeX reader: add braces when resolving \DeclareMathOperator
.
...
These seem to be needed for xelatex but not pdflatex.
Closes #5441 .
2019-04-10 21:26:23 -07:00
John MacFarlane
d50f2a0bf6
Update copyright year
2019-04-09 09:16:19 -07:00
John MacFarlane
0e37ed9f50
Use cmark-gfm 0.2.0.
2019-04-09 09:15:49 -07:00
ebiiim
bb5e079536
update: default.revealjs follow revealjs 3.8.0 ( #5435 )
2019-04-07 11:02:50 -06:00
Mauro Bieg
90dc3a3e13
Asciify.hs: add Turkish undotted-i ( #5434 )
...
fixes #5433
2019-04-07 11:01:56 -06:00
John MacFarlane
5e269b5326
Add Derek Chen-Becker to AUTHORS.md
2019-04-05 21:40:38 -07:00
Jesse Rosenthal
37d9e22028
clarify PowerPoint templating changes in changelog.
2019-04-05 19:55:17 -04:00
John MacFarlane
f75fcf6f31
Update man page and README.
2019-04-05 15:11:08 -07:00