feat(styling): line breaks

This commit is contained in:
2026-06-16 17:34:55 +03:00
parent 33540f028f
commit dbe8bcbb44
+5
View File
@@ -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", "<br>")
-- replace <!-- sitecontents --> with markdown file content
local start_idx, end_idx = content:find("<!-- sitecontents -->", 1, true)
if start_idx and end_idx then