aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/notYetAnotherWiki.lua
diff options
context:
space:
mode:
Diffstat (limited to 'notYetAnotherWiki.lua')
-rwxr-xr-xnotYetAnotherWiki.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/notYetAnotherWiki.lua b/notYetAnotherWiki.lua
index 90c8514..7268170 100755
--- a/notYetAnotherWiki.lua
+++ b/notYetAnotherWiki.lua
@@ -105,7 +105,7 @@ for name, file in pairs(Files) do
105 -- I need cmark-gfm, coz lcmark doesn't support tables and stuff, it only does basic cmark. 105 -- I need cmark-gfm, coz lcmark doesn't support tables and stuff, it only does basic cmark.
106 local out = '' 106 local out = ''
107 h = io.popen('if which cmark-gfm ; then echo "found" ; fi | tail -n 1') 107 h = io.popen('if which cmark-gfm ; then echo "found" ; fi | tail -n 1')
108 if nil ~= h then out = h:read('a') ; h:close() end 108 if nil ~= h then out = h:read('*a') ; h:close() end
109 if 'found\n' == out then 109 if 'found\n' == out then
110 -- Have to strip out the metadata first, coz cmark-gfm doesn't grok that. 110 -- Have to strip out the metadata first, coz cmark-gfm doesn't grok that.
111 h = io.popen('cp "' .. name .. '.md" "' .. name .. '02" ; csplit -ksz -f "' .. name .. '" "' .. name .. '.md" "/^---$/+1" "{1}" 2>/dev/null ; rm "' .. name .. '00" ; rm "' .. name .. '01" 2>/dev/null') 111 h = io.popen('cp "' .. name .. '.md" "' .. name .. '02" ; csplit -ksz -f "' .. name .. '" "' .. name .. '.md" "/^---$/+1" "{1}" 2>/dev/null ; rm "' .. name .. '00" ; rm "' .. name .. '01" 2>/dev/null')