@@ 1195-1203 (lines=9) @@ | ||
1192 | $token =& $parts[1]; |
|
1193 | $text =& $parts[2]; |
|
1194 | ||
1195 | if (empty($token)) { |
|
1196 | # Reached end of text span: empty stack without emitting. |
|
1197 | # any more emphasis. |
|
1198 | while ($token_stack[0]) { |
|
1199 | $text_stack[1] .= array_shift($token_stack); |
|
1200 | $text_stack[0] .= array_shift($text_stack); |
|
1201 | } |
|
1202 | break; |
|
1203 | } |
|
1204 | ||
1205 | $token_len = strlen($token); |
|
1206 | if ($tree_char_em) { |
|
@@ 1254-1257 (lines=4) @@ | ||
1251 | } else if ($token_len == 2) { |
|
1252 | if ($strong) { |
|
1253 | # Unwind any dangling emphasis marker: |
|
1254 | if (strlen($token_stack[0]) == 1) { |
|
1255 | $text_stack[1] .= array_shift($token_stack); |
|
1256 | $text_stack[0] .= array_shift($text_stack); |
|
1257 | } |
|
1258 | # Closing strong marker: |
|
1259 | array_shift($token_stack); |
|
1260 | $span = array_shift($text_stack); |