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] ); }