1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-08-09 10:22:51 +03:00

Fixed drawing handling on HTML to Markdown conversion

This commit is contained in:
Dan Brown
2022-04-29 12:17:14 +01:00
parent d3b39fbe50
commit c8a7acb6c7
5 changed files with 55 additions and 3 deletions

View File

@@ -9,7 +9,7 @@ class CustomParagraphConverter extends ParagraphConverter
{
public function convert(ElementInterface $element): string
{
$class = $element->getAttribute('class');
$class = e($element->getAttribute('class'));
if (strpos($class, 'callout') !== false) {
return "<{$element->getTagName()} class=\"{$class}\">{$element->getValue()}</{$element->getTagName()}>\n\n";
}