aboutsummaryrefslogtreecommitdiff
path: root/test/writer.context
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2017-05-25 12:50:43 +0200
committerJohn MacFarlane <jgm@berkeley.edu>2017-05-25 12:57:31 +0200
commit708973a33a0ce425bb21a5ffa06fbdab465d3fb8 (patch)
treeb0cf3d0dd00f098384d7a813e3754aa80b2bb512 /test/writer.context
parent650e1ac1fdbbb172c58c1898607a7f82806cf55e (diff)
downloadpandoc-708973a33a0ce425bb21a5ffa06fbdab465d3fb8.tar.gz
Added `spaced_reference_links` extension.
This is now the default for pandoc's Markdown. It allows whitespace between the two parts of a reference link: e.g. [a] [b] [b]: url This is now forbidden by default. Closes #2602.
Diffstat (limited to 'test/writer.context')
-rw-r--r--test/writer.context40
1 files changed, 18 insertions, 22 deletions
diff --git a/test/writer.context b/test/writer.context
index eafc56f2a..9884c82c9 100644
--- a/test/writer.context
+++ b/test/writer.context
@@ -787,19 +787,15 @@ Just a \useURL[url4][/url/][][URL]\from[url4].
Foo \useURL[url13][/url/][][bar]\from[url13].
-Foo \useURL[url14][/url/][][bar]\from[url14].
+With \useURL[url14][/url/][][embedded {[}brackets{]}]\from[url14].
-Foo \useURL[url15][/url/][][bar]\from[url15].
+\useURL[url15][/url/][][b]\from[url15] by itself should be a link.
-With \useURL[url16][/url/][][embedded {[}brackets{]}]\from[url16].
+Indented \useURL[url16][/url][][once]\from[url16].
-\useURL[url17][/url/][][b]\from[url17] by itself should be a link.
+Indented \useURL[url17][/url][][twice]\from[url17].
-Indented \useURL[url18][/url][][once]\from[url18].
-
-Indented \useURL[url19][/url][][twice]\from[url19].
-
-Indented \useURL[url20][/url][][thrice]\from[url20].
+Indented \useURL[url18][/url][][thrice]\from[url18].
This should {[}not{]}{[}{]} be a link.
@@ -807,41 +803,41 @@ This should {[}not{]}{[}{]} be a link.
[not]: /url
\stoptyping
-Foo \useURL[url21][/url/][][bar]\from[url21].
+Foo \useURL[url19][/url/][][bar]\from[url19].
-Foo \useURL[url22][/url/][][biz]\from[url22].
+Foo \useURL[url20][/url/][][biz]\from[url20].
\subsection[with-ampersands]{With ampersands}
-Here's a \useURL[url23][http://example.com/?foo=1&bar=2][][link with an
-ampersand in the URL]\from[url23].
+Here's a \useURL[url21][http://example.com/?foo=1&bar=2][][link with an
+ampersand in the URL]\from[url21].
Here's a link with an amersand in the link text:
-\useURL[url24][http://att.com/][][AT&T]\from[url24].
+\useURL[url22][http://att.com/][][AT&T]\from[url22].
-Here's an \useURL[url25][/script?foo=1&bar=2][][inline link]\from[url25].
+Here's an \useURL[url23][/script?foo=1&bar=2][][inline link]\from[url23].
-Here's an \useURL[url26][/script?foo=1&bar=2][][inline link in pointy
-braces]\from[url26].
+Here's an \useURL[url24][/script?foo=1&bar=2][][inline link in pointy
+braces]\from[url24].
\subsection[autolinks]{Autolinks}
-With an ampersand: \useURL[url27][http://example.com/?foo=1&bar=2]\from[url27]
+With an ampersand: \useURL[url25][http://example.com/?foo=1&bar=2]\from[url25]
\startitemize[packed]
\item
In a list?
\item
- \useURL[url28][http://example.com/]\from[url28]
+ \useURL[url26][http://example.com/]\from[url26]
\item
It should.
\stopitemize
An e-mail address:
-\useURL[url29][mailto:nobody@nowhere.net][][nobody@nowhere.net]\from[url29]
+\useURL[url27][mailto:nobody@nowhere.net][][nobody@nowhere.net]\from[url27]
\startblockquote
-Blockquoted: \useURL[url30][http://example.com/]\from[url30]
+Blockquoted: \useURL[url28][http://example.com/]\from[url28]
\stopblockquote
Auto-links should not occur here: \type{<http://example.com/>}
@@ -880,7 +876,7 @@ Here is a footnote reference,\footnote{Here is the footnote. It can go
indent the first line of each block.\stopbuffer\footnote{\getbuffer} This
should {\em not} be a footnote reference, because it contains a space.{[}^my
note{]} Here is an inline note.\footnote{This is {\em easier} to type. Inline
- notes may contain \useURL[url31][http://google.com][][links]\from[url31] and
+ notes may contain \useURL[url29][http://google.com][][links]\from[url29] and
\type{]} verbatim characters, as well as {[}bracketed text{]}.}
\startblockquote