From 83d3bb75878bee6ff6f2728ef55735d9fa4b0611 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Sat, 11 Aug 2012 19:32:37 -0400 Subject: Don't edit headings in index document. --- (limited to 'scripts/MarkdownBook/Document/HTML.pm') diff --git a/scripts/MarkdownBook/Document/HTML.pm b/scripts/MarkdownBook/Document/HTML.pm index aabb0dd..0a2ba90 100644 --- a/scripts/MarkdownBook/Document/HTML.pm +++ b/scripts/MarkdownBook/Document/HTML.pm @@ -40,6 +40,11 @@ sub parse @{$self->{'tree_body'}} = MarkdownBook::HTMLTree::find_elements_by_tag_names( $self->{'tree'}, ('body')); + + if ($self->{'type'} eq 'index') { + return; + } + @headers = MarkdownBook::HTMLTree::find_elements_by_tag_names( @{$self->{'tree_body'}}[0], ('h1', 'h2')); -- cgit v0.9.1