diff --git a/src/Components/Inlines/Emphasis.php b/src/Components/Inlines/Emphasis.php index 289ea40..6203060 100644 --- a/src/Components/Inlines/Emphasis.php +++ b/src/Components/Inlines/Emphasis.php @@ -56,7 +56,11 @@ final class Emphasis implements Inline return null; } - $marker = $Excerpt->text()[0] === '*' ? '*' : '_'; + $marker = $Excerpt->text()[0]; + + if ($marker !== '*' && $marker !== '_') { + return null; + } if ($Excerpt->text()[1] === $marker && \preg_match(self::$STRONG_REGEX[$marker], $Excerpt->text(), $matches)) { $emphasis = 'strong';