Differential D8953 Diff 21309 src/markup/engine/remarkup/blockrule/PhutilRemarkupEngineRemarkupTableBlockRule.php
Changeset View
Changeset View
Standalone View
Standalone View
src/markup/engine/remarkup/blockrule/PhutilRemarkupEngineRemarkupTableBlockRule.php
Show All 19 Lines | if (preg_match('/^<table>/i', $lines[$cursor])) { | ||||
} | } | ||||
$cursor++; | $cursor++; | ||||
} | } | ||||
} | } | ||||
return $num_lines; | return $num_lines; | ||||
} | } | ||||
public function markupText($text) { | public function markupText($text, $children) { | ||||
$matches = array(); | $matches = array(); | ||||
if (!preg_match('@^<table>(.*)</table>$@si', $text, $matches)) { | if (!preg_match('@^<table>(.*)</table>$@si', $text, $matches)) { | ||||
return $this->fail( | return $this->fail( | ||||
$text, | $text, | ||||
'Bad table (expected <table>...</table>)'); | 'Bad table (expected <table>...</table>)'); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 73 Lines • Show Last 20 Lines |