|
@@ 1108-1116 (lines=9) @@
|
| 1105 |
|
$token =& $parts[1]; |
| 1106 |
|
$text =& $parts[2]; |
| 1107 |
|
|
| 1108 |
|
if (empty($token)) { |
| 1109 |
|
# Reached end of text span: empty stack without emitting. |
| 1110 |
|
# any more emphasis. |
| 1111 |
|
while ($token_stack[0]) { |
| 1112 |
|
$text_stack[1] .= array_shift($token_stack); |
| 1113 |
|
$text_stack[0] .= array_shift($text_stack); |
| 1114 |
|
} |
| 1115 |
|
break; |
| 1116 |
|
} |
| 1117 |
|
|
| 1118 |
|
$token_len = strlen($token); |
| 1119 |
|
if ($tree_char_em) { |
|
@@ 1167-1170 (lines=4) @@
|
| 1164 |
|
} else if ($token_len == 2) { |
| 1165 |
|
if ($strong) { |
| 1166 |
|
# Unwind any dangling emphasis marker: |
| 1167 |
|
if (strlen($token_stack[0]) == 1) { |
| 1168 |
|
$text_stack[1] .= array_shift($token_stack); |
| 1169 |
|
$text_stack[0] .= array_shift($text_stack); |
| 1170 |
|
} |
| 1171 |
|
# Closing strong marker: |
| 1172 |
|
array_shift($token_stack); |
| 1173 |
|
$span = array_shift($text_stack); |