John MacFarlane
136bf901aa
Markdown reader: distinguish autolinks in the AST.
...
With this change, autolinks are parsed as Links with
the `uri` class. (The same is true for bare links, if
the `autolink_bare_uris` extension is enabled.) Email
autolinks are parsed as Links with the `email` class.
This allows the distinction to be represented in the
URI.
Formerly the `uri` class was added to autolinks by
the HTML writer, but it had to guess what was an autolink
and could not distinguish `[http://example.com ](http://example.com )`
from `<http://example.com >`. It also incorrectly recognized
`[pandoc](pandoc)` as an autolink. Now the HTML writer
simply passes through the `uri` attribute if it is present,
but does not add anything.
The Textile writer has been modified so that the `uri`
class is not explicitly added for autolinks, even if it
is present.
Closes #4913 .
2018-09-19 14:53:29 -07:00
Albert Krewinkel
dba5c8d4e3
Lua filter tests: produce better error on test failure
2018-09-19 21:36:19 +02:00
Albert Krewinkel
4264a1b143
Lua filter: cleanup filter execution code
2018-09-19 21:36:13 +02:00
Alexander Krotov
8f841297df
Muse reader: parse Text instead of String
...
Benchmark shows 7% improvement
2018-09-19 16:36:29 +03:00
Alexander Krotov
841784fb57
hlint Muse reader
2018-09-19 15:26:21 +03:00
Alexander Krotov
1b8c22de1d
Muse reader: get rid of HTML parser dependency
2018-09-19 15:19:06 +03:00
Alexander Krotov
6be2e43397
Muse reader: use openTag and closeTag everywhere
2018-09-19 14:06:14 +03:00
Alexander Krotov
94b9561e05
Muse reader: make openTag return association list
2018-09-19 14:05:55 +03:00
Alexander Krotov
1feb62cb24
Muse reader: add openTag and closeTag functions
2018-09-19 13:22:25 +03:00
John MacFarlane
6632f2f2ce
Add .options class to option headers in manual.
...
This will allow autogeneration of ids for particular
options in the manual.
2018-09-18 11:35:23 -07:00
John MacFarlane
9161dc4a6d
Merge pull request #4914 from danse/4912-2
...
parse rST inlines containing newlines closing #4912
2018-09-18 09:39:17 -07:00
danse
db2a68d089
parse rST inlines containing newlines closing #4912
...
this eliminates a regression error introduced after pandoc 2.1.1,
affecting rST inline parsing. see the issue for details
2018-09-18 13:31:09 +02:00
John MacFarlane
e09dc44c00
Makefile: Fix executable path in trypandoc target.
2018-09-16 22:31:35 -07:00
John MacFarlane
b694cdd9a6
Update changelog.
2018-09-16 20:43:25 -07:00
John MacFarlane
1dd899c242
MANUAL: use https for context wiki links.
...
Otherwise the wiki won't redirect.
Closes #4910 .
2018-09-16 20:41:20 -07:00
John MacFarlane
44e4f7b292
Markdown reader: example_lists should work without startnum.
...
Closes #4908 .
2018-09-16 20:40:32 -07:00
John MacFarlane
47034fd781
Use released version of pandoc-citeproc (0.14.4).
2018-09-16 20:00:26 -07:00
John MacFarlane
1cd03e30df
linux/Dockerfile: Use more recent (unofficial) stack.
2018-09-16 19:42:08 -07:00
John MacFarlane
24ccfedf7a
'make winpkg': Fixed creation of zips.
2018-09-16 16:15:08 -07:00
John MacFarlane
965806f087
Makefile: fix creation of windows zip.
...
This needed tweaking when the msi was fixed to be 64-bit,
so that 'Program Files (x86)' is used.
2018-09-16 14:00:18 -07:00
John MacFarlane
f9665d0f4a
Linux Dockerfile: try upgrading stack.
2018-09-16 13:55:13 -07:00
John MacFarlane
5776e62edf
Remove upx stuff from Dockerfile.
2018-09-16 13:53:43 -07:00
John MacFarlane
08a008af83
Fix 'make winpkg'.
2018-09-16 13:45:46 -07:00
John MacFarlane
04fce40cd6
Update manual date and man page.
2018-09-16 11:18:41 -07:00
John MacFarlane
d2e32f257e
Update changelog, AUTHORS.md.
2018-09-16 11:18:06 -07:00
Alexander Krotov
71776661cd
Muse writer: replace newlines in strings with spaces
2018-09-16 21:05:57 +03:00
John MacFarlane
18fed9f586
Merge pull request #4906 from chris-martin/patch-2
...
Fix haddock on 'Ext_footnotes'
2018-09-16 09:49:11 -07:00
Alexander Krotov
25163bfe53
Muse writer: output headers without asterisks if not on the top level
2018-09-16 09:29:08 +03:00
Chris Martin
b2cc2a2424
Fix haddock on 'Ext_footnotes'
2018-09-15 18:32:58 -04:00
John MacFarlane
6bd8037b8d
Merge pull request #4604 from mb21/yaml-file
...
Introduce --metadata-file option
2018-09-15 14:32:06 -07:00
Mauro Bieg
f736dea4ba
Docx writer: add MetaString case for abstract, subtitle ( #4905 )
...
fixes #4900
2018-09-15 11:55:23 -07:00
John MacFarlane
f6d8df2c76
MANUAL: clarify that --biblatex/--natbib don't work directly for PDF.
...
Closes #4904 .
2018-09-15 11:52:03 -07:00
mb21
5347e9454f
add test for --metadata-file
2018-09-15 17:06:10 +02:00
mb21
6aa5fcac13
introduce --metadata-file option
...
closes #1960
API change: Text.Pandoc.Readers.Markdown exports now `yamlToMeta`
2018-09-15 16:48:04 +02:00
mb21
73fa70c397
Markdown Reader: factor out yamlMap
2018-09-15 14:35:04 +02:00
mb21
51c1222457
Markdown Reader: factor out yamlBsToMeta
2018-09-15 13:22:45 +02:00
mb21
700f7a141f
Markdown Reader: rename yamlToMeta to yamlToMetaValue
2018-09-15 12:46:59 +02:00
mb21
bd5500ba7f
add test yaml-metadata-blocks.md
2018-09-15 12:10:10 +02:00
Mauro Bieg
2bd5ba2342
MANUAL.txt epub:type attribute ( #4901 )
2018-09-14 10:06:49 -07:00
John MacFarlane
fd107145e6
Another try at skipping round-trip tests in CI.
2018-09-13 12:33:52 -07:00
John MacFarlane
ed2cd734eb
Revert TESTPATTERN stuff from .travis.yml.
2018-09-13 12:23:15 -07:00
John MacFarlane
d944d4eeca
Update stack.lts9.yaml.
2018-09-13 10:24:52 -07:00
Alexander Krotov
f8d3f3a999
Muse writer: never wrap definition list terms
2018-09-12 14:03:24 +03:00
Alexander Krotov
3f8891b26f
Enable tables in HTML round trip test
2018-09-11 19:24:00 +03:00
Alexander Krotov
ca420983aa
HTML reader tests: accept Blocks in round trip test
2018-09-11 19:23:46 +03:00
Alexander Krotov
0ac3512cfe
Muse reader tests: accept Blocks instead of Block in round trip test
...
This way testcase can be shrinked better up to removing all blocks completely.
2018-09-11 14:22:09 +03:00
Alexander Krotov
1aac754359
Muse writer: set envInsideBlock = True when rendering notes
2018-09-11 14:10:20 +03:00
Alexander Krotov
e6ba0cc893
HTML writer: always output <dt> element, even if it is empty
...
Fixes #4883
2018-09-11 13:20:11 +03:00
Alexander Krotov
97f6833ee5
Muse writer: use "" instead of [] for empty String
2018-09-11 11:49:30 +03:00
Alexander Krotov
165a61095c
Muse writer: check for whitespace in the beginning and end of Str's
2018-09-11 11:49:11 +03:00