markdown-it / markdown-it-container

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

Feature: Add title to container block #8

Closed alinex closed 8 years ago

alinex commented 8 years ago

I'd like to have an optional title text:

::: info Tips and Tricks
You may....
:::

This should be transformed to:

<div class="info">
<header>Tips and Tricks</header>
<p>You may...</p>
</div>

If no title given it should behave like now.

puzrin commented 8 years ago

Customize the renderer as in readme example.

alinex commented 8 years ago

Thanks, that works great for me.