The below is code that works to only show the first paragraph, then show the rest. Is it possible to instead, show the first five or six paragraphs, then show the rest?
{# Split paragraphs using a limit of 2 #}
{% set paragraphs = block.body|split('</p>', 2) %}
{# Get first paragraph and add the missing closing tag #}
{% set firstParagraph = paragraphs|first ~ '</p>' %}
{{ firstParagraph|raw }}
{# The rest of the text is here, due to the limit in the split filter #}
{{ paragraphs|last|raw }}
Wordsmith works for this, but I'm unable to see a way to output the rest of the paragraphs.