Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: add true as accepted value for headings.anchorLinks option #208

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

stefanobartoletti
Copy link
Contributor

Simply add true as an accepted value for headings.anchorLinks option.

This PR is complementary to #206 and if accepted it will close #203.

I tested this both with pnpm test and manually in the playground, everything seems to be working as expected, but please take a moment to check if the implementation is ok for you.

@@ -67,7 +67,7 @@ export interface ModuleOptions {
headings?: {
anchorLinks?: {
[heading in 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6']?: boolean
} | false
} | boolean
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

issue: please see the type checking issue this PR and #206 introduced: #213

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.

Add option to disable all headings.anchorLinks at once
2 participants