|
@@ 1205-1213 (lines=9) @@
|
| 1202 |
|
$token =& $parts[1]; |
| 1203 |
|
$text =& $parts[2]; |
| 1204 |
|
|
| 1205 |
|
if (empty($token)) { |
| 1206 |
|
# Reached end of text span: empty stack without emitting. |
| 1207 |
|
# any more emphasis. |
| 1208 |
|
while ($token_stack[0]) { |
| 1209 |
|
$text_stack[1] .= array_shift($token_stack); |
| 1210 |
|
$text_stack[0] .= array_shift($text_stack); |
| 1211 |
|
} |
| 1212 |
|
break; |
| 1213 |
|
} |
| 1214 |
|
|
| 1215 |
|
$token_len = strlen($token); |
| 1216 |
|
if ($tree_char_em) { |
|
@@ 1264-1267 (lines=4) @@
|
| 1261 |
|
} else if ($token_len == 2) { |
| 1262 |
|
if ($strong) { |
| 1263 |
|
# Unwind any dangling emphasis marker: |
| 1264 |
|
if (strlen($token_stack[0]) == 1) { |
| 1265 |
|
$text_stack[1] .= array_shift($token_stack); |
| 1266 |
|
$text_stack[0] .= array_shift($text_stack); |
| 1267 |
|
} |
| 1268 |
|
# Closing strong marker: |
| 1269 |
|
array_shift($token_stack); |
| 1270 |
|
$span = array_shift($text_stack); |