diff --git a/MCServer/Plugins/APIDump/main.lua b/MCServer/Plugins/APIDump/main.lua
index 79559eab4..b16df3c04 100644
--- a/MCServer/Plugins/APIDump/main.lua
+++ b/MCServer/Plugins/APIDump/main.lua
@@ -295,10 +295,9 @@ function WriteHtmlClass(a_ClassAPI, a_AllAPI)
return;
end
+ -- Make a link out of anything with the special linkifying syntax {{link|title}}
local function LinkifyString(a_String)
- -- TODO: Make a link out of anything with the special linkifying syntax {{link|title}}
- -- a_String:gsub("{{([^|]*)|([^}])*}}", "%2");
- return a_String;
+ return (a_String:gsub("{{([^|]*)|([^}]*)}}", "%2")); -- The extra parenthesis remove the extra values returned by gsub()
end
-- Writes a table containing all functions in the specified list, with an optional "inherited from" header when a_InheritedName is valid
@@ -361,7 +360,7 @@ function WriteHtmlClass(a_ClassAPI, a_AllAPI)
cf:write("" .. a_ClassAPI.Name .. " class
\n");
if (a_ClassAPI.Desc ~= nil) then
cf:write("
"); - cf:write(a_ClassAPI.Desc); + cf:write(LinkifyString(a_ClassAPI.Desc)); cf:write("
\n"); end;