Differential D10043 Diff 24164 src/markup/engine/remarkup/blockrule/PhutilRemarkupEngineRemarkupListBlockRule.php
Changeset View
Changeset View
Standalone View
Standalone View
src/markup/engine/remarkup/blockrule/PhutilRemarkupEngineRemarkupListBlockRule.php
Show First 20 Lines • Show All 305 Lines • ▼ Show 20 Lines | if ($cur_level > self::MAXIMUM_LIST_NESTING_DEPTH) { | ||||
'items' => array(), | 'items' => array(), | ||||
) + $items[$ii]; | ) + $items[$ii]; | ||||
} | } | ||||
return $nodes; | return $nodes; | ||||
} | } | ||||
$min = $l; | $min = $l; | ||||
for ($ii = $r - 1; $ii >= $l; $ii--) { | for ($ii = $r - 1; $ii >= $l; $ii--) { | ||||
if ($items[$ii]['depth'] < $items[$min]['depth']) { | if ($items[$ii]['depth'] <= $items[$min]['depth']) { | ||||
$min = $ii; | $min = $ii; | ||||
} | } | ||||
} | } | ||||
$min_depth = $items[$min]['depth']; | $min_depth = $items[$min]['depth']; | ||||
$nodes = array(); | $nodes = array(); | ||||
if ($min != $l) { | if ($min != $l) { | ||||
▲ Show 20 Lines • Show All 157 Lines • Show Last 20 Lines |