aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authordvs12025-01-20 18:45:11 +1000
committerdvs12025-01-20 18:45:11 +1000
commitc590b5b63a45d6decbc9cf02f291eb13270e8bb7 (patch)
tree5056850d91df4f28cb640bf47623adc0031d284f
parentIf we can't use cmark-gfm, then stick with the built in cmark instead. (diff)
downloadnotYetAnotherWiki-c590b5b63a45d6decbc9cf02f291eb13270e8bb7.zip
notYetAnotherWiki-c590b5b63a45d6decbc9cf02f291eb13270e8bb7.tar.gz
notYetAnotherWiki-c590b5b63a45d6decbc9cf02f291eb13270e8bb7.tar.bz2
notYetAnotherWiki-c590b5b63a45d6decbc9cf02f291eb13270e8bb7.tar.xz
Typo--
-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')