update fmt lib
This commit is contained in:
18
lib/fmt.lua
18
lib/fmt.lua
@@ -41,8 +41,22 @@ function fmt.blue(str)
|
||||
return fmt.colored(str, md_colors.blue_500)
|
||||
end
|
||||
|
||||
function fmt.space(str)
|
||||
return " "
|
||||
function fmt.small(str)
|
||||
return "<small>"..str.."</small>"
|
||||
end
|
||||
|
||||
function fmt.big(str)
|
||||
return "<big>"..str.."</big>"
|
||||
end
|
||||
|
||||
function fmt.space(n)
|
||||
local num = 1
|
||||
|
||||
if n ~= nil and n > 1 then
|
||||
num = n
|
||||
end
|
||||
|
||||
return string.rep(" ", num)
|
||||
end
|
||||
|
||||
function fmt.escape(str)
|
||||
|
||||
Reference in New Issue
Block a user