aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2015-01-31 22:05:28 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2015-01-31 22:07:33 -0800
commitb16965c3dbdcb60d72903b97ba85ff47cedeaf05 (patch)
tree573e141f6f4624652c79b733e120d758895c5112
parent3f4186695cdd47faa99b3cb72310cdde63fed91a (diff)
Clarified that link titles can't contain blank lines.
Added test case. Closes #271.
-rw-r--r--spec.txt17
1 files changed, 17 insertions, 0 deletions
diff --git a/spec.txt b/spec.txt
index 11b6496..21bef8c 100644
--- a/spec.txt
+++ b/spec.txt
@@ -1872,6 +1872,20 @@ line2
">foo</a></p>
.
+However, it may not contain a [blank line]:
+
+.
+[foo]: /url 'title
+
+with blank line'
+
+[foo]
+.
+<p>[foo]: /url 'title</p>
+<p>with blank line'</p>
+<p>[foo]</p>
+.
+
The title may be omitted:
.
@@ -5670,6 +5684,9 @@ A [link title](@link-title) consists of either
- a sequence of zero or more characters between matching parentheses
(`(...)`), including a `)` character only if it is backslash-escaped.
+Although [link title]s may span multiple lines, they may not contain
+a [blank line].
+
An [inline link](@inline-link) consists of a [link text] followed immediately
by a left parenthesis `(`, optional [whitespace], an optional
[link destination], an optional [link title] separated from the link