Differential D14035 Diff 33930 src/markup/engine/remarkup/blockrule/PhutilRemarkupInterpreterBlockRule.php
Changeset View
Changeset View
Standalone View
Standalone View
src/markup/engine/remarkup/blockrule/PhutilRemarkupInterpreterBlockRule.php
| Show All 34 Lines | public function markupText($text, $children) { | ||||
| preg_match(self::START_BLOCK_PATTERN, head($lines), $matches); | preg_match(self::START_BLOCK_PATTERN, head($lines), $matches); | ||||
| $argv = array(); | $argv = array(); | ||||
| if (isset($matches[2])) { | if (isset($matches[2])) { | ||||
| $argv = id(new PhutilSimpleOptions())->parse($matches[2]); | $argv = id(new PhutilSimpleOptions())->parse($matches[2]); | ||||
| } | } | ||||
| $interpreters = id(new PhutilSymbolLoader()) | $interpreters = id(new PhutilClassMapQuery()) | ||||
| ->setAncestorClass('PhutilRemarkupBlockInterpreter') | ->setAncestorClass('PhutilRemarkupBlockInterpreter') | ||||
| ->loadObjects(); | ->execute(); | ||||
| foreach ($interpreters as $interpreter) { | foreach ($interpreters as $interpreter) { | ||||
| $interpreter->setEngine($this->getEngine()); | $interpreter->setEngine($this->getEngine()); | ||||
| } | } | ||||
| $lines[$first_key] = preg_replace( | $lines[$first_key] = preg_replace( | ||||
| self::START_BLOCK_PATTERN, | self::START_BLOCK_PATTERN, | ||||
| '', | '', | ||||
| Show All 36 Lines | |||||