FlightGear wiki:Instant-Refs: Difference between revisions

Jump to navigation Jump to search
m
m (→‎Feature requests & ideas: we can do that now thanks to the recent AJAX/OpenLink addition)
Line 564: Line 564:
   }
   }
   // Convert non-wiki links
   // Convert non-wiki links
 
  // TODO: identify forum/devel list links, and use the AJAX/OpenLink helper to get a title/subject for unnamed links (using the existing xpath/regex helpers for that)
   html = html.replace(/<a.*?href="(.*?)".*?>(.*?)<\/a>/g, '[$1 $2]');
   html = html.replace(/<a.*?href="(.*?)".*?>(.*?)<\/a>/g, '[$1 $2]');
   // Remove triple dots from external links.
   // Remove triple dots from external links.

Navigation menu