Skip to content

Add CurrentUrl and MaxLevel to TocOptions#6

Open
marcogruhl wants to merge 1 commit intoleisn:masterfrom
marcogruhl:master
Open

Add CurrentUrl and MaxLevel to TocOptions#6
marcogruhl wants to merge 1 commit intoleisn:masterfrom
marcogruhl:master

Conversation

@marcogruhl
Copy link
Copy Markdown

Introduce TocOptions.CurrentUrl and use it to prefix TOC anchor hrefs so links work correctly on subpages. Add a MaxLevel property (default 6) to limit which heading levels are collected, and update AddHeading to skip headings below that level.

Introduce TocOptions.CurrentUrl and use it to prefix TOC anchor hrefs so links work correctly on subpages. Add a MaxLevel property (default 6) to limit which heading levels are collected, and update AddHeading to skip headings below that level.
@marcogruhl marcogruhl mentioned this pull request Mar 9, 2026
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.

1 participant