-
-
Notifications
You must be signed in to change notification settings - Fork 15
Closed
Labels
Description
Summary
Markdown does support nested styling like bold italic right now this is not allowed within this project. But also multiple plaintextnodes are not supported
A simple fix for multiple plaintext nodes could be:
guides-markdown/src/Markdown/Parsers/InlineParsers/AbstractInlineTextDecoratorParser.php
$plainText = '';
$showWarning = false;
foreach ($content as $node) {
if ($node instanceof PlainTextInlineNode === false) {
$showWarning = true;
}
$plainText .= $node->getValue();
}
if ($showWarning) {
$this->logger->warning(sprintf('%s CONTEXT: Content of emphasis could not be interpreted: %s', $this->getType(), var_export($content, true)));
}
return $this->createInlineNode($commonMarkNode, $plainText);
Code snippet that reproduces the problem
_**bold italic**_
Expected output
<i><b>bold italic</b></i>