Skip to content

Commit 18deb8b

Browse files
authored
Merge pull request #987 from gromnitsky/master
add a test case for links defs & paragraphs
2 parents 3fe7464 + e038890 commit 18deb8b

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

test/tests/links_reference_style.html

+10
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,16 @@
4343

4444
<p>Backslashing should suppress [this] and [this].</p>
4545

46+
<p>A link reference definition cannot interrupt a paragraph.
47+
[bar]: /baz</p>
48+
<p>[bar]</p>
49+
50+
<p>However, it can directly follow other block elements, such as headings</p>
51+
<h1 id="-foo-"><a href="/url">Foo</a></h1>
52+
<blockquote>
53+
<p>bar</p>
54+
</blockquote>
55+
4656
<hr>
4757

4858
<p>Here&#39;s one where the <a href="/url/">link

test/tests/links_reference_style.text

+10
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,16 @@ Backslashing should suppress \[this] and [this\].
5858

5959
[this]: foo
6060

61+
A link reference definition cannot interrupt a paragraph.
62+
[bar]: /baz
63+
64+
[bar]
65+
66+
However, it can directly follow other block elements, such as headings
67+
68+
# [Foo]
69+
[foo]: /url
70+
> bar
6171

6272
* * *
6373

0 commit comments

Comments
 (0)