Fix for issue 285: need to reset the state for regular emphasis when unwinding in toItalicsAndBold.

This commit is contained in:
Michel Fortin 2017-10-10 20:04:05 -04:00
parent 64045149fa
commit f7bc32eefb

View file

@ -1395,6 +1395,7 @@ class Markdown implements MarkdownInterface {
if (strlen($token_stack[0]) == 1) {
$text_stack[1] .= array_shift($token_stack);
$text_stack[0] .= array_shift($text_stack);
$em = '';
}
// Closing strong marker:
array_shift($token_stack);