Kirbytext markdown sets text in * ... * italic

…whereas the the reference says that one should use _ … _

Since the texts on my website are German and I need to use gender-neutral language as in „Träger*in“ this breaks the text up into ems. Is there a way I can specifically target the * or am I doing something wrong? If I escape the markdown using

strip_tags($page->text()->kt());

it will not use any markdown but the *s are still not visible in the text.

My text in the template looks like this:

<div class="description">
    <?= $page->text()->kt() ?>
</div>

Markdown has two ways to mark up italics: https://daringfireball.net/projects/markdown/syntax#em

To keep the asterisks intact, you can backslash escape them: https://daringfireball.net/projects/markdown/syntax#backslash

1 Like