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