Permalink
Browse files

Fix for issue 285: need to reset the state for regular emphasis when …

…unwinding in toItalicsAndBold.
  • Loading branch information...
1 parent 6404514 commit f7bc32eefb7f1ac446d94fb057e9da24d6176e67 @michelf committed Oct 11, 2017
Showing with 1 addition and 0 deletions.
  1. +1 −0 Michelf/Markdown.php
View
@@ -1395,6 +1395,7 @@ protected function doItalicsAndBold($text) {
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);

0 comments on commit f7bc32e

Please sign in to comment.