From dbe8bcbb44d6df511ed3a696db1466ece06219d4 Mon Sep 17 00:00:00 2001 From: murat Date: Tue, 16 Jun 2026 17:34:55 +0300 Subject: [PATCH] feat(styling): line breaks --- luago.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/luago.lua b/luago.lua index ddc0a10..43bca12 100644 --- a/luago.lua +++ b/luago.lua @@ -122,6 +122,11 @@ for index, value in ipairs(markdownFiles) do local htmlFile = io.open(workDir .. "/public/" .. markdownFiles[index].fileName .. ".html", 'w') if htmlFile then local content = indexFile + + -- STYLING + -- line breaks + markdownFiles[index].content = markdownFiles[index].content:gsub("\r?\n", "
") + -- replace with markdown file content local start_idx, end_idx = content:find("", 1, true) if start_idx and end_idx then