Closed mrflix closed 1 year ago
@mrflix I don't think this is a bug. You are choosing the methods/helpers that are for parsing inline Markdown/Kirbyytext. But then you throw at it text that isn't inline at all but all kinds of paragraphs, headlines, blocks... that kind of negates what the inline method is meant to return.
Why would you not use the normal kirbytext methods for your case?
That makes total sense 🙈 for me kti
was always kt
but without the paragraphs around the content. Obviously, headlines don't make sense here.
Description
Kirbytextinline seems to be broken. Running the following code or it's deviations (
$field->kirbytextinline()
andkirbytextinline()
) doesn't parse headlines, lists and quotes:Kirbytext without inline works correctly.
Expected behavior
All kirbytext should get parsed.
Screenshots
The link gets parsed (made it visible by unsetting the color and text-decoration in the starterkit). Other things don't get parsed:
To reproduce
<?php echo $page->text()->kt() ?>
to snippets/intro.phpYour setup
Kirby Version