### Have you read the Contributing Guidelines on issues? - [X] I have read the [Contributing Guidelines on issues](https://github.com/facebook/docusaurus/blob/main/CONTRIBUTING.md#reporting-new-issues). ### Prerequisites - [X] I'm using the latest version of Docusaurus. - [X] I have tried the `npm run clear` or `yarn clear` command. - [X] I have tried `rm -rf node_modules yarn.lock package-lock.json` and re-installing packages. - [ ] I have tried creating a repro with https://new.docusaurus.io. - [ ] I have read the console error message carefully (if applicable). ### Description When nesting admonitions, the first seen stop-word (Line starting with `:::`) exits the first admonition block. ### Reproducible demo _No response_ ### Steps to reproduce 1. Add the following snippet with nested admonitions to a markdown page ```md :::info Weather On nice days, you can enjoy skiing in the mountains. :::danger Storms Take care of snowstorms... ::: ::: ``` ### Expected behavior <img width="656" alt="expected" src="https://user-images.githubusercontent.com/22354689/200580065-3f6ac016-5c71-4277-a66c-c63596136bc4.png"> ### Actual behavior <img width="589" alt="current" src="https://user-images.githubusercontent.com/22354689/200580005-29e60cd3-7fd6-43d5-9906-f3214f180d85.png"> ### Your environment - Docusaurus version used: 2.2.0 ### Self-service - [X] I'd be willing to fix this bug myself.
Have you read the Contributing Guidelines on issues?
Prerequisites
npm run clearoryarn clearcommand.rm -rf node_modules yarn.lock package-lock.jsonand re-installing packages.Description
When nesting admonitions, the first seen stop-word (Line starting with
:::) exits the first admonition block.Reproducible demo
No response
Steps to reproduce
Expected behavior
Actual behavior
Your environment
Self-service