aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authordvs12025-03-14 21:52:57 +1000
committerdvs12025-03-14 21:52:57 +1000
commit326a7c372150791d953f7eff494f65dcd7e0eac8 (patch)
tree737e286a290796afae9cc75fb312db2be364a1af
parentMake the TOC actually work. (diff)
downloadnotYetAnotherWiki-326a7c372150791d953f7eff494f65dcd7e0eac8.zip
notYetAnotherWiki-326a7c372150791d953f7eff494f65dcd7e0eac8.tar.gz
notYetAnotherWiki-326a7c372150791d953f7eff494f65dcd7e0eac8.tar.bz2
notYetAnotherWiki-326a7c372150791d953f7eff494f65dcd7e0eac8.tar.xz
Make the last commit actually work.
Would have been nice if the docs told me that was a rope being passed in. And if the docs even mention ropes other than in the utils docs.
-rwxr-xr-xnotYetAnotherWiki.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/notYetAnotherWiki.lua b/notYetAnotherWiki.lua
index 3590af7..7d79304 100755
--- a/notYetAnotherWiki.lua
+++ b/notYetAnotherWiki.lua
@@ -711,7 +711,7 @@ local lunaLinky = function(url) -- Fix up the links.
711end 711end
712 712
713function Writer.header(s, level) 713function Writer.header(s, level)
714 local text = table.concat(s) 714 local text = Lunamark.util.rope_to_string(s)
715 return '<h' .. level .. ' id="' .. RE.gsub(text, '{[ ]}', '_') .. '">' .. text .. '</h' .. level .. '>' 715 return '<h' .. level .. ' id="' .. RE.gsub(text, '{[ ]}', '_') .. '">' .. text .. '</h' .. level .. '>'
716end 716end
717local OgWriterLink = Writer.link -- So we can call the original from within mine, we are just changing the URL. 717local OgWriterLink = Writer.link -- So we can call the original from within mine, we are just changing the URL.