diff --git a/MCServer/Plugins/APIDump/main.lua b/MCServer/Plugins/APIDump/main.lua index 446763905..e7f652bd5 100644 --- a/MCServer/Plugins/APIDump/main.lua +++ b/MCServer/Plugins/APIDump/main.lua @@ -349,7 +349,9 @@ function WriteHtmlClass(a_ClassAPI, a_AllAPI) -- Make a link out of anything with the special linkifying syntax {{link|title}} local function LinkifyString(a_String) - return (a_String:gsub("{{([^|]*)|([^}]*)}}", "%2")); -- The extra parenthesis remove the extra values returned by gsub() + local txt = a_String:gsub("{{([^|]*)|([^}]*)}}", "%2") -- {{link|title}} + txt = txt:gsub("{{([^|]*)}}", "%1") -- {{LinkAndTitle}} + return txt; end -- Writes a table containing all functions in the specified list, with an optional "inherited from" header when a_InheritedName is valid