Skip to content

Commit

Permalink
adjust commonmark tests 544-548, 556, 560 that contain markup inside …
Browse files Browse the repository at this point in the history
…the image description.

NON-COMPLIANT with commonmark (just a recommendation. This can be fixed in the future by using the InlineLexer+TextRenderer)
  • Loading branch information
Feder1co5oave committed Mar 6, 2018
1 parent d29f68a commit 2e23540
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 25 deletions.
24 changes: 12 additions & 12 deletions test/new/cm_links.html
Original file line number Diff line number Diff line change
Expand Up @@ -309,25 +309,25 @@ <h3 id="example-543">Example 543</h3>

<p><img src="/url" alt="foo543" title="title" /></p>

<h3 id="example-544">Example 544</h3>
<h3 id="example-5440">Example 5440</h3>

<p><img src="train.jpg" alt="foo bar" title="train &amp; tracks" /></p>
<p><img src="train.jpg" alt="foo *bar*544" title="train &amp; tracks" /></p>

<h3 id="example-545">Example 545</h3>
<h3 id="example-5450">Example 5450</h3>

<p><img src="/url2" alt="foo bar" /></p>
<p><img src="/url2" alt="foo ![bar](/url)" /></p>

<h3 id="example-546">Example 546</h3>
<h3 id="example-5460">Example 5460</h3>

<p><img src="/url2" alt="foo bar" /></p>
<p><img src="/url2" alt="foo [bar](/url)" /></p>

<h3 id="example-547">Example 547</h3>
<h3 id="example-5470">Example 5470</h3>

<p><img src="train.jpg" alt="foo bar" title="train &amp; tracks" /></p>
<p><img src="train.jpg" alt="foo *bar*547" title="train &amp; tracks" /></p>

<h3 id="example-548">Example 548</h3>
<h3 id="example-5480">Example 5480</h3>

<p><img src="train.jpg" alt="foo bar" title="train &amp; tracks" /></p>
<p><img src="train.jpg" alt="foo *bar*" title="train &amp; tracks" /></p>

<h3 id="example-549">Example 549</h3>

Expand Down Expand Up @@ -357,9 +357,9 @@ <h3 id="example-555">Example 555</h3>

<p><img src="/url" alt="foo" title="title" /></p>

<h3 id="example-556">Example 556</h3>
<h3 id="example-5560">Example 5560</h3>

<p><img src="/url" alt="foo bar" title="title" /></p>
<p><img src="/url" alt="*foo* bar" title="title" /></p>

<h3 id="example-557">Example 557</h3>

Expand Down
26 changes: 13 additions & 13 deletions test/new/cm_links.md
Original file line number Diff line number Diff line change
Expand Up @@ -398,31 +398,31 @@ The link text may contain ONE LEVEL of balanced brackets, but not unbalanced one

![foo543](/url "title")

### Example 544
### Example 5440

![foo *bar*]
![foo *bar*544]

[foo *bar*]: train.jpg "train & tracks"
[foo *bar*544]: train.jpg "train & tracks"

### Example 545
### Example 5450

![foo ![bar](/url)](/url2)

### Example 546
### Example 5460

![foo [bar](/url)](/url2)

### Example 547
### Example 5470

![foo *bar*][]
![foo *bar*547][]

[foo *bar*]: train.jpg "train & tracks"
[foo *bar*547]: train.jpg "train & tracks"

### Example 548
### Example 5480

![foo *bar*][foobar]
![foo *bar*][foobar548]

[FOOBAR]: train.jpg "train & tracks"
[FOOBAR548]: train.jpg "train & tracks"

### Example 549

Expand Down Expand Up @@ -458,7 +458,7 @@ My ![foo bar](/path/to/train.jpg "title" )

[foo]: /url "title"

### Example 556
### Example 5560

![*foo* bar][]

Expand All @@ -483,7 +483,7 @@ My ![foo bar](/path/to/train.jpg "title" )

[foo]: /url "title"

### Example 560
### Example 5600

![*foo* bar]

Expand Down

0 comments on commit 2e23540

Please sign in to comment.