Lines Matching refs:depth
110 * get markup and depth from the match
117 // depth: count double spaces indent after '\n'
118 $depth = substr_count(str_replace("\t", ' ', ltrim($match,' ')),' ');
121 $m = array('depth' => $depth);
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)) {
432 if ($m0['depth'] > $m1['depth']) {
435 // new paragraph can not be deeper than previous depth
436 // fix current depth quietly
437 $m1['depth'] = min($m0['depth'], $m1['depth']);
443 if ($m0['depth'] >= $m1['depth']) {
449 while (isset($m0['depth']) && ($m0['depth'] > $m1['depth'])) {
466 $m1['depth'] = $m0['depth'];
475 if ($m0['depth'] < $m1['depth']) { // list becomes deeper
479 } else if ($m0['depth'] == $m1['depth']) {
490 if (($m0['depth'] < $m1['depth']) || (isset($m0['num']) && ($m0['num'] === 0))) {