adds wrapper. adds archive-item-block to wrapper

This commit is contained in:
buttle 2021-09-13 13:11:52 +02:00
parent 21a011ac3b
commit 9e6fcfaf13
2 changed files with 10 additions and 1 deletions

View File

@ -75,6 +75,8 @@ class SimpleMDText extends AbstractBlockLayout
public function render(PhpRenderer $view, SitePageBlockRepresentation $block)
{
$parsedown = new Parsedown();
return $parsedown->text($block->dataValue('markdown_text'));
return $view->partial('common/block-layout/simpleMDText', [
'html' => $parsedown->text($block->dataValue('markdown_text'))
]);
}
}

View File

@ -0,0 +1,7 @@
<div class="archive-item-block">
<?= $html ?>
</div>