adds wrapper. adds archive-item-block to wrapper
This commit is contained in:
parent
21a011ac3b
commit
9e6fcfaf13
|
@ -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'))
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -0,0 +1,7 @@
|
|||
|
||||
|
||||
<div class="archive-item-block">
|
||||
|
||||
<?= $html ?>
|
||||
|
||||
</div>
|
Loading…
Reference in New Issue