| @@ 1239-1247 (lines=9) @@ | ||
| 1236 | $token = &$parts[1]; |
|
| 1237 | $text = &$parts[2]; |
|
| 1238 | ||
| 1239 | if (empty($token)) { |
|
| 1240 | // Reached end of text span: empty stack without emitting. |
|
| 1241 | // any more emphasis. |
|
| 1242 | while ($token_stack[0]) { |
|
| 1243 | $text_stack[1] .= array_shift($token_stack); |
|
| 1244 | $text_stack[0] .= array_shift($text_stack); |
|
| 1245 | } |
|
| 1246 | break; |
|
| 1247 | } |
|
| 1248 | ||
| 1249 | $token_len = strlen($token); |
|
| 1250 | if ($tree_char_em) { |
|
| @@ 1300-1303 (lines=4) @@ | ||
| 1297 | if ($token_len == 2) { |
|
| 1298 | if ($strong) { |
|
| 1299 | // Unwind any dangling emphasis marker: |
|
| 1300 | if (strlen($token_stack[0]) == 1) { |
|
| 1301 | $text_stack[1] .= array_shift($token_stack); |
|
| 1302 | $text_stack[0] .= array_shift($text_stack); |
|
| 1303 | } |
|
| 1304 | // Closing strong marker: |
|
| 1305 | array_shift($token_stack); |
|
| 1306 | $span = array_shift($text_stack); |
|