markdown-it / markdown-it-container

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

Expose source to renderer suppiled for specific container #24

Closed shankyty closed 6 years ago

shankyty commented 6 years ago

Is there way to expose state.src to render function registered for specific contianer. My use case is to read yaml from src which is a bit complicated to construct from tokens, what will be the right way to do it?

puzrin commented 6 years ago

IMHO it would be much more appropriate to use fenced block for such things. "container" here means, content inside is markdown, not any possible abstract data.