lua : api, enable external formating functions

this should solve most of the problems of wiki vs usermanual syntax