mirror of
https://github.com/erusev/parsedown.git
synced 2023-08-10 21:13:06 +03:00
Merge pull request #604 from aidantwoods/fix/autobreak
Ensure autobreak false is honoured over empty name
This commit is contained in:
commit
c6b717cc35
@ -1750,8 +1750,8 @@ class Parsedown
|
|||||||
|
|
||||||
foreach ($Elements as $Element)
|
foreach ($Elements as $Element)
|
||||||
{
|
{
|
||||||
$autoBreakNext = (isset($Element['name'])
|
$autoBreakNext = (isset($Element['autobreak']) && $Element['autobreak']
|
||||||
|| isset($Element['autobreak']) && $Element['autobreak']
|
|| ! isset($Element['autobreak']) && isset($Element['name'])
|
||||||
);
|
);
|
||||||
// (autobreak === false) covers both sides of an element
|
// (autobreak === false) covers both sides of an element
|
||||||
$autoBreak = !$autoBreak ? $autoBreak : $autoBreakNext;
|
$autoBreak = !$autoBreak ? $autoBreak : $autoBreakNext;
|
||||||
|
Loading…
Reference in New Issue
Block a user