mirror of
https://github.com/erusev/parsedown.git
synced 2025-09-02 19:32:35 +02:00
Merge pull request #582 from aidantwoods/fix/formatting
Formatting adjustments
This commit is contained in:
@@ -586,22 +586,17 @@ class Parsedown
|
||||
|
||||
$requiredIndent = ($Block['indent'] + strlen($Block['data']['marker']));
|
||||
|
||||
if (
|
||||
$Line['indent'] < $requiredIndent
|
||||
and
|
||||
(
|
||||
if ($Line['indent'] < $requiredIndent
|
||||
and (
|
||||
(
|
||||
$Block['data']['type'] === 'ol'
|
||||
and preg_match('/^[0-9]+'.preg_quote($Block['data']['markerType']).'(?:[ ]+(.*)|$)/', $Line['text'], $matches)
|
||||
)
|
||||
or
|
||||
(
|
||||
) or (
|
||||
$Block['data']['type'] === 'ul'
|
||||
and preg_match('/^'.preg_quote($Block['data']['markerType']).'(?:[ ]+(.*)|$)/', $Line['text'], $matches)
|
||||
)
|
||||
)
|
||||
)
|
||||
{
|
||||
) {
|
||||
if (isset($Block['interrupted']))
|
||||
{
|
||||
$Block['li']['text'] []= '';
|
||||
|
Reference in New Issue
Block a user