aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/notYetAnotherWiki.lua
diff options
context:
space:
mode:
authordvs12025-03-15 16:32:27 +1000
committerdvs12025-03-15 16:32:27 +1000
commitf896f5d675d78ec8bfb056ef3c42d20896d576e9 (patch)
tree2c54411f0e63921214e8d1c62edef0af945c5714 /notYetAnotherWiki.lua
parentYet another work around for what I think is a bug in Lunamark. The random li... (diff)
downloadnotYetAnotherWiki-f896f5d675d78ec8bfb056ef3c42d20896d576e9.zip
notYetAnotherWiki-f896f5d675d78ec8bfb056ef3c42d20896d576e9.tar.gz
notYetAnotherWiki-f896f5d675d78ec8bfb056ef3c42d20896d576e9.tar.bz2
notYetAnotherWiki-f896f5d675d78ec8bfb056ef3c42d20896d576e9.tar.xz
Slightly better version of previous work around.
Diffstat (limited to 'notYetAnotherWiki.lua')
-rwxr-xr-xnotYetAnotherWiki.lua4
1 files changed, 2 insertions, 2 deletions
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/
15-- Some global data. 15-- Some global data.
16 16
17local GlobalMetaData = { 17local GlobalMetaData = {
18 dlr = '$', perc = '%', 18 dlr = '$', perc = '%', dot = '.',
19 devuanCinnabarDark = '#310202', devuanCinnabarLight = '#510505', 19 devuanCinnabarDark = '#310202', devuanCinnabarLight = '#510505',
20 devuanDarkPurpyDark = '#33313b', devuanDarkPurpyLight = '#3c3a45', 20 devuanDarkPurpyDark = '#33313b', devuanDarkPurpyLight = '#3c3a45',
21 devuanDeepSeaDark = '#132f40', devuanDeepSeaLight = '#1a4562', 21 devuanDeepSeaDark = '#132f40', devuanDeepSeaLight = '#1a4562',
@@ -826,7 +826,7 @@ for name, file in pairs(Files) do
826 -- Toss the body in first, so the scan can deal with it to. 826 -- Toss the body in first, so the scan can deal with it to.
827 -- NOTE - this is where we actually parse the markup into HTML. 827 -- NOTE - this is where we actually parse the markup into HTML.
828 Context = file 828 Context = file
829 body = RE.gsub(body, '{[%nl]^1[%a]+}[.]^1 ', '%1. ') -- Coz otherwise stray . trip up the list detection. 829 body = RE.gsub(body, '{[%nl]^1[%a]+}[.]^1 ', '%1$dot$ ') -- Coz otherwise stray . trip up the list detection.
830 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. 830 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.
831 bd = RE.gsub(bd, '{[%]}', '$perc$') -- Coz otherwise stray % trip up the capture part. 831 bd = RE.gsub(bd, '{[%]}', '$perc$') -- Coz otherwise stray % trip up the capture part.
832 temp = RE.gsub(temp, '"$body$"', bd) 832 temp = RE.gsub(temp, '"$body$"', bd)