Looks like it will work in most cases, but would rather see removal of the overhead from Jsoup.parse() that is currently executed on every line by this code (removing AutoLinkDetectors from Synapse Markdown Processor).  I think these AutoLinkDetectors can all be translated directly to standard parsers (extract the associated regular expressions, and extract the regular expression groups to replace params in the output html).