tommilligan / mdbook-admonish

A preprocessor for mdbook to add Material Design admonishments.
MIT License
171 stars 18 forks source link

Set collapsible default value per directive #169

Closed yannickseurin closed 3 months ago

yannickseurin commented 6 months ago

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 commented 6 months ago

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:

would work fine.

yannickseurin commented 3 months ago

Closed with PR #174