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