diff options
author | dvs1 | 2025-03-14 21:52:57 +1000 |
---|---|---|
committer | dvs1 | 2025-03-14 21:52:57 +1000 |
commit | 326a7c372150791d953f7eff494f65dcd7e0eac8 (patch) | |
tree | 737e286a290796afae9cc75fb312db2be364a1af | |
parent | Make the TOC actually work. (diff) | |
download | notYetAnotherWiki-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-x | notYetAnotherWiki.lua | 2 |
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. | |||
711 | end | 711 | end |
712 | 712 | ||
713 | function Writer.header(s, level) | 713 | function 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 .. '>' |
716 | end | 716 | end |
717 | local OgWriterLink = Writer.link -- So we can call the original from within mine, we are just changing the URL. | 717 | local OgWriterLink = Writer.link -- So we can call the original from within mine, we are just changing the URL. |