mnelson4 / printmyblog

WordPress Plugin that simplifies printing your entire blog
GNU General Public License v3.0
16 stars 6 forks source link

Add sub-headings to TOCs #349

Open mnelson4 opened 2 years ago

mnelson4 commented 2 years ago

Eg h2s and h3s under articles. This should be an option of each design.

Here's how to do that with Prince: https://www.princexml.com/doc/prince-output/#bookmark-levels

If enabled, sub-headings should appear a level below their section's title. E.g., .pmb-depth-0's h2s should have depth 2 (whereas the h1 title had depth 1); and .pmb-depth-1's h2s should have depth 3. So .pmb-depth-0 h2 and .pmb-depth-1 h1 both get depth 2.