Scenario: On my static website, I want to implement the Read More Link functionality for my list pages for posts that indicate a split in content.
In my pages listing a series of posts via pagination, I want to show a "Read More" link in some entries, like how Wordpress's Read More Block works. For certain posts, the content of a post needs to be split. The portion of the content after the Read More indicator needs to be removed and replaced with a link to the full page saying "Read more..." or "Continue reading...". The Read More indicator might be an HTML comment or some other text construction placed in the content text of the post itself. This indicator should not affect the output of the content on the full post page, only the list pages.
I do not see a way to modify the MDX text (or other types) prior to calling entry.render(), which creates the <Content /> component that is then placed in the rendered output of the list page. Modifying entry.body prior to entry.render() does not do anything, and probably rightly so, as it appears to just be for our reference.
How can one either control the text that goes into the entry.render() function, or alternatively, how can we modify the output of <Content /> once it is rendered?