add strike function to fmt module

This commit is contained in:
Evgeny
2022-07-13 14:37:06 +03:00
parent 12b1b768c6
commit 74ecfc231b
2 changed files with 5 additions and 0 deletions

View File

@@ -49,6 +49,10 @@ function fmt.big(str)
return "<big>"..str.."</big>"
end
function fmt.strike(str)
return "<strike>"..str.."</strike>"
end
function fmt.space(n)
local num = 1

View File

@@ -14,6 +14,7 @@ function on_resume()
fmt.bg_colored(fmt.colored("lime background", "#000000"), "#00FF00"),
fmt.small("small font"),
fmt.big("big font"),
fmt.strike("The crossed out text"),
fmt.space().."start with space",
fmt.space(4).."start with tab",
fmt.escape("<b>not parsed</b>"),