mirror of
https://github.com/erusev/parsedown.git
synced 2023-08-10 21:13:06 +03:00
Trim paragraph contents
This commit is contained in:
parent
0f55cd5b26
commit
3dd1326ded
|
@ -70,7 +70,7 @@ final class Paragraph implements ContinuableBlock
|
||||||
return new Element(
|
return new Element(
|
||||||
'p',
|
'p',
|
||||||
[],
|
[],
|
||||||
$State->applyTo(Parsedown::line($this->text, $State))
|
$State->applyTo(Parsedown::line(\trim($this->text), $State))
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<p><a href="http://example.com">link</a></p>
|
<p><a href="http://example.com">link</a></p>
|
||||||
<p><a href="/url-(parentheses)">link</a> with parentheses in URL </p>
|
<p><a href="/url-(parentheses)">link</a> with parentheses in URL</p>
|
||||||
<p>(<a href="/index.php">link</a>) in parentheses</p>
|
<p>(<a href="/index.php">link</a>) in parentheses</p>
|
||||||
<p><a href="http://example.com"><code>link</code></a></p>
|
<p><a href="http://example.com"><code>link</code></a></p>
|
||||||
<p><a href="http://example.com"><img src="http://parsedown.org/md.png" alt="MD Logo" /></a></p>
|
<p><a href="http://example.com"><img src="http://parsedown.org/md.png" alt="MD Logo" /></a></p>
|
||||||
|
|
|
@ -13,4 +13,4 @@
|
||||||
</ol>
|
</ol>
|
||||||
<p>foo 1. the following should not start a list
|
<p>foo 1. the following should not start a list
|
||||||
100.<br />
|
100.<br />
|
||||||
200. </p>
|
200.</p>
|
Loading…
Reference in New Issue
Block a user