diff options
author | P. J. McDermott <pjm@nac.net> | 2012-08-11 19:32:37 (EDT) |
---|---|---|
committer | P. J. McDermott <pjm@nac.net> | 2012-08-11 19:32:37 (EDT) |
commit | 83d3bb75878bee6ff6f2728ef55735d9fa4b0611 (patch) | |
tree | ab579c198e327bc6eeefa7048d2403f094f8332a /scripts/MarkdownBook/Document | |
parent | 25c5cb60385cf41fb6ae93066d3d8379be168908 (diff) |
Don't edit headings in index document.
Diffstat (limited to 'scripts/MarkdownBook/Document')
-rw-r--r-- | scripts/MarkdownBook/Document/HTML.pm | 5 |
1 files changed, 5 insertions, 0 deletions
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')); |