Differential D8953 Diff 21309 src/markup/engine/remarkup/blockrule/PhutilRemarkupEngineRemarkupNoteBlockRule.php
Changeset View
Changeset View
Standalone View
Standalone View
src/markup/engine/remarkup/blockrule/PhutilRemarkupEngineRemarkupNoteBlockRule.php
Show All 20 Lines | if (preg_match($this->getRegEx(), $lines[$cursor])) { | ||||
} | } | ||||
break; | break; | ||||
} | } | ||||
} | } | ||||
return $num_lines; | return $num_lines; | ||||
} | } | ||||
public function markupText($text) { | public function markupText($text, $children) { | ||||
$matches = array(); | $matches = array(); | ||||
preg_match($this->getRegEx(), $text, $matches); | preg_match($this->getRegEx(), $text, $matches); | ||||
if (idx($matches, 'showword')) { | if (idx($matches, 'showword')) { | ||||
$word = $matches['showword']; | $word = $matches['showword']; | ||||
$show = true; | $show = true; | ||||
} else { | } else { | ||||
$word = $matches['hideword']; | $word = $matches['hideword']; | ||||
▲ Show 20 Lines • Show All 59 Lines • Show Last 20 Lines |