Closed
Description
Initial checklist
- I read the support docs
- I read the contributing guide
- I agree to follow the code of conduct
- I searched issues and discussions and couldn’t find anything (or linked relevant results below)
Affected package
mdast-util-directive
Steps to reproduce
parsing this markdown :
:::outside
:::inside
Hello
:::
:::inside
World
:::
:::
Actual behavior
the first closing pattern :::
closes the inside and outside containers instead of just the last one opened
So they are nested, but only one container can be nested in an another one, the "World" container isn't in the outside container as expected
Expected behavior
the closing pattern should only close one container, not several at a time and only the deepest (latest) one opened.
Runtime
No response
Package manager
No response
Operating system
No response
Build and bundle tools
No response