Skip to content

nested directive container not working properly #11

Closed
@lab9fr

Description

@lab9fr

Initial checklist

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    👎 phase/noPost cannot or will not be acted on🙋 no/questionThis does not need any changes

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions