Closed mil-ad closed 2 years ago
https://github.com/markdown-it/markdown-it-container/blob/master/index.js#L10-L22 see sources. Params are already supported, you only need to modify default renderer.
if anybody stumble upon this you can achieve this by:
validate
attrJoin
in the renderDefault
attrJoin
in the container
function for the opening token: token.attrJoin('class', params.trim().split(' ', 2)[0]);
Is it easy to tweak this plugin to make it match any name after
:::
? I'm looking for something that just adds a<div>
withclass
equals whatever follows:::