From 91a09a1f08cbafe60212b13f5c62fa64f0d5ec4d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Wed, 24 Nov 2021 11:56:07 +0800 Subject: description --- script/provider/markdown.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'script/provider/markdown.lua') diff --git a/script/provider/markdown.lua b/script/provider/markdown.lua index 213c417d..6b7d24c8 100644 --- a/script/provider/markdown.lua +++ b/script/provider/markdown.lua @@ -13,7 +13,7 @@ end ---@param text string|markdown function mt:add(language, text) if not text then - return + return self end self._cacheResult = nil if type(text) == 'table' then @@ -29,6 +29,7 @@ function mt:add(language, text) text = text, } end + return self end function mt:splitLine() @@ -36,6 +37,7 @@ function mt:splitLine() self[#self+1] = { type = 'splitline', } + return self end function mt:string() -- cgit v1.2.3