|
@@ 1043-1051 (lines=9) @@
|
| 1040 |
|
$token =& $parts[1]; |
| 1041 |
|
$text =& $parts[2]; |
| 1042 |
|
|
| 1043 |
|
if (empty($token)) { |
| 1044 |
|
# Reached end of text span: empty stack without emitting. |
| 1045 |
|
# any more emphasis. |
| 1046 |
|
while ($token_stack[0]) { |
| 1047 |
|
$text_stack[1] .= array_shift($token_stack); |
| 1048 |
|
$text_stack[0] .= array_shift($text_stack); |
| 1049 |
|
} |
| 1050 |
|
break; |
| 1051 |
|
} |
| 1052 |
|
|
| 1053 |
|
$token_len = strlen($token); |
| 1054 |
|
if ($tree_char_em) { |
|
@@ 1102-1105 (lines=4) @@
|
| 1099 |
|
} else if ($token_len == 2) { |
| 1100 |
|
if ($strong) { |
| 1101 |
|
# Unwind any dangling emphasis marker: |
| 1102 |
|
if (strlen($token_stack[0]) == 1) { |
| 1103 |
|
$text_stack[1] .= array_shift($token_stack); |
| 1104 |
|
$text_stack[0] .= array_shift($text_stack); |
| 1105 |
|
} |
| 1106 |
|
# Closing strong marker: |
| 1107 |
|
array_shift($token_stack); |
| 1108 |
|
$span = array_shift($text_stack); |