aboutsummaryrefslogtreecommitdiff
path: root/test/writer.man
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2019-09-23 17:46:39 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2019-09-23 17:46:39 -0700
commitf223196c35bf9d714e0d2f44bd6cae8f413e70b2 (patch)
tree8e26972eea5f780be5d51a8735a0c63f3f1a4228 /test/writer.man
parente99050283edfd976ffba51256140a252d1e26508 (diff)
downloadpandoc-f223196c35bf9d714e0d2f44bd6cae8f413e70b2.tar.gz
Man writer: suppress non-absolute link URLs.
Motivation: in a man page there's not much use for relative URLs, which you can't follow. Absolute URLs are still useful. We previously suppressed relative URLs starting with '#' (purely internal links), but it makes sense to go a bit farther. Closes #5770.
Diffstat (limited to 'test/writer.man')
-rw-r--r--test/writer.man44
1 files changed, 22 insertions, 22 deletions
diff --git a/test/writer.man b/test/writer.man
index ebae6b78f..d3f1dfe14 100644
--- a/test/writer.man
+++ b/test/writer.man
@@ -6,7 +6,7 @@ Most of them are adapted from John Gruber\[cq]s markdown test suite.
.PP
* * * * *
.SH Headers
-.SS Level 2 with an embedded link (/url)
+.SS Level 2 with an embedded link
.SS Level 3 with \f[I]emphasis\f[R]
.SS Level 4
.SS Level 5
@@ -477,7 +477,7 @@ This is \f[I]emphasized\f[R], and so \f[I]is this\f[R].
.PP
This is \f[B]strong\f[R], and so \f[B]is this\f[R].
.PP
-An \f[I]emphasized link (/url)\f[R].
+An \f[I]emphasized link\f[R].
.PP
\f[B]\f[BI]This is strong and em.\f[B]\f[R]
.PP
@@ -618,36 +618,36 @@ Minus: -
.SH Links
.SS Explicit
.PP
-Just a URL (/url/).
+Just a URL.
.PP
-URL and title (/url/).
+URL and title.
.PP
-URL and title (/url/).
+URL and title.
.PP
-URL and title (/url/).
+URL and title.
.PP
-URL and title (/url/)
+URL and title
.PP
-URL and title (/url/)
+URL and title
.PP
-with_underscore (/url/with_underscore)
+with_underscore
.PP
Email link (mailto:nobody@nowhere.net)
.PP
-Empty ().
+Empty.
.SS Reference
.PP
-Foo bar (/url/).
+Foo bar.
.PP
-With embedded [brackets] (/url/).
+With embedded [brackets].
.PP
-b (/url/) by itself should be a link.
+b by itself should be a link.
.PP
-Indented once (/url).
+Indented once.
.PP
-Indented twice (/url).
+Indented twice.
.PP
-Indented thrice (/url).
+Indented thrice.
.PP
This should [not][] be a link.
.IP
@@ -657,9 +657,9 @@ This should [not][] be a link.
\f[R]
.fi
.PP
-Foo bar (/url/).
+Foo bar.
.PP
-Foo biz (/url/).
+Foo biz.
.SS With ampersands
.PP
Here\[cq]s a link with an ampersand in the
@@ -667,9 +667,9 @@ URL (http://example.com/?foo=1&bar=2).
.PP
Here\[cq]s a link with an amersand in the link text: AT&T (http://att.com/).
.PP
-Here\[cq]s an inline link (/script?foo=1&bar=2).
+Here\[cq]s an inline link.
.PP
-Here\[cq]s an inline link in pointy braces (/script?foo=1&bar=2).
+Here\[cq]s an inline link in pointy braces.
.SS Autolinks
.PP
With an ampersand: <http://example.com/?foo=1&bar=2>
@@ -699,9 +699,9 @@ or here: <http://example.com/>
.PP
From \[lq]Voyage dans la Lune\[rq] by Georges Melies (1902):
.PP
-[IMAGE: lalune (lalune.jpg)]
+[IMAGE: lalune]
.PP
-Here is a movie [IMAGE: movie (movie.jpg)] icon.
+Here is a movie [IMAGE: movie] icon.
.PP
* * * * *
.SH Footnotes