Content deleted Content added
also remove frame and framed |
also replace equals signs |
||
Line 87:
-- remove loose opening braces which don't have matching closing braces (and the subsequent content, which is probably just a template name)
file = mw.ustring.gsub(file, '{{.-([|%]])', '$1')
-- replace pipes and equals (which would otherwise break the {{#tag:}} syntax)
file = mw.ustring.gsub(file, '|', '{{!}}')
file = mw.ustring.gsub(file, '=', '{{=}}')
-- remove surrounding square brackets
file = mw.ustring.gsub(file, '^%[%[', '')
Line 169 ⟶ 170:
return frame:preprocess(output)
end
return p
|