findFirstParagraph
Finds the first paragraph tag in a rendered HTML string and returns its content. This function can be used to extract the first text block form a block variable to be used separately as a teaser text for the page in a pagelist. To get the first paragraph of a Markdown variable, the markdown
functions has to be applied before.
@{ +blocks | findFirstParagraph }
The first paragraph within a Markdown variable can be extracted as follows:
@{ text | markdown | findFirstParagraph }