Linkifier

By Keith Rarick Last update Jan 12, 2008 — Installed 1,095 times.

Post doesn't exist

Archived Comments (locked)

in
Subscribe to Archived Comments 2 posts, 2 voices



Jesse Andrews Admin

The following is an archive of comments made before threaded discussions was implemented (November 16th, 2008)

 
Osma User

This is great for linking between a development wiki, repository browser and issue tracker, making links from task identifiers and revision numbers.

However, one bug: if a HTML comment contains text that matches a defined substitution pattern, it will be converted into regular text (with a link inserted) and thus becomes visible.

I fixed this by changing this line in the linkify() function:

if (elem.data) {

to this:

if (elem.data && elem.nodeType != 8) {

Cross
Presentational HTML allowed.
Use <code> for inline code and <pre> for code blocks. Use &lt; and &gt; for literal < and >.
We help break paragraphs and link your links.
or cancel