-
Notifications
You must be signed in to change notification settings - Fork 228
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
Broken link handler API is too inflexible #635
Comments
This sounds interesting, but implementing it it's not trivial because currently links have not more attributes and events are completely separated from rendering. A similar approach should be used for images and maybe even other HTML elements. |
I'm probably going to work around this without losing the original URL by replacing |
Currently, the
BrokenLinkCallback
API only allows preventing a broken link from being rendered as a link or altering the URL and/or title.In order to achieve the "apply a CSS class which colors broken links red" result I wanted, I had to resort to emitting
:BROKEN_LINK:
as the new URL and then using a second pass with quick-xml to filter that out and setclass="broken_link"
.The text was updated successfully, but these errors were encountered: