-
-
Notifications
You must be signed in to change notification settings - Fork 9.9k
Remove legacy admonition keywords #9307
Copy link
Copy link
Open
Labels
domain: markdownRelated to Markdown parsing or syntaxRelated to Markdown parsing or syntaxproposalThis issue is a proposal, usually non-trivial changeThis issue is a proposal, usually non-trivial change
Milestone
Metadata
Metadata
Assignees
Labels
domain: markdownRelated to Markdown parsing or syntaxRelated to Markdown parsing or syntaxproposalThis issue is a proposal, usually non-trivial changeThis issue is a proposal, usually non-trivial change
Type
Fields
Give feedbackNo fields configured for issues without a type.
Have you read the Contributing Guidelines on issues?
Motivation
We historically have admonition keyword "aliases" that we don't even document since v2.0.
Those came from an old v2 dependency: https://github.com/elviswolcott/remark-admonitions
In Docusaurus v4 is time to remove them officially and throw an error for sites that still use them.
Note: in Docusaurus v3 we made
:::warningthe official admonition, and:::cautionan alias to remove in v4 (see #7558)EDIT: maybe we should have some kind of
siteConfig.markdown.admonitionsconfig and probably let users define their own set of directive/icon/color/label without requiring swizzling anything?Self-service