Board Thread:Lua Help/@comment-166269-20150219203903/@comment-166269-20150220051255

I want the module to handle list type detection automatically, there's no reason to burden the user with that task (especially since, as I said, this module is intended to be used in templates and other modules, and thus the type of input can't necessarily be predicted; also keep in mind that input may not be, and often is not, a list at all, but rather a single term to be turned into a single link). And the problem with simply splitting on  is that this would break section links, so at the very least you would have to split on. And there's another problem with your code, too, Arkondi; it is possible that lists passed will not have list markup for the first item (this would technically be misformatted and should be corrected, but because the module breaks down and rebuilds the list, it's a transparent issue as far as article viewers/editors are concerned).