Skip to content

Commit

Permalink
Merge pull request markedjs#987 from gromnitsky/master
Browse files Browse the repository at this point in the history
add a test case for links defs & paragraphs
  • Loading branch information
joshbruce committed Dec 27, 2017
2 parents 3fe7464 + e038890 commit 18deb8b
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
10 changes: 10 additions & 0 deletions test/tests/links_reference_style.html
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,16 @@

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

<p>A link reference definition cannot interrupt a paragraph.
[bar]: /baz</p>
<p>[bar]</p>

<p>However, it can directly follow other block elements, such as headings</p>
<h1 id="-foo-"><a href="/url">Foo</a></h1>
<blockquote>
<p>bar</p>
</blockquote>

<hr>

<p>Here&#39;s one where the <a href="/url/">link
Expand Down
10 changes: 10 additions & 0 deletions test/tests/links_reference_style.text
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,16 @@ Backslashing should suppress \[this] and [this\].

[this]: foo

A link reference definition cannot interrupt a paragraph.
[bar]: /baz

[bar]

However, it can directly follow other block elements, such as headings

# [Foo]
[foo]: /url
> bar

* * *

Expand Down

0 comments on commit 18deb8b

Please sign in to comment.