Originally from: What could a "spoiler tag" extension look like? - #61 by vitaly
This is a strong indicator that the div element should not have it’s own Markdown syntax, even as an extension. We should aim to add more semantic elements on a case by case basis instead.
If I wanted to create a box that applies for “warnings” or “notices”, via say… “.warning” or “.noticebox” classname. Then how would I do it? I usually do it via a div container, but that’s not very markdownish.
e.g.
:::: Success Notification :::::
... lorem ipsum etc...
:::::::::::::::::::::::::::::::
:::: Error Notification :::::
... lorem ipsum etc...
:::::::::::::::::::::::::::::::
:::: Info Notification :::::
... lorem ipsum etc...
:::::::::::::::::::::::::::::::
:::: Warning Notification :::::
... lorem ipsum etc...
:::::::::::::::::::::::::::::::
:::: Print Notification :::::
... lorem ipsum etc...
:::::::::::::::::::::::::::::::
:::: Purchase Notification :::::
... lorem ipsum etc...
:::::::::::::::::::::::::::::::
<div class="success-notification" ><p>lorem ipsum</p></div>
etc...