It should be working as expected now.
The problem with autolinks is allowing all cases to autolink, even though the rules are in conflict with each other:
- Only link whole words. Determining if it's a "whole" word depends on a whitelist of characters that can be considered a boundary of any word.
- Adjacent words should be possibly autolinked, so boundaries should be excluded from the result set.
- Words including the URL space character should be autolinked.
- Exclude words that start or end with a hypen - or _. Even though it's a special character, it is probably part of another word like wave-motion or a function_name and therefore not a distinct word.
- Allow words to contain characters that technically aren't word characters (like periods or hyphens), but still disallow those characters at the boundaries.
You were occasionally running into a collision with the last rule, since you have article names that end in a period, and you want them to autolink. Sometimes PHP was failing to find a boundary after the period, because the period itself is usually considered a boundary.
wiki demo headline-issues in stream bb-code tags