Please sign in to comment.
Eliminate nested tags in XHTML TOC items.
Thanks to Ben Bullock for the test case. I did not use his solution, though. Instead, cache header text separately from body text, and use the text-only output in the TOC and its IDs. This also eliminates other elements from the TOC, such as the `<b>` elements seen in `t/xhtml10.t`, which I think makes for more consistent TOC output in general. Closes #31.
- Loading branch information...
Showing with 24 additions and 16 deletions.