To be able to identify replaced keywords in html output it would be helpful to add a class attribute.

Maybe for some click tracking purposes it may also be helpful to add an id to each link, see Enhanced Link Attribution.

Comments

osopolar created an issue. See original summary.

osopolar’s picture

Status: Active » Needs review
StatusFileSize
new1.88 KB

This patch adds the class linked_by_alinks to the replacement links.

osopolar’s picture

Title: Add class attribute to replacement link » Add class to keword replacement link
osopolar’s picture

StatusFileSize
new1.88 KB

Renamed class from linked_by_alinks to linked-by-alinks.

osopolar’s picture

StatusFileSize
new1.89 KB
osopolar’s picture

StatusFileSize
new1.86 KB

After modifying #3081917: The break statement in replace function prevents replacement of different keywords in same DOM node (there: #4) the patch from #5 (here) needs a re-roll.

To make it clear patch from #6 is only if you previously applied the bugfix from #3081917: The break statement in replace function prevents replacement of different keywords in same DOM node otherwise use patch from #4 ... hopefully any of my patches get committed soon :)