New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pass token to renderer methods ? #2640
Labels
Comments
I would love this. It would make certain things so much easier. Unfortunately this would be a huge breaking change to most marked renderers. If we could do this in a way that would allow the tokens and deprecate the old way first I would be on board. |
Ideas, in my order of preference:
|
Ya this would be nice |
5 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the feature
Currently renderer methods get arguments cooked by marked
RendererParser, as incode(code, infostring, escaped)
.On the other hand, extensions rendered methods get a
token
parameter with all its properties.I request that all renderer methods get a token.
Why is this feature necessary?
For example this.renderer.list won't know if the list is loose.
Describe alternatives you've considered
I could have asked for this.renderer.list to get a
(body, ordered, start, loose)
signature.But passing the token around systematically seems to be much simpler.
The text was updated successfully, but these errors were encountered: