Closed alxmagro closed 9 months ago
Yes, it'd be ready helpful. In my project I wrap a container around a table, then on container rendering I parse the table's data and pass it into a custom Vue component. Since I no longer need the original table I've ended up just wrapping the content in <!--
comments.
You can iterate tokens
until you find one with type: 'container_<name>_close'
and remove all tokens between that and the open one.
This does not look like intended use
.parse
manually, then update tokens as needed, then call render.
I was trying to use
markdown-it-container
for get block content and render myself with some transformations, and I could append it to "opening tag" return, but the content is still rendering on output.Aside "validate", "render" and "marker", it could have option to omit output (eg.: "output: false").
It give more options to dev, to do thigs like I described above.