public function getPriority()
public function getPriority()
PhutilRemarkupBlockRule
Determine the order in which blocks execute. Blocks with smaller priority numbers execute sooner than blocks with larger priority numbers. The default priority for blocks is 500.
Priorities are used to disambiguate syntax which can match multiple patterns. For example, - Lorem ipsum... may be a code block or a list.
PhutilRemarkupListBlockRule
This rule must apply before the Code block rule because it needs to win blocks which begin - Lorem ipsum.
Return
int | Priority at which this block should execute. |
final public function getPriorityVector()Inherited
final public function getPriorityVector()
Inherited
Return
wild |
public function markupText($text, $children)
public function markupText($text, $children)
Parameters
$text | ||
$children |
Return
wild |
public function getMatchingLineCount($lines, $cursor)
public function getMatchingLineCount($lines, $cursor)
PhutilRemarkupBlockRule
This will get an array of unparsed lines and return the number of lines from the first array value that it can parse.
PhutilRemarkupListBlockRule
Parameters
array | $lines | $lines |
int | $cursor | $cursor |
Return
int |
protected function didMarkupText()Inherited
protected function didMarkupText()
Inherited
Return
wild |
public function willMarkupChildBlocks()Inherited
public function willMarkupChildBlocks()
Inherited
Return
wild |
public function didMarkupChildBlocks()Inherited
public function didMarkupChildBlocks()
Inherited
Return
wild |
final public function setEngine($engine)Inherited
final public function setEngine($engine)
Inherited
Parameters
PhutilRemarkupEngine | $engine |
Return
wild |
final protected function getEngine()Inherited
final protected function getEngine()
Inherited
Return
wild |
public function setMarkupRules($rules)Inherited
public function setMarkupRules($rules)
Inherited
Parameters
array | $rules |
Return
wild |
private function updateRules()Inherited
private function updateRules()
Inherited
Return
wild |
final public function getMarkupRules()Inherited
final public function getMarkupRules()
Inherited
Return
wild |
final public function postprocess()Inherited
final public function postprocess()
Inherited
Return
wild |
final protected function applyRules($text)Inherited
final protected function applyRules($text)
Inherited
Parameters
$text |
Return
wild |
public function supportsChildBlocks()Inherited
public function supportsChildBlocks()
Inherited
Return
wild |
public function extractChildText($text)Inherited
public function extractChildText($text)
Inherited
Parameters
$text |
Return
wild |
protected function renderRemarkupTable($out_rows)Inherited
protected function renderRemarkupTable($out_rows)
Inherited
Parameters
array | $out_rows |
Return
wild |
private function buildTree($items, $l, $r, $cur_level)
private function buildTree($items, $l, $r, $cur_level)
See additional notes in markupText().
Parameters
array | $items | |
$l | ||
$r | ||
$cur_level |
Return
wild |
private function adjustTreeStyleInformation(&$tree)
private function adjustTreeStyleInformation(&$tree)
See additional notes in markupText().
Parameters
array | &$tree |
Return
wild |
private function renderTree($tree, $level, $has_marks, $starts_at)
private function renderTree($tree, $level, $has_marks, $starts_at)
See additional notes in markupText().
Parameters
array | $tree | |
$level | ||
$has_marks | ||
$starts_at |
Return
wild |