GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
Already on GitHub? Sign in to your account
_This is a _shadow issue* for Issue 50 on Google Code (from which this project was moved).
Added 2010-11-06T07:19:44.000Z by sph...@gmail.com.
Labels: Type-Defect, Priority-Medium.
Please make updates to the bug there.*
I use a project that makes use of link_patterns to automatically convert "bug NNNN" to a bug link. I would like those bug links to have their title attributes set (to the summary of the bug), but link_patterns currently only controls the href attribute.
I am attaching a patch that allows a callable value in the link_patterns to return a dict containing arbitrary attributes to add to the <a> tag.
For my specific usage example, see https://bugzilla.mozilla.org/show_bug.cgi?id=609736
I have a similar need, using link_patterns to support wiki-page links like [[page]] or [[label|page]] - it appears that it's currently not possible to specify a custom label (here "page" or "label", respectively).