austgl / python-markdown2

Automatically exported from code.google.com/p/python-markdown2
Other
0 stars 0 forks source link

allow link-patterns to set link attributes #50

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
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

Original issue reported on code.google.com by sph...@gmail.com on 6 Nov 2010 at 7:19

Attachments: