From b41adca9ff51712e3bb9b52c414f9ad4e111ffff Mon Sep 17 00:00:00 2001 From: ghost Date: Thu, 1 Feb 2024 13:32:47 +0200 Subject: [PATCH] show file annotations only --- src/Dokuwiki/Reader.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/Dokuwiki/Reader.php b/src/Dokuwiki/Reader.php index db345fa..3753115 100644 --- a/src/Dokuwiki/Reader.php +++ b/src/Dokuwiki/Reader.php @@ -126,9 +126,10 @@ class Reader // Prepend tag meta or filename as plain description if (!empty($matches[0])) { - $lines[] = trim( - $matches[0], - '<>' + $lines[] = preg_replace( + '/^<.*\s(.+)>$/', + '$1', + $matches[0] ); }