update fmt lib

This commit is contained in:
Evgeny
2022-06-24 13:17:57 +03:00
parent d800329bd6
commit 2859f0b644
2 changed files with 19 additions and 2 deletions

View File

@@ -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("&nbsp;", num)
end
function fmt.escape(str)