markdown
A plaintext HTML/markdown/kirbytext block. This is perfect to combine WYSIWYG content with custom HTML, Kirbytext or Markdown.
Preview
![](https://assets.getkirby.com/media/pages/docs/reference/panel/blocks/markdown/4fab6eda7d-1717846665/markdown-block.png?width=960&height=407&enlarge=0)
Default files
Snippet
<?php /** @var \Kirby\Cms\Block $block */ ?>
<?= $block->text()->kt();
To overwrite this default snippet, place your custom file in /site/snippets/blocks/markdown.php
.
Blueprint
name: field.blocks.markdown.name
icon: markdown
preview: markdown
wysiwyg: true
fields:
text:
label: field.blocks.markdown.label
placeholder: field.blocks.markdown.placeholder
type: textarea
buttons: false
font: monospace
To overwrite this default blueprint, place your custom file in /site/blueprints/blocks/markdown.yml
.
Vue component
kirby/blob/main/panel/src/components/Forms/Blocks/Types/Markdown.vue