Module:Plain text and Module:Plain text/sandbox: Difference between pages

(Difference between pages)
Jump to navigation Jump to search
Page 1
Page 2
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('%-%-%-%-+', '') --remove ---- lines
:gsub('----+', '') --remove ---- lines
:gsub("^%s+", "") --strip leading
:gsub("^%s+", "") --strip leading
:gsub("%s+$", "") --and trailing spaces
:gsub("%s+$", "") --and trailing spaces