-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Link resolution plugin point #45
Comments
https://github.com/markdown-it/markdown-it/blob/master/docs/architecture.md#renderer You can override existing renderer, this feature already exists. |
Is the proper way to do this to override link_open (and image) in the renderer with a version that resolves the url? It seems more appropriate to modify the token data at an earlier stage, so that any other custom rules will get resolved URLs. |
You can do it in It's up to you - depends on your needs. |
I overrode link_open, but am only modifying the token and passing control on. I'll modify image after I refactor the code. This should let other overrides work as long as the ordering is correct. |
proofreading
I'm looking at making a plugin for the wintersmith static site generator to use markdown-it rather than marked.
One feature wintersmith has is the ability to link to pre-build content, and have the link be rewritten while building the static content to be a correct link to the final location. It adds this functionality by patching marked.
Is this something that markdown-it would consider adding as a proper feature?
The text was updated successfully, but these errors were encountered: