Module:Plain text and Module:Plain text/sandbox: Difference between pages
(Difference between pages)
imported>Dpleibovitz Fixed the stripping of + signs |
imported>Jonesey95 keep contents of sub, sup, and underline |
||
| Line 34: | Line 34: | ||
:gsub("'''''", "") --strip out bold italic markup | :gsub("'''''", "") --strip out bold italic markup | ||
:gsub("'''?", "") --not stripping out '''' gives correct output for bolded text in quotes | :gsub("'''?", "") --not stripping out '''' gives correct output for bolded text in quotes | ||
:gsub(' | :gsub('----+', '') --remove ---- lines | ||
:gsub("^%s+", "") --strip leading | :gsub("^%s+", "") --strip leading | ||
:gsub("%s+$", "") --and trailing spaces | :gsub("%s+$", "") --and trailing spaces | ||