Hi,
I’m using the Markdown Field Kirby CMS plugin and am having trouble with the highlight
feature. Despite configuring the plugin as described, the ==highlight==
syntax isn’t rendering correctly.
Configuration Details:
Blueprint (YML):
title: Home page
sections:
fields:
type: fields
fields:
statament:
label:
en: Statement
es: Llamada inicial
pt: Abertura
it: Chiamata
type: markdown
buttons:
- highlight
Template:
<?php snippet('header') ?>
<div class="main">
<section class="statament">
<?php if ($page->statament()->isNotEmpty()): ?>
<div class="statament-txt">
<?= $page->statament()->kt() ?>
</div>
<?php endif ?>
<div class="home-btn">
<button>Problem</button>
<button>Person</button>
<button>Relation</button>
<button>Product</button>
</div>
</section>
</div>
<?php snippet('footer') ?>
Config (config.php
):
<?php
return [
'debug' => true,
'markdown' => [
'extra' => true
],
'languages' => true,
'languages.detect' => true,
'languages' => [
['code' => 'en', 'name' => 'English', 'default' => true, 'url' => '/'],
['code' => 'es', 'name' => 'Español', 'url' => '/es'],
['code' => 'pt', 'name' => 'Português', 'url' => '/pt'],
],
];
The expected output should render ==highlight==
as highlighted text, but it appears as plain text in the rendered HTML.
Notes:
- I understand that the default Markdown parser might not support
highlight
, but the plugin documentation suggests it should handle this. - The plugin replaces Kirby’s default Markdown parser, but I’m still seeing the default behavior.
Has anyone encountered a similar issue or have suggestions for getting the highlight feature to work properly?
Thanks!