Lines Matching defs:m1
171 private function isListTypeChanged($m0, $m1)
173 return (strncmp($m0['list'], $m1['list'], 1) !== 0);
371 $m1 = $this->interpret($match);
372 if (($m1['list'] == 'ol') && !isset($m1['num'])) {
373 $m1['num'] = 1;
377 $this->_openList($m1, $pos,$match,$handler);
379 $this->_openItem($m1, $pos,$match,$handler);
381 $this->_openWrapper($m1, $pos,$match,$handler);
383 if (isset($m1['p'])) $this->_openParagraph($pos,$match,$handler);
386 array_push($this->stack, $m1);
408 $m1 = $this->interpret($match);
410 // set m1 depth if dt and dd are in one line
411 if (($m1['depth'] == 0) && ($m0['item'] == 'dt')) {
412 $m1['depth'] = $m0['depth'];
416 if (empty($m1['mk']) && ($m1['depth'] > 0)) {
430 if ($m1['mk'] == '+:') {
432 if ($m0['depth'] > $m1['depth']) {
437 $m1['depth'] = min($m0['depth'], $m1['depth']);
443 if ($m0['depth'] >= $m1['depth']) {
449 while (isset($m0['depth']) && ($m0['depth'] > $m1['depth'])) {
464 if ($m1['mk'] == '+:') {
466 $m1['depth'] = $m0['depth'];
467 $m1 = $m0 + array('p' => 1);
470 array_push($this->stack, $m1);
475 if ($m0['depth'] < $m1['depth']) { // list becomes deeper
479 } else if ($m0['depth'] == $m1['depth']) {
483 if ($this->isListTypeChanged($m0, $m1)) {
490 if (($m0['depth'] < $m1['depth']) || (isset($m0['num']) && ($m0['num'] === 0))) {
491 if (isset($m1['num']) && !is_numeric($m1['num'])) $m1['num'] = 1;
492 $this->_openList($m1, $pos,$match,$handler);
494 if (isset($m1['num']) && !is_numeric($m1['num'])) $m1['num'] = $m0['num'] +1;
498 $this->_openItem($m1, $pos,$match,$handler);
500 $this->_openWrapper($m1, $pos,$match,$handler);
502 if (isset($m1['p'])) $this->_openParagraph($pos,$match,$handler);
505 array_push($this->stack, $m1);