diff options
author | dvs1 | 2025-01-20 18:45:11 +1000 |
---|---|---|
committer | dvs1 | 2025-01-20 18:45:11 +1000 |
commit | c590b5b63a45d6decbc9cf02f291eb13270e8bb7 (patch) | |
tree | 5056850d91df4f28cb640bf47623adc0031d284f | |
parent | If we can't use cmark-gfm, then stick with the built in cmark instead. (diff) | |
download | notYetAnotherWiki-c590b5b63a45d6decbc9cf02f291eb13270e8bb7.zip notYetAnotherWiki-c590b5b63a45d6decbc9cf02f291eb13270e8bb7.tar.gz notYetAnotherWiki-c590b5b63a45d6decbc9cf02f291eb13270e8bb7.tar.bz2 notYetAnotherWiki-c590b5b63a45d6decbc9cf02f291eb13270e8bb7.tar.xz |
Typo--
-rwxr-xr-x | notYetAnotherWiki.lua | 2 |
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') |