release note符合markdown语法,方便阅读

This commit is contained in:
MrZ626
2021-10-18 00:28:12 +08:00
parent fd3b187d32
commit f3e18de45f

View File

@@ -18,11 +18,7 @@ elseif arg[1]=="-updateNote"then
local p1=note:find("\n",note:find("\n%d")+1)+1
local p2=note:find("\n%d",p1+1)
note=note:sub(p1,p2-2)
note=note
:gsub(" ","_")
:gsub(" ","")
:gsub("\n([^_])","\n\n%1")
:gsub("\n_","\n")
:gsub("\n\n","\n",1)
:gsub(" ","- ")
:gsub(" ","# ")
print(note)
end