[shadow] allow link-patterns to set link attributes #50

trentm opened this Issue Mar 7, 2011 · 1 comment


None yet
2 participants

trentm commented Mar 7, 2011

_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.*

Original description

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

FND commented Mar 14, 2011

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).

@FND FND referenced this issue Mar 14, 2011


optional link labels #53

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment