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

Set collapsible default value per directive #169

Closed
yannickseurin opened this issue Mar 6, 2024 · 2 comments
Closed

Set collapsible default value per directive #169

yannickseurin opened this issue Mar 6, 2024 · 2 comments

Comments

@yannickseurin
Copy link
Contributor

Hi!

If I'm not mistaken, currently it seems that the default collapsible value must be set globally for all directives.

It would be great if it were possible to set this default value to true for specific directives only.

@tommilligan
Copy link
Owner

Thanks for the suggestion - I agree that most global options should be applicable per block style.

I think the appropriate way to configure this would be like the custom array in the book.toml file, except with a collapsible property: https://tommilligan.github.io/mdbook-admonish/#custom-blocks

I think one of:

  • A new array of overrides for builtin directives
  • Just use the existing custom block, and if you specify a built-in directive, it overrides the default value

would work fine.

@yannickseurin
Copy link
Contributor Author

Closed with PR #174

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

No branches or pull requests

2 participants