add strike function to fmt module
This commit is contained in:
@@ -49,6 +49,10 @@ function fmt.big(str)
|
|||||||
return "<big>"..str.."</big>"
|
return "<big>"..str.."</big>"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function fmt.strike(str)
|
||||||
|
return "<strike>"..str.."</strike>"
|
||||||
|
end
|
||||||
|
|
||||||
function fmt.space(n)
|
function fmt.space(n)
|
||||||
local num = 1
|
local num = 1
|
||||||
|
|
||||||
|
|||||||
@@ -14,6 +14,7 @@ function on_resume()
|
|||||||
fmt.bg_colored(fmt.colored("lime background", "#000000"), "#00FF00"),
|
fmt.bg_colored(fmt.colored("lime background", "#000000"), "#00FF00"),
|
||||||
fmt.small("small font"),
|
fmt.small("small font"),
|
||||||
fmt.big("big font"),
|
fmt.big("big font"),
|
||||||
|
fmt.strike("The crossed out text"),
|
||||||
fmt.space().."start with space",
|
fmt.space().."start with space",
|
||||||
fmt.space(4).."start with tab",
|
fmt.space(4).."start with tab",
|
||||||
fmt.escape("<b>not parsed</b>"),
|
fmt.escape("<b>not parsed</b>"),
|
||||||
|
|||||||
Reference in New Issue
Block a user