A plugin I recently published,
https://www.dokuwiki.org/plugin:autolink4 , has a bug. Links are rendered correctly (as plain text) in the abstract, but all links after the abstract are also appended. I've tried returning false in handle() or render(), but that just prevents the link text from being rendered at all. I also tried checking the length of $renderer->meta['description']['abstract'] against Doku_Renderer_metadata::ABSTRACT_MAX, but a lot of the time, the abstract isn't defined until after the end of the document.
Here's a simplified version of my render method:
function render($mode, Doku_Renderer $renderer, $data) {
if ($mode == 'xhtml') {
$renderer->doc .= $data['the html version'];
}
else {
$renderer->doc .= $data['the plaintext version'];
}
return true;
}