runarberg / markdown-it-math

Markdown-it plugin to include math in your document
MIT License
40 stars 18 forks source link

Optionally pass token directly to renderer #22

Closed lierdakil closed 7 years ago

lierdakil commented 7 years ago

This simple patch passes token itself to custom renderer function as a second parameter.

This is useful to handle token.attrs or whatever else in custom renderer, if some other plugin changes those.

This doesn't change existing API, only extends it.

Let me know if you want me to add a minimal testcase.

lierdakil commented 7 years ago

Hello? Any response? Anything?

runarberg commented 7 years ago

@lierdakil Sorry for the inactivity. I have not been a good maintainer. Merged 4.1.0

lierdakil commented 7 years ago

No problems, issues/PRs get occasionally lost in my inbox too. Thanks for merging!