function insert($tk) { if (count($this->children) == 0 && is_a($tk, 'NyaaParserTokenInline') && is_string($tk->children[0])) { if ('~' === $tk->children[0][0]) { $tk->children[0] = substr($tk->children[0], 1); $this->addClass('wiki-paragraph-indent'); } } return parent::insert($tk); }
function insert($tk) { if (is_a($tk, 'NyaaWikiListContainer') && $tk->level == $this->level) { foreach ($tk->children as $c) { $c->setParent($this); $this->children[] = $c; $this->last = $c; } return $c; } return parent::insert($tk); }