From 1c2d41e3c4e3d551fa19346745d51b5e0c39252b Mon Sep 17 00:00:00 2001 From: dvs1 Date: Sat, 15 Mar 2025 15:21:01 +1000 Subject: Work around a bug in Lunamark? --- notYetAnotherWiki.lua | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'notYetAnotherWiki.lua') diff --git a/notYetAnotherWiki.lua b/notYetAnotherWiki.lua index 974fde6..35c68a8 100755 --- a/notYetAnotherWiki.lua +++ b/notYetAnotherWiki.lua @@ -712,6 +712,8 @@ end function Writer.header(s, level) local text = Lunamark.util.rope_to_string(s) +-- FIXME - Work around a bug in Lunamark? + text = RE.gsub(text, "{[\\]}", "") return '' .. text .. ' 👆' end local OgWriterLink = Writer.link -- So we can call the original from within mine, we are just changing the URL. @@ -788,6 +790,9 @@ for name, file in pairs(Files) do local l = string.len(g) - string.len(h) g = h h = RE.gsub(h, '{[ ]}', ' ') +-- FIXME - Work around a bug in Lunamark? + g = RE.gsub(g, "{[\\]}", "") + h = RE.gsub(h, "{[\\]}", "") -- FIXME - if it's a linky, strip off the URL part. The Wiki audit has such things. metadata.menu = metadata.menu .. '

' .. string.rep(' ', l) .. '' .. h .. '

' end -- cgit v1.1