Browse Source

* Text::Dokuwiki::Render::Markdown : 'named' anchor

master
Zubrikhin Alexey 10 years ago
parent
commit
552f52cac5
  1. 5
      lib/Text/Dokuwiki/Render/Markdown.pm

5
lib/Text/Dokuwiki/Render/Markdown.pm

@ -59,7 +59,10 @@ sub li {
sub a { sub a {
my ($self, $attrs, $content) = @_; my ($self, $attrs, $content) = @_;
return sprintf("[%s](%s)", $self->treewalk($content), $attrs->{href}); return qq[<a name="$attrs->{name}"></a> ] . $content
if ($attrs->{name});
return sprintf("[%s](%s)", $content, $attrs->{href});
} }
sub p { sub p {

Loading…
Cancel
Save