Reference

Guide

markdown

A plaintext HTML/markdown/kirbytext block. This is perfect to combine WYSIWYG content with custom HTML, Kirbytext or Markdown.

Preview

Default snippet

/site/snippets/blocks/markdown.php
<?= $block->text()->kt() ?>

Default blueprint

name: field.blocks.markdown.name
icon: markdown
preview: markdown
fields:
  text:
    label: field.blocks.markdown.label
    placeholder: field.blocks.markdown.placeholder
    type: textarea
    buttons: false
    font: monospace

Default Vue Component

https://github.com/getkirby/kirby/blob/master/panel/src/components/Blocks/Types/Markdown.vue