Module:Delink: Difference between revisions

From the Croc Wiki, the Croc encyclopedia
Jump to navigationJump to search
Content added Content deleted
(remove html comments)
(html comments are probably mostly removed by the parser anyway - testing)
Line 138: Line 138:
local function _delink(args)
local function _delink(args)
local text = args[1] or ""
local text = args[1] or ""
text = mw.ustring.gsub(text, "<!%-%-.-%-%->", "") -- Remove html comments.
-- text = mw.ustring.gsub(text, "<!%-%-.-%-%->", "") -- Remove html comments.
text = delinkLinkClass(text, "^%[%[.-%]%]", delinkWikilink) -- De-link wikilinks.
text = delinkLinkClass(text, "^%[%[.-%]%]", delinkWikilink) -- De-link wikilinks.
text = delinkLinkClass(text, "^%[.-%]", delinkURL) -- De-link URLs.
text = delinkLinkClass(text, "^%[.-%]", delinkURL) -- De-link URLs.