I have a markdown-field with some text in it;
The only markdown-option is bold, as you can see in the example above.
Now I want to spit out this text - with all the “bold” markup - inside a H2-tag;
I styled the H2, so the “bold” text is not bold - and has a lighter gray color.
This way, my client can easily select the words in the H2-tag that must have some highlights / accents.
But of course the html-output is something like this;
<h1><p>Normal text with <strong>a nice accent</strong> in it</h1>
It’s not allowed to have
<p> wrapped in a
<h2>, so how can I remove the wrapped-p-tags?
I get the value with something like
<?php echo $page->titletag()->kirbytext(); ?>
I tried this solution, but none of them worked;
###Is there anyway to preserve the markdown, but without the wrapper p-tags?