Changeset View
Changeset View
Standalone View
Standalone View
src/infrastructure/markup/blockrule/PhutilRemarkupListBlockRule.php
Show First 20 Lines • Show All 440 Lines • ▼ Show 20 Lines | if (!$this->getEngine()->isTextMode()) { | ||||
$tag = 'ol'; | $tag = 'ol'; | ||||
break; | break; | ||||
case '-': | case '-': | ||||
$tag = 'ul'; | $tag = 'ul'; | ||||
break; | break; | ||||
} | } | ||||
$start_attr = null; | $start_attr = null; | ||||
if (ctype_digit($starts_at) && $starts_at > 1) { | if (ctype_digit(phutil_string_cast($starts_at)) && $starts_at > 1) { | ||||
$start_attr = hsprintf(' start="%d"', $starts_at); | $start_attr = hsprintf(' start="%d"', $starts_at); | ||||
} | } | ||||
if ($has_marks) { | if ($has_marks) { | ||||
$out[] = hsprintf( | $out[] = hsprintf( | ||||
'<%s class="remarkup-list remarkup-list-with-checkmarks"%s>', | '<%s class="remarkup-list remarkup-list-with-checkmarks"%s>', | ||||
$tag, | $tag, | ||||
$start_attr); | $start_attr); | ||||
▲ Show 20 Lines • Show All 110 Lines • Show Last 20 Lines |