X-Git-Url: https://git.plutz.net/?a=blobdiff_plain;f=macros%2Finclude;h=790514705c87316c01471db8b0d29442d3227dc0;hb=f7710b2f821cd2a7dc11f7818f10b70d065b5b52;hp=97f35a4a2d27c84bdd171a7e089365e980971877;hpb=03faace5d5ef48267bfd0108edf65b29f285b2ac;p=shellwiki diff --git a/macros/include b/macros/include index 97f35a4..7905147 100755 --- a/macros/include +++ b/macros/include @@ -51,9 +51,8 @@ page_glob "$page" \ continue fi printf '
' "$(HTML "$glob")" - ( cd "${mdfile%/*}" + ( cd -- "${mdfile%/*}" sed -n "${from},${to}p" <"$mdfile" \ - | sed -E '1,20{ /^%[a-z]+/d; }' \ | md \ | grep -vx '' ) | sed -E '