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

I have a Module:Autolink that automatically links input while handling bold, italics, and presentational quotes so they don't get linked (so that you can have, for example,  on a page and it will render as  ), and due to how the module is meant to be used (called from other templates and modules, where it's applied to parameter input that may be a list), it is designed to handle input given in an unordered list, linking each list item. For increased flexibility, I'd like to have it also be able to link ordered lists, but don't know how to go about this.

Also, I'd really appreciate any pointers for optimizing the module in general; because it's meant to be called from other templates or modules, I'd like to make sure it doesn't consume more resources than necessary, but I don't understand Lua nearly well enough yet to be able to spot such optimizations myself. 