From f896f5d675d78ec8bfb056ef3c42d20896d576e9 Mon Sep 17 00:00:00 2001 From: dvs1 Date: Sat, 15 Mar 2025 16:32:27 +1000 Subject: Slightly better version of previous work around. --- notYetAnotherWiki.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'notYetAnotherWiki.lua') diff --git a/notYetAnotherWiki.lua b/notYetAnotherWiki.lua index e1b1c37..e389e74 100755 --- a/notYetAnotherWiki.lua +++ b/notYetAnotherWiki.lua @@ -15,7 +15,7 @@ local RE = require("re") -- Part of lpeg. https://www.inf.puc-rio.br/~roberto/ -- Some global data. local GlobalMetaData = { - dlr = '$', perc = '%', + dlr = '$', perc = '%', dot = '.', devuanCinnabarDark = '#310202', devuanCinnabarLight = '#510505', devuanDarkPurpyDark = '#33313b', devuanDarkPurpyLight = '#3c3a45', devuanDeepSeaDark = '#132f40', devuanDeepSeaLight = '#1a4562', @@ -826,7 +826,7 @@ for name, file in pairs(Files) do -- Toss the body in first, so the scan can deal with it to. -- NOTE - this is where we actually parse the markup into HTML. Context = file - body = RE.gsub(body, '{[%nl]^1[%a]+}[.]^1 ', '%1. ') -- Coz otherwise stray . trip up the list detection. + body = RE.gsub(body, '{[%nl]^1[%a]+}[.]^1 ', '%1$dot$ ') -- Coz otherwise stray . trip up the list detection. local bd, md = Parse(body) -- The md is a table of extracted metadata, not likely to be any, and we wont do anything with it. bd = RE.gsub(bd, '{[%]}', '$perc$') -- Coz otherwise stray % trip up the capture part. temp = RE.gsub(temp, '"$body$"', bd) -- cgit v1.1