diff --git a/src/Extension/Strikethrough/StrikethroughDelimiterProcessor.php b/src/Extension/Strikethrough/StrikethroughDelimiterProcessor.php index af0fdb17c7..978e75a43f 100644 --- a/src/Extension/Strikethrough/StrikethroughDelimiterProcessor.php +++ b/src/Extension/Strikethrough/StrikethroughDelimiterProcessor.php @@ -44,7 +44,8 @@ public function getDelimiterUse(DelimiterInterface $opener, DelimiterInterface $ return 0; } - return \min($opener->getLength(), $closer->getLength()); + // $opener and $closer are the same length so we just return one of them + return $opener->getLength(); } public function process(AbstractStringContainer $opener, AbstractStringContainer $closer, int $delimiterUse): void