Skip to content

Commit

Permalink
Reset the TOC header count after a render (closes hoedown#147)
Browse files Browse the repository at this point in the history
  • Loading branch information
mildsunrise committed Dec 25, 2014
1 parent a8fdc09 commit 810c79d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/html.c
Original file line number Diff line number Diff line change
Expand Up @@ -612,6 +612,8 @@ toc_finalize(hoedown_buffer *ob, int inline_render, const hoedown_renderer_data
HOEDOWN_BUFPUTSL(ob, "</li>\n</ul>\n");
state->toc_data.current_level--;
}

state->toc_data.header_count = 0;
}

hoedown_renderer *
Expand Down

0 comments on commit 810c79d

Please sign in to comment.