Skip to content

feat: Allow control of Header and Footer#316

Open
thompson-tomo wants to merge 10 commits intothlorenz:masterfrom
thompson-tomo:feat/#315_controlHeaderFooter
Open

feat: Allow control of Header and Footer#316
thompson-tomo wants to merge 10 commits intothlorenz:masterfrom
thompson-tomo:feat/#315_controlHeaderFooter

Conversation

@thompson-tomo
Copy link
Contributor

@thompson-tomo thompson-tomo commented Mar 2, 2026

Closes #315

Introduce configuration options which enable the header and footer of toc to be DRY ie no un-necessary content.

In the process introduce options to specify user definable headers and footers.

Note the title padding had been consolidated into the options object which makes it easier to pass properties through and test. Only that option could be move due to not being available in a released version.

The content block generation has been decoupled from the transform module which is the cause of the test changes.

An example of what could be added to header/footer is markdownlint/prettier pragma to enable/disable checks.

@thompson-tomo thompson-tomo marked this pull request as draft March 2, 2026 09:46
@thompson-tomo thompson-tomo force-pushed the feat/#315_controlHeaderFooter branch from 910343e to 9ec94fd Compare March 3, 2026 01:07
@thompson-tomo thompson-tomo marked this pull request as ready for review March 3, 2026 01:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Allow control of toc header/footer

1 participant