Differential D8953 Diff 21309 src/markup/engine/remarkup/blockrule/PhutilRemarkupEngineRemarkupSimpleTableBlockRule.php
Changeset View
Changeset View
Standalone View
Standalone View
src/markup/engine/remarkup/blockrule/PhutilRemarkupEngineRemarkupSimpleTableBlockRule.php
Show All 14 Lines | while (isset($lines[$cursor])) { | ||||
} else { | } else { | ||||
break; | break; | ||||
} | } | ||||
} | } | ||||
return $num_lines; | return $num_lines; | ||||
} | } | ||||
public function markupText($text) { | public function markupText($text, $children) { | ||||
$matches = array(); | $matches = array(); | ||||
$rows = array(); | $rows = array(); | ||||
foreach (explode("\n", $text) as $line) { | foreach (explode("\n", $text) as $line) { | ||||
// Ignore ending delimiters. | // Ignore ending delimiters. | ||||
$line = rtrim($line, '|'); | $line = rtrim($line, '|'); | ||||
// NOTE: The complexity in this regular expression allows us to match | // NOTE: The complexity in this regular expression allows us to match | ||||
▲ Show 20 Lines • Show All 46 Lines • Show Last 20 Lines |