diff --git a/lib/Text/Dokuwiki/Parser.pm b/lib/Text/Dokuwiki/Parser.pm index 1fc54c7..136d0bf 100644 --- a/lib/Text/Dokuwiki/Parser.pm +++ b/lib/Text/Dokuwiki/Parser.pm @@ -119,6 +119,9 @@ sub _parse_link { sub _parse_include { my ($self, $content) = @_; + $content =~ s/^{{//o; + $content =~ s/}}$//o; + if ($content =~ m|^([a-z]+)>(.*)|oi) { ... }