Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
also include =head4 in the table of contents
  • Loading branch information
kraih committed Nov 27, 2015
1 parent d51b3ae commit 893d669
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions Changes
Expand Up @@ -4,6 +4,7 @@
HTML/XML fragment around the content of root nodes.
- Fixed bug in Mojo::DOM where the wrap_content method would attempt to wrap
an HTML/XML fragment around nodes that do not have children.
- Fixed a few small formatting bugs in Mojolicious::Plugin::PODRenderer.

6.33 2015-11-22
- Updated IO::Socket::IP requirement to 0.37 for certain bug fixes.
Expand Down
2 changes: 1 addition & 1 deletion lib/Mojolicious/Plugin/PODRenderer.pm
Expand Up @@ -57,7 +57,7 @@ sub _html {
# Rewrite headers
my $toc = Mojo::URL->new->fragment('toc');
my @parts;
for my $e ($dom->find('h1, h2, h3')->each) {
for my $e ($dom->find('h1, h2, h3, h4')->each) {

push @parts, [] if $e->tag eq 'h1' || !@parts;
my $link = Mojo::URL->new->fragment($e->{id});
Expand Down

0 comments on commit 893d669

Please sign in to comment.