Of course:
<?php
kirbytext::$tags['lead'] = array(
'html' => function($tag) {
return '<p class="lead">' . $tag->attr('lead') . '</p>';
}
);
Now I got my error… it’s because of the p-tag. If I use a div, everything is fine. It’s obvious, because kirbytext() creates its own paragraphs.
But thanks anyway.