h5o / h5o-js

HTML5 outliner (JavaScript)
MIT License
115 stars 15 forks source link

Add an option to skip the top-level header when generating a ToC #18

Closed dominykas closed 9 years ago

dominykas commented 10 years ago

From jyass...@google.com on April 29, 2013 00:23:37

Generally inside a document the table of contents will appear below the top-level <h1>, so showing it again looks bad. This patch switches asHTML from taking a single boolean to taking an options object so that this sort of change is easier in the future.

Attachment: skipTopHeader.patch

Original issue: http://code.google.com/p/h5o/issues/detail?id=18