John MacFarlane
0e2d6561be
MANUAL: add note about title-meta, author-meta, date-meta.
...
Closes #5486 .
2019-05-28 09:26:57 -07:00
John MacFarlane
8a5b9ac868
Add test for relative file: URI to #5517 .
2019-05-28 09:05:28 -07:00
Mauro Bieg
214da7217b
Fix handling of file:
URL scheme in downloadOrRead
( #5522 )
...
Move up the pattern match to be reachable, closes #5517 .
Previously `file:/` URLs were handled wrongly and pandoc attempted
to make HTTP requests, which failed.
2019-05-28 11:51:21 -04:00
John MacFarlane
0be83f24a9
Specify skylighting 0.8 as extra-deps.
2019-05-27 22:28:49 -07:00
John MacFarlane
167e52a424
EPUB writer: don't include 'landmarks' if there aren't any.
...
Previously we could get an empty ol element, which caused
validation errors with epubcheck.
2019-05-27 22:27:41 -07:00
John MacFarlane
3593dcda61
Use skylighting 0.8.
2019-05-27 12:15:43 -07:00
Mauro Bieg
d07ed83d70
consolidate simple-table detection ( #5524 )
...
add `onlySimpleTableCells` to `Text.Pandoc.Shared`
[API change]
This fixes an inconsistency in the HTML reader, which did not treat tables with `<p>` inside cells as simple.
2019-05-27 13:53:19 -04:00
Alexander Krotov
f807f5b383
Muse reader: allow images inside link descriptions
2019-05-25 19:17:16 +03:00
Alexander Krotov
7514277454
HTML reader: trim definition list terms
2019-05-25 18:36:56 +03:00
Alexander Krotov
19f9eed0bb
Muse writer: do not escape empty line after <br>
2019-05-25 17:54:31 +03:00
John MacFarlane
20144a205e
Disable missing-home-modules warning in stack.yaml.
...
Otherwise 'stack ghci' fails.
2019-05-23 09:47:09 -07:00
John MacFarlane
cc5f64ff49
Revert "appveyor - temporarily stop building pandoc-citeproc."
...
This reverts commit b71d67ea03
.
2019-05-23 08:12:28 -07:00
John MacFarlane
b71d67ea03
appveyor - temporarily stop building pandoc-citeproc.
...
Once we get this cached we can add it back?
2019-05-22 21:44:41 -07:00
John MacFarlane
aef71894ce
Markdown writer: Ensure the code fence is long enough.
...
Previously too few backticks were used when the code block
contained an indented line of backticks. (Ditto tildes.)
Cloess #5519 .
2019-05-22 15:21:15 -07:00
John MacFarlane
c17ace8c09
Makefile: remove --resolver= from targets.
...
This causes unnecessary recompilation.
2019-05-21 21:56:50 -07:00
Jesse Rosenthal
932093d1ad
Markdown writer: fix small error in ed73bd28
...
A `do` notation was left in a non-monadic function.
2019-05-21 12:35:41 -04:00
Jesse Rosenthal
ed73bd28e5
Markdown writer: Handle labels with integer names
...
Previously if labels had integer names, it could produce a conflict
with auto-labeled reference links. Now we test for a conflict and find
the next available integer.
Note that this involves adding a new state variable `stPrevRefs` to
keep track of refs used in other document parts when using
`--reference-location=block|section`
Closes #5495
2019-05-21 12:19:59 -04:00
Albert Krewinkel
6208d4e7fc
Improve output of Lua tests ( #5499 )
...
This makes use of tasty-lua, a package to write tests in Lua
and integrate the results into Tasty output. Test output becomes
more informative: individual tests and test groups become visible
in test output. Failures are reported with helpful error messages.
2019-05-20 12:52:28 -04:00
John MacFarlane
90141e7b4f
Add tex_math_dollars to multimarkdownExtensions.
...
This form is now supported in multimarkdown,
in addition to `tex_math_double_backslash`.
See #5512 .
2019-05-18 10:03:09 -07:00
John MacFarlane
b217137d98
Use new code signing cert for Windows.
2019-05-17 23:05:49 -07:00
John MacFarlane
9ff2de0fd4
Bump to 2.7.3
2019-05-17 23:04:09 -07:00
John MacFarlane
e87b54dcad
JATS writer: properly handle footnotes.
...
"Best Practice: When footnotes are grouped at the end of an article,
wrap them in a `<fn-group>` and use an `<xref>` element in the text, as
usual, to tie each footnote in the list to a particular location in the
text."
Closes #5511 .
2019-05-16 21:39:03 -07:00
Alexander Krotov
2e13c0a451
FB2 writer: do not wrap note references into <sup> and brackets
...
Existing FB2 readers, such as FBReader, already display links with type="note" as a superscript.
2019-05-15 13:31:07 +03:00
Alexander Krotov
f1fbec938f
hlint FB2 writer
2019-05-15 13:30:14 +03:00
Daniel Maslowski
d286363f97
Fix using Beamer with geometry ( #5505 )
...
Beamer already loads geometry, so we need to use the `\geometry`
command to set geometry options.
2019-05-15 00:18:52 -04:00
Albert Krewinkel
8b00bc6029
Org reader: fix planning elements in headers level 3 and higher
...
Planning info is now always placed before the subtree contents.
Previously, the planning info was placed after the content if the
header's subtree was converted to a list, which happens with headers of
level 3 and higher per default.
Fixes : #5494
2019-05-13 22:55:13 +02:00
Albert Krewinkel
00ef03827e
Org reader: omit, but warn about unknown export options
...
Unknown export options are properly ignored and omitted from the output.
2019-05-13 22:25:04 +02:00
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