Module:Tone superscript: Difference between revisions

Content deleted Content added
mNo edit summary
mNo edit summary
Line 6:
local x = arg:gsub("(%d)", "<sup>%1</sup>")
x = x:gsub("(%d)</sup>%*<sup>(%d)", "%1*%2")
x = x:gsub("<sup>(<sup>)+([%d%*]+)(</sup>)+</sup>", "<sup>%21</sup>")
root:tag('span'):wikitext(x)
return tostring(root)