From a6d33b428166b3139047ba2aba80b0e084ebf3de Mon Sep 17 00:00:00 2001 From: the lemons Date: Sat, 5 Feb 2022 18:07:39 -0600 Subject: escape line of text after parsing the directives --- zzcxz.cgi | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/zzcxz.cgi b/zzcxz.cgi index 6fbdb47..dafefdf 100755 --- a/zzcxz.cgi +++ b/zzcxz.cgi @@ -164,7 +164,6 @@ local function convert_markup(m) local directives = {} local code_block = false for line in (m..'\n'):gmatch "(.-)\n" do - line = html_encode(line) if not code_block then if line:match "^%s*$" then goto continue @@ -173,6 +172,8 @@ local function convert_markup(m) parse_directive(line, directives) then goto continue end + + line = html_encode(line) if line:sub(1,1) == ' ' then table.insert(result, '
')
 				code_block = true
-- 
cgit v1.2.3