| @@ 1313-1321 (lines=9) @@ | ||
| 1310 | $token =& $parts[1]; |
|
| 1311 | $text =& $parts[2]; |
|
| 1312 | ||
| 1313 | if (empty($token)) { |
|
| 1314 | # Reached end of text span: empty stack without emitting. |
|
| 1315 | # any more emphasis. |
|
| 1316 | while ($token_stack[0]) { |
|
| 1317 | $text_stack[1] .= array_shift($token_stack); |
|
| 1318 | $text_stack[0] .= array_shift($text_stack); |
|
| 1319 | } |
|
| 1320 | break; |
|
| 1321 | } |
|
| 1322 | ||
| 1323 | $token_len = strlen($token); |
|
| 1324 | if ($tree_char_em) { |
|
| @@ 1372-1375 (lines=4) @@ | ||
| 1369 | } else if ($token_len == 2) { |
|
| 1370 | if ($strong) { |
|
| 1371 | # Unwind any dangling emphasis marker: |
|
| 1372 | if (strlen($token_stack[0]) == 1) { |
|
| 1373 | $text_stack[1] .= array_shift($token_stack); |
|
| 1374 | $text_stack[0] .= array_shift($text_stack); |
|
| 1375 | } |
|
| 1376 | # Closing strong marker: |
|
| 1377 | array_shift($token_stack); |
|
| 1378 | $span = array_shift($text_stack); |
|