From 49467fee22bf6d7e8025dca9411bdf8f5f7721ed Mon Sep 17 00:00:00 2001 From: murat Date: Tue, 16 Jun 2026 19:00:52 +0300 Subject: [PATCH] fix(blockquote): force \n --- luago.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/luago.lua b/luago.lua index a8a4f9d..5821f44 100644 --- a/luago.lua +++ b/luago.lua @@ -126,13 +126,12 @@ for index, value in ipairs(markdownFiles) do -- STYLING local function styling(s) -- blockquote - -- s = s:gsub(">%s*(.-)%s*\r?\n", "
%1
") local lines = {} - for line in s:gmatch("([^\n]*)\n?") do + for line in (s .. "\n"):gmatch("([^\n]*)\n?") do local nline = line:gsub("^>%s*(.*)", "
%1
") table.insert(lines, nline) end - s = table.concat(lines, "\n") + s = table.concat(lines) -- line breaks s = s:gsub("\r?\n", "
") -- headers @@ -157,6 +156,7 @@ for index, value in ipairs(markdownFiles) do -- horizontal rule s = s:gsub("%-%-%-", "
") -- TODO: ordered and unordered lists + -- TODO: p for normal text return s end