markdown-it / markdown-it-container

Fenced container plugin for markdown-it markdown parser
MIT License
496 stars 74 forks source link

How to nest with the same marker? #33

Closed RobertBeekman closed 4 years ago

RobertBeekman commented 4 years ago

Hi, this example given in #25 doesn't work because the markers are the same. Only left-col is placed inside the warning div.

::: warning
:::: left-col
::::
:::: middle
::::
:::: right
::::
:::

Results in:

<div class="warning">
    <div class="left-col"></div>
</div>
<div class="middle"></div>
<div class="right"></div>
<p>:::</p>

Is the only correct way to do this by giving left-col, midlde and right different markers? This makes for very messy markdown.

puzrin commented 4 years ago

link

::::: warning
*here be dragons*
:::: warning
123
::::
:::::

Outer marker should be bigger. See CM spec for fenced blocks