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

v2: allow overriding default remark plugins in content-docs #3437

Closed
lunelson opened this issue Sep 11, 2020 · 3 comments · Fixed by #3467
Closed

v2: allow overriding default remark plugins in content-docs #3437

lunelson opened this issue Sep 11, 2020 · 3 comments · Fixed by #3467
Labels
difficulty: starter Issues that are starter difficulty level, e.g. minimal tweaking with a clear test plan. feature This is not a bug or issue with Docusausus, per se. It is a feature request for the future. good first issue If you are just getting started with Docusaurus, this issue should be a good place to begin. help wanted Asking for outside help and/or contributions to this particular issue or PR.

Comments

@lunelson
Copy link

🚀 Feature

I would like to override the default remark plugins in the content-docs plugin: for example, to have control over the markup generated by remark-admonitions. Perhaps we could have an option to turn the default ones on/off?

Or alternatively: the content-blog plugin allows the options beforeDefaultRemarkPlugins and beforeDefaultRehypePlugins, which if they were supported in docs-content (the docs say they are, but they are not) would allow me to insert my own plugin to process remark before the default one can be run

@lunelson lunelson added feature This is not a bug or issue with Docusausus, per se. It is a feature request for the future. status: needs triage This issue has not been triaged by maintainers labels Sep 11, 2020
@slorber slorber added difficulty: starter Issues that are starter difficulty level, e.g. minimal tweaking with a clear test plan. good first issue If you are just getting started with Docusaurus, this issue should be a good place to begin. help wanted Asking for outside help and/or contributions to this particular issue or PR. and removed status: needs triage This issue has not been triaged by maintainers labels Sep 11, 2020
@slorber
Copy link
Collaborator

slorber commented Sep 11, 2020

Make sense, we should have an option like beforeDefaultRemarkPlugins for all plugins supporting remark to make all this uniform (blog + docs + pages)

@ayshiff
Copy link
Contributor

ayshiff commented Sep 19, 2020

Can I work on it @slorber ?

@slorber
Copy link
Collaborator

slorber commented Sep 23, 2020 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
difficulty: starter Issues that are starter difficulty level, e.g. minimal tweaking with a clear test plan. feature This is not a bug or issue with Docusausus, per se. It is a feature request for the future. good first issue If you are just getting started with Docusaurus, this issue should be a good place to begin. help wanted Asking for outside help and/or contributions to this particular issue or PR.
Projects
None yet
3 participants