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

Consider adding a hook for plugins to disable other plugins #234

Open
hukkin opened this issue Jun 23, 2021 · 1 comment
Open

Consider adding a hook for plugins to disable other plugins #234

hukkin opened this issue Jun 23, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@hukkin
Copy link
Member

hukkin commented Jun 23, 2021

executablebooks/mdformat-myst#9 (comment)

@hukkin hukkin added the enhancement New feature or request label Jun 23, 2021
@LecrisUT
Copy link

I think best way to design this is to read for .mdformat.yaml in each folder, and merge the options of the last given .mdformat.yaml. Then expose an option of a dict where we define the keys as the plugins we want to load, and the values are how we configure, e.g.:

#.mdformat.yaml
plugins:
  mdformat-gfm:
---
#docs/.mdformat.yaml
plugins:
  mdformat-myst:
    args: [ --dollarmath ]
    exclude: README.md
  mdformat-gfm:
    include: README.md

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants